EFM32 Gecko Software Documentation  efm32g-doc-5.1.2
SPIDRV_Init Struct Reference

Detailed Description

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.

Definition at line 123 of file spidrv.h.

#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_TypeDefport
 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.
 

The documentation for this struct was generated from the following file: