EFM32 Happy Gecko Software Documentation  efm32hg-doc-4.2.1
USART_InitAsync_TypeDef Struct Reference

#include <em_usart.h>

Data Fields

USART_Enable_TypeDef enable
 
uint32_t refFreq
 
uint32_t baudrate
 
USART_OVS_TypeDef oversampling
 
USART_Databits_TypeDef databits
 
USART_Parity_TypeDef parity
 
USART_Stopbits_TypeDef stopbits
 
bool mvdis
 
bool prsRxEnable
 
USART_PrsRxCh_TypeDef prsRxCh
 

Detailed Description

Asynchronous mode init structure.

Definition at line 250 of file em_usart.h.

Field Documentation

USART_Enable_TypeDef USART_InitAsync_TypeDef::enable

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

Definition at line 253 of file em_usart.h.

Referenced by RETARGET_SerialInit(), UARTDRV_Init(), and USART_InitAsync().

uint32_t USART_InitAsync_TypeDef::refFreq

USART/UART reference clock assumed when configuring baudrate setup. Set it to 0 if currently configurated reference clock shall be used.

Definition at line 259 of file em_usart.h.

Referenced by USART_InitAsync().

uint32_t USART_InitAsync_TypeDef::baudrate

Desired baudrate.

Definition at line 262 of file em_usart.h.

Referenced by UARTDRV_Init(), and USART_InitAsync().

USART_OVS_TypeDef USART_InitAsync_TypeDef::oversampling

Oversampling used.

Definition at line 265 of file em_usart.h.

Referenced by UARTDRV_Init(), and USART_InitAsync().

USART_Databits_TypeDef USART_InitAsync_TypeDef::databits

Number of databits in frame. Notice that UART modules only support 8 or 9 databits.

Definition at line 269 of file em_usart.h.

Referenced by UARTDRV_Init(), and USART_InitAsync().

USART_Parity_TypeDef USART_InitAsync_TypeDef::parity

Parity mode to use.

Definition at line 272 of file em_usart.h.

Referenced by UARTDRV_Init(), and USART_InitAsync().

USART_Stopbits_TypeDef USART_InitAsync_TypeDef::stopbits

Number of stopbits to use.

Definition at line 275 of file em_usart.h.

Referenced by UARTDRV_Init(), and USART_InitAsync().

bool USART_InitAsync_TypeDef::mvdis

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

Definition at line 279 of file em_usart.h.

Referenced by UARTDRV_Init(), and USART_InitAsync().

bool USART_InitAsync_TypeDef::prsRxEnable

Enable USART Rx via PRS.

Definition at line 282 of file em_usart.h.

Referenced by USART_InitAsync().

USART_PrsRxCh_TypeDef USART_InitAsync_TypeDef::prsRxCh

Select PRS channel for USART Rx. (Only valid if prsRxEnable is true).

Definition at line 285 of file em_usart.h.

Referenced by USART_InitAsync().


The documentation for this struct was generated from the following file: