EZR32 Wonder Gecko Software Documentation
ezr32wg-doc-5.1.2
|
SPI driver instance initialization structure. This data structure contains a number of SPIDRV configuration options. This struct is passed to SPIDRV_Init() when initializing a SPIDRV instance. Some common initialization data sets are predefined in SPIDRV_MASTER_USART0 and friends.
#include <spidrv.h>
Data Fields | |
SPIDRV_BitOrder_t | bitOrder |
Bit order on SPI bus, MSB or LSB first. | |
uint32_t | bitRate |
SPI bitrate. | |
SPIDRV_ClockMode_t | clockMode |
SPI mode, CLKPOL/CLKPHASE setting. | |
SPIDRV_CsControl_t | csControl |
Select master mode chip select (CS) control scheme. | |
uint32_t | dummyTxValue |
The value to transmit when using SPI receive API functions. | |
uint32_t | frameLength |
SPI framelength, valid numbers are 4..16. | |
USART_TypeDef * | port |
The USART used for SPI. | |
uint8_t | portLocation |
Location number for SPI pins. | |
SPIDRV_SlaveStart_t | slaveStartMode |
Slave mode transfer start scheme. | |
SPIDRV_Type_t | type |
SPI type, master or slave. | |