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 Init Configuration Data.

Public Attributes#

void *

The USART used for SPI.

uint8_t

A location number for SPI pins.

uint32_t

An SPI bitrate.

uint32_t

An SPI framelength, valid numbers are 4..16.

uint32_t

The value to transmit when using SPI receive API functions.

An SPI type, master or slave.

A bit order on the SPI bus, MSB or LSB first.

SPI mode, CLKPOL/CLKPHASE setting.

A select master mode chip select (CS) control scheme.

A slave mode transfer start scheme.

Public Attribute Documentation#

port#

void* SPIDRV_Init_t::port

The USART used for SPI.


portLocation#

uint8_t SPIDRV_Init_t::portLocation

A location number for SPI pins.


bitRate#

uint32_t SPIDRV_Init_t::bitRate

An SPI bitrate.


frameLength#

uint32_t SPIDRV_Init_t::frameLength

An SPI framelength, valid numbers are 4..16.


dummyTxValue#

uint32_t SPIDRV_Init_t::dummyTxValue

The value to transmit when using SPI receive API functions.


type#

SPIDRV_Type_t SPIDRV_Init_t::type

An SPI type, master or slave.


bitOrder#

SPIDRV_BitOrder_t SPIDRV_Init_t::bitOrder

A bit order on the SPI bus, MSB or LSB first.


clockMode#

SPIDRV_ClockMode_t SPIDRV_Init_t::clockMode

SPI mode, CLKPOL/CLKPHASE setting.


csControl#

SPIDRV_CsControl_t SPIDRV_Init_t::csControl

A select master mode chip select (CS) control scheme.


slaveStartMode#

SPIDRV_SlaveStart_t SPIDRV_Init_t::slaveStartMode

A slave mode transfer start scheme.