EFM32 Pearl Gecko 12 Software Documentation  efm32pg12-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 portLocationClk
 Location number for SPI Clk pin.
 
uint8_t portLocationCs
 Location number for SPI Cs pin.
 
uint8_t portLocationRx
 Location number for SPI Rx pin.
 
uint8_t portLocationTx
 Location number for SPI Tx pin.
 
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: