Asynchronous mode initialization structure.

Public Attributes#

Specifies whether TX and/or RX is 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.

Parity mode to use.

Number of stop bits to use.

bool

Auto CS enabling.

bool

Enable CS invert.

Public Attribute Documentation#

enable#

USART_Enable_TypeDef USART_InitAsync_TypeDef::enable

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


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

refFreq#

uint32_t USART_InitAsync_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 296 of file platform/emlib/inc/em_usart.h

baudrate#

uint32_t USART_InitAsync_TypeDef::baudrate

Desired baud rate.


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

oversampling#

USART_OVS_TypeDef USART_InitAsync_TypeDef::oversampling

Oversampling used.


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

databits#

USART_Databits_TypeDef USART_InitAsync_TypeDef::databits

Number of data bits in frame.

Notice that UART modules only support 8 or 9 data bits.


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

parity#

USART_Parity_TypeDef USART_InitAsync_TypeDef::parity

Parity mode to use.


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

stopbits#

USART_Stopbits_TypeDef USART_InitAsync_TypeDef::stopbits

Number of stop bits to use.


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

autoCsEnable#

bool USART_InitAsync_TypeDef::autoCsEnable

Auto CS enabling.


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

csInv#

bool USART_InitAsync_TypeDef::csInv

Enable CS invert.

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


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