|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
This union represents the bit fields in the SFC command config Register.
Read the register into the d32 member then set/clear the bits using the b elements.
更多...
#include <hal_sfc_v150_regs_def.h>
成员变量 | ||
| uint32_t | d32 | |
| struct { | ||
| uint32_t start: 1 | ||
| uint32_t sel_cs: 1 | ||
| uint32_t reserved0: 1 | ||
| uint32_t addr_en: 1 | ||
| uint32_t dummy_byte_cnt: 3 | ||
| uint32_t data_en: 1 | ||
| uint32_t rw: 1 | ||
| uint32_t data_cnt: 6 | ||
| uint32_t reserved: 2 | ||
| uint32_t mem_if_type: 3 | ||
| uint32_t reserved1: 12 | ||
| } | b | |
| struct { | ||
| uint32_t start: 1 | ||
| uint32_t sel_cs: 1 | ||
| uint32_t reserved0: 1 | ||
| uint32_t addr_en: 1 | ||
| uint32_t dummy_byte_cnt: 3 | ||
| uint32_t data_en: 1 | ||
| uint32_t rw: 1 | ||
| uint32_t data_cnt: 6 | ||
| uint32_t reserved: 2 | ||
| uint32_t mem_if_type: 3 | ||
| uint32_t reserved1: 12 | ||
| } | b | |
This union represents the bit fields in the SFC command config Register.
Read the register into the d32 member then set/clear the bits using the b elements.
| uint32_t cmd_config::addr_en |
Indicates whether an address is available for this operation.
| struct { ... } cmd_config::b |
Register bits.
| struct { ... } cmd_config::b |
Register bits.
| uint32_t cmd_config::d32 |
Raw register data.
| uint32_t cmd_config::data_cnt |
Data transfer length of the SPI operation. Data length = (data_cnt + 1) Byte.
| uint32_t cmd_config::data_en |
Indicates whether data is available for this operation.
| uint32_t cmd_config::dummy_byte_cnt |
Number of dummy bytes in the operation.
| uint32_t cmd_config::mem_if_type |
SPI interface type. value: 000:Standard SPI; 001:Dual-Input/Dual-Output SPI(based on read/write); 010:Dual-I/O SPI; 101:Quad-Input/Dual-Output SPI(based on read/write); 110:Quad-I/O SPI; other: reserved.
| uint32_t cmd_config::reserved |
| uint32_t cmd_config::reserved0 |
| uint32_t cmd_config::reserved1 |
| uint32_t cmd_config::rw |
SPI read/write indicator. 0: write; 1: read.
| uint32_t cmd_config::sel_cs |
CS select operation.
| uint32_t cmd_config::start |
SPI transfer enable control. Automatic return to 0 after the SPI transfer is complete.