Synchronous mode initialization structure.

Public Attributes#

Specifies whether TX and/or RX shall be enabled when initialization is completed.

uint32_t

USART/UART reference clock assumed when configuring baud rate setup.

uint32_t

Desired baud rate.

Number of data bits in frame.

bool

Select if to operate in master or slave mode.

bool

Select if to send most or least significant bit first.

Clock polarity/phase mode.

bool

Enable USART Rx via PRS.

Select PRS channel for USART Rx.

bool

Enable AUTOTX mode.

bool

Auto CS enabling.

bool

Enable CS invert.

Public Attribute Documentation#

enable#

USART_Enable_TypeDef USART_InitSync_TypeDef::enable

Specifies whether TX and/or RX shall be enabled when initialization is completed.


Definition at line 433 of file platform/emlib/inc/em_usart.h

refFreq#

uint32_t USART_InitSync_TypeDef::refFreq

USART/UART reference clock assumed when configuring baud rate setup.

Set to 0 to use the currently configured reference clock.


Definition at line 439 of file platform/emlib/inc/em_usart.h

baudrate#

uint32_t USART_InitSync_TypeDef::baudrate

Desired baud rate.


Definition at line 442 of file platform/emlib/inc/em_usart.h

databits#

USART_Databits_TypeDef USART_InitSync_TypeDef::databits

Number of data bits in frame.


Definition at line 445 of file platform/emlib/inc/em_usart.h

master#

bool USART_InitSync_TypeDef::master

Select if to operate in master or slave mode.


Definition at line 448 of file platform/emlib/inc/em_usart.h

msbf#

bool USART_InitSync_TypeDef::msbf

Select if to send most or least significant bit first.


Definition at line 451 of file platform/emlib/inc/em_usart.h

clockMode#

USART_ClockMode_TypeDef USART_InitSync_TypeDef::clockMode

Clock polarity/phase mode.


Definition at line 454 of file platform/emlib/inc/em_usart.h

prsRxEnable#

bool USART_InitSync_TypeDef::prsRxEnable

Enable USART Rx via PRS.


Definition at line 458 of file platform/emlib/inc/em_usart.h

prsRxCh#

USART_PRS_Channel_t USART_InitSync_TypeDef::prsRxCh

Select PRS channel for USART Rx.

(Only valid if prsRxEnable is true).


Definition at line 461 of file platform/emlib/inc/em_usart.h

autoTx#

bool USART_InitSync_TypeDef::autoTx

Enable AUTOTX mode.

Transmits as long as RX is not full. Generates underflows if TX is empty.


Definition at line 467 of file platform/emlib/inc/em_usart.h

autoCsEnable#

bool USART_InitSync_TypeDef::autoCsEnable

Auto CS enabling.


Definition at line 471 of file platform/emlib/inc/em_usart.h

csInv#

bool USART_InitSync_TypeDef::csInv

Enable CS invert.

By default, chip select is active low. Set to true to make chip select active high.


Definition at line 475 of file platform/emlib/inc/em_usart.h