|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
This union represents the bit fields in the SPI Control 0 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 waitnum: 5 | ||
| uint32_t aaitf: 2 | ||
| uint32_t rdsen: 1 | ||
| uint32_t addrlen: 4 | ||
| uint32_t ilen: 2 | ||
| uint32_t iddren: 1 | ||
| uint32_t ddren: 1 | ||
| uint32_t reserved16_31: 18 | ||
| } | b | |
This union represents the bit fields in the SPI Control 0 Register.
Read the register into the d32 member then set/clear the bits using the b elements.
| uint32_t spi_enhctl_data::aaitf |
Address and instruction transfer format.
Selects whether spi will transmit instruction/address either in Standard SPI mode or the SPI mode selected in CTRLR0.SPI_FRF field. 00 - Instruction and Address will be sent in Standard SPI Mode. 01 - Instruction will be sent in Standard SPI Mode and Address will be sent in the mode specified by CTRLR0.SPI_FRF.
10 - Both Instruction and Address will be sent in the mode specified by SPI_FRF. 11 - reserved.
| uint32_t spi_enhctl_data::addrlen |
Address Length.
This bit defines Length of Address to be transmitted. Only after this much bits are programmed in to the FIFO the transfer can begin. For information on the ADDR_Ldecode value, see "Read Operation in Enhanced SPI Modes" section in the spi Databook.
Values:
| struct { ... } spi_enhctl_data::b |
Register bits.
| uint32_t spi_enhctl_data::d32 |
Raw register data.
| uint32_t spi_enhctl_data::ddren |
SPI DDR Enable bit.
This will enable Dual-data rate transfers in Dual/Quad/Octal frame formats of SPI.
| uint32_t spi_enhctl_data::iddren |
Instruction DDR Enable bit.
This will enable Dual-data rate transfer for Instruction phase.
| uint32_t spi_enhctl_data::ilen |
Instruction Length.
Dual/Quad/Octal mode instruction length in bits.
Values:
| uint32_t spi_enhctl_data::rdsen |
Read data strobe enable bit.
Once this bit is set to 1 spi will use Read data strobe (rxds) to capture read data in DDR mode.
| uint32_t spi_enhctl_data::reserved16_31 |
| uint32_t spi_enhctl_data::waitnum |
Wait cycles.
Number of wait cycles in Dual/Quad/Octal mode between control frames transmit and data reception. This value is specified as number of SPI clock cycles. For information on the WAIT_CYCLES decode value, see "Read Operation in
Enhanced SPI Modes" section in the spi Databook.