Asynchronous mode initialization structure.
Public Attributes#
Specifies whether TX and/or RX is enabled when initialization is completed.
USART/UART reference clock assumed when configuring baud rate setup.
Desired baud rate.
Oversampling used.
Number of data bits in frame.
Parity mode to use.
Number of stop bits to use.
Majority Vote Disable for 16x, 8x and 6x oversampling modes.
Enable USART Rx via PRS.
Select PRS channel for USART Rx.
Auto CS enabling.
Enable CS invert.
Auto CS hold time in baud cycles.
Auto CS setup time in baud cycles.
Hardware flow control mode.
Public Attribute Documentation#
enable#
USART_Enable_TypeDef USART_InitAsync_TypeDef::enable
Specifies whether TX and/or RX is enabled when initialization is completed.
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.
296
of file platform/emlib/inc/em_usart.h
baudrate#
uint32_t USART_InitAsync_TypeDef::baudrate
Desired baud rate.
299
of file platform/emlib/inc/em_usart.h
oversampling#
USART_OVS_TypeDef USART_InitAsync_TypeDef::oversampling
Oversampling used.
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.
306
of file platform/emlib/inc/em_usart.h
parity#
USART_Parity_TypeDef USART_InitAsync_TypeDef::parity
Parity mode to use.
309
of file platform/emlib/inc/em_usart.h
stopbits#
USART_Stopbits_TypeDef USART_InitAsync_TypeDef::stopbits
Number of stop bits to use.
312
of file platform/emlib/inc/em_usart.h
mvdis#
bool USART_InitAsync_TypeDef::mvdis
Majority Vote Disable for 16x, 8x and 6x oversampling modes.
316
of file platform/emlib/inc/em_usart.h
prsRxEnable#
bool USART_InitAsync_TypeDef::prsRxEnable
Enable USART Rx via PRS.
319
of file platform/emlib/inc/em_usart.h
prsRxCh#
USART_PRS_Channel_t USART_InitAsync_TypeDef::prsRxCh
Select PRS channel for USART Rx.
(Only valid if prsRxEnable is true).
322
of file platform/emlib/inc/em_usart.h
autoCsEnable#
bool USART_InitAsync_TypeDef::autoCsEnable
Auto CS enabling.
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.
330
of file platform/emlib/inc/em_usart.h
autoCsHold#
uint8_t USART_InitAsync_TypeDef::autoCsHold
Auto CS hold time in baud cycles.
334
of file platform/emlib/inc/em_usart.h
autoCsSetup#
uint8_t USART_InitAsync_TypeDef::autoCsSetup
Auto CS setup time in baud cycles.
337
of file platform/emlib/inc/em_usart.h
hwFlowControl#
USART_HwFlowControl_TypeDef USART_InitAsync_TypeDef::hwFlowControl
Hardware flow control mode.
340
of file platform/emlib/inc/em_usart.h