SPIDRV_Init Struct ReferenceEMDRV > SPIDRV

An SPI driver instance initialization structure. Contains a number of SPIDRV configuration options. This structure 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 120 of file spidrv.h.

#include <spidrv.h>

Data Fields

SPIDRV_BitOrder_t bitOrder
 A bit order on the SPI bus, MSB or LSB first.
 
uint32_t bitRate
 An SPI bitrate.
 
SPIDRV_ClockMode_t clockMode
 SPI mode, CLKPOL/CLKPHASE setting.
 
SPIDRV_CsControl_t csControl
 A select master mode chip select (CS) control scheme.
 
uint32_t dummyTxValue
 The value to transmit when using SPI receive API functions.
 
uint32_t frameLength
 An SPI framelength, valid numbers are 4..16.
 
USART_TypeDefport
 The USART used for SPI.
 
uint8_t portLocationClk
 A location number for the SPI Clk pin.
 
uint8_t portLocationCs
 A location number for the SPI Cs pin.
 
uint8_t portLocationRx
 A location number for the SPI Rx pin.
 
uint8_t portLocationTx
 A location number for the SPI Tx pin.
 
SPIDRV_SlaveStart_t slaveStartMode
 A slave mode transfer start scheme.
 
SPIDRV_Type_t type
 An SPI type, master or slave.
 

The documentation for this struct was generated from the following file:
  • C:/repos/super_h1/platform/emdrv/spidrv/inc/spidrv.h