SPI Initialization structure.

Public Attributes#

Specifies whether TX and/or RX will be enabled when initialization completes.

uint32_t

EUSART reference clock assumed when configuring baud rate setup.

uint32_t

Desired bit rate in Hz.

Number of data bits in frame.

bool

Select to operate in master or slave mode.

Clock polarity/phase mode.

Enable Loop Back configuration.

Advanced initialization structure pointer. It can be NULL.

Public Attribute Documentation#

enable#

EUSART_Enable_TypeDef EUSART_SpiInit_TypeDef::enable

Specifies whether TX and/or RX will be enabled when initialization completes.


Definition at line 589 of file platform/emlib/inc/em_eusart.h

refFreq#

uint32_t EUSART_SpiInit_TypeDef::refFreq

EUSART reference clock assumed when configuring baud rate setup.

Set to 0 if using currently configured reference clock.


Definition at line 593 of file platform/emlib/inc/em_eusart.h

bitRate#

uint32_t EUSART_SpiInit_TypeDef::bitRate

Desired bit rate in Hz.

Depending on EUSART instance clock, not all bitrates are achievable as the divider is limited to 255.


Definition at line 598 of file platform/emlib/inc/em_eusart.h

databits#

EUSART_Databits_TypeDef EUSART_SpiInit_TypeDef::databits

Number of data bits in frame.


Definition at line 601 of file platform/emlib/inc/em_eusart.h

master#

bool EUSART_SpiInit_TypeDef::master

Select to operate in master or slave mode.


Definition at line 604 of file platform/emlib/inc/em_eusart.h

clockMode#

EUSART_ClockMode_TypeDef EUSART_SpiInit_TypeDef::clockMode

Clock polarity/phase mode.


Definition at line 607 of file platform/emlib/inc/em_eusart.h

loopbackEnable#

EUSART_LoopbackEnable_TypeDef EUSART_SpiInit_TypeDef::loopbackEnable

Enable Loop Back configuration.


Definition at line 610 of file platform/emlib/inc/em_eusart.h

advancedSettings#

EUSART_SpiAdvancedInit_TypeDef* EUSART_SpiInit_TypeDef::advancedSettings

Advanced initialization structure pointer. It can be NULL.


Definition at line 613 of file platform/emlib/inc/em_eusart.h