Synchronous mode initialization structure.
Public Attributes#
Specifies whether TX and/or RX shall be enabled when initialization is completed.
USART/UART reference clock assumed when configuring baud rate setup.
Desired baud rate.
Number of data bits in frame.
Select if to operate in master or slave mode.
Select if to send most or least significant bit first.
Clock polarity/phase mode.
Enable USART Rx via PRS.
Select PRS channel for USART Rx.
Enable AUTOTX mode.
Auto CS enabling.
Enable CS invert.
Auto CS hold time in baud cycles.
Auto CS setup time in baud cycles.
Public Attribute Documentation#
enable#
USART_Enable_TypeDef USART_InitSync_TypeDef::enable
Specifies whether TX and/or RX shall be enabled when initialization is completed.
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.
prsRxCh#
USART_PRS_Channel_t USART_InitSync_TypeDef::prsRxCh
Select PRS channel for USART Rx.
(Only valid if prsRxEnable is true).
autoTx#
bool USART_InitSync_TypeDef::autoTx
Enable AUTOTX mode.
Transmits as long as RX is not full. Generates underflows if TX is empty.
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.