USART_InitAsync_TypeDef Struct Reference

Asynchronous mode initialization structure.

#include <em_usart.h>

Data Fields

USART_Enable_TypeDef enable
Specifies whether TX and/or RX is enabled when initialization is completed.
uint32_t refFreq
USART/UART reference clock assumed when configuring baud rate setup.
uint32_t baudrate
Desired baud rate.
USART_OVS_TypeDef oversampling
Oversampling used.
USART_Databits_TypeDef databits
Number of data bits in frame.
USART_Parity_TypeDef parity
Parity mode to use.
USART_Stopbits_TypeDef stopbits
Number of stop bits to use.
bool mvdis
Majority Vote Disable for 16x, 8x and 6x oversampling modes.
bool prsRxEnable
Enable USART Rx via PRS.
USART_PRS_Channel_t prsRxCh
Select PRS channel for USART Rx.
bool autoCsEnable
Auto CS enabling.
uint8_t autoCsHold
Auto CS hold time in baud cycles.
uint8_t autoCsSetup
Auto CS setup time in baud cycles.
USART_HwFlowControl_TypeDef hwFlowControl
Hardware flow control mode.

Asynchronous mode initialization structure.

Field Documentation

enable

USART_Enable_TypeDef USART_InitAsync_TypeDef::enable

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

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.

baudrate

uint32_t USART_InitAsync_TypeDef::baudrate

Desired baud rate.

oversampling

USART_OVS_TypeDef USART_InitAsync_TypeDef::oversampling

Oversampling used.

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.

parity

USART_Parity_TypeDef USART_InitAsync_TypeDef::parity

Parity mode to use.

stopbits

USART_Stopbits_TypeDef USART_InitAsync_TypeDef::stopbits

Number of stop bits to use.

mvdis

bool USART_InitAsync_TypeDef::mvdis

Majority Vote Disable for 16x, 8x and 6x oversampling modes.

prsRxEnable

bool USART_InitAsync_TypeDef::prsRxEnable

Enable USART Rx via PRS.

prsRxCh

USART_PRS_Channel_t USART_InitAsync_TypeDef::prsRxCh

Select PRS channel for USART Rx.

(Only valid if prsRxEnable is true).

autoCsEnable

bool USART_InitAsync_TypeDef::autoCsEnable

Auto CS enabling.

autoCsHold

uint8_t USART_InitAsync_TypeDef::autoCsHold

Auto CS hold time in baud cycles.

autoCsSetup

uint8_t USART_InitAsync_TypeDef::autoCsSetup

Auto CS setup time in baud cycles.

hwFlowControl

USART_HwFlowControl_TypeDef USART_InitAsync_TypeDef::hwFlowControl

Hardware flow control mode.