|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
This union represents the bit fields in the Microwire Control Register.
Read the register into the d32 member then set/clear the bits using the b elements.
更多...
#include <hal_spi_v151_regs_def.h>
成员变量 | ||
| uint32_t | d32 | |
| struct { | ||
| uint32_t mh: 1 | ||
| uint32_t mss: 1 | ||
| uint32_t mtrc: 1 | ||
| } | b | |
This union represents the bit fields in the Microwire Control Register.
Read the register into the d32 member then set/clear the bits using the b elements.
| struct { ... } spi_mcr_data::b |
Register bits.
| uint32_t spi_mcr_data::d32 |
Raw register data.
| uint32_t spi_mcr_data::mh |
Microwire Handshaking.
Relevant only when the spi is configured as a spi_slenrial-master device. When configured as a spi_slenrial slave, this bit field has no functionality. Used to enable and disable the busy/ready handshaking interface for the Microwire protocol. When enabled, the spi checks for a ready status from the target slave, after the transfer of the last data/control bit, before clearing the BUSY status in the SR register.
Values:
| uint32_t spi_mcr_data::mss |
Microwire Transfer Mode.
Defines whether the Microwire transfer is sequential or nonsequential. When sequential mode is used, only one control word is needed to transmit or receive a block of data words. When non-sequential mode is used, there must be a control word for each data word that is transmitted or received.
Values:
| uint32_t spi_mcr_data::mtrc |
Microwire Control.
Defines the direction of the data word when the Microwire spi_slenrial protocol is used. When this bit is set to 0, the data word is received by the spi MacroCell from the external spi_slenrial device. When this bit is set to 1, the data word is transmitted from the spi MacroCell to the external spi_slenrial device.
Values: