WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
spi_mcr_data联合体 参考

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]

struct { ... } spi_mcr_data::b

Register bits.

◆ d32

uint32_t spi_mcr_data::d32

Raw register data.

◆ mh

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:

  • 0x0 (DISABLE): Handshaking interface is disabled
  • 0x1 (ENABLED): Handshaking interface is enabled

◆ mss

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:

  • 0x0 (NON_SEQUENTIAL): Non-Sequential Microwire Transfer
  • 0x1 (SEQUENTIAL): Sequential Microwire Transfer

◆ mtrc

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:

  • 0x0 (RECEIVE): SPI receives data
  • 0x1 (TRANSMIT): SPI transmits data

该联合体的文档由以下文件生成: