USART_InitSync_TypeDef Struct Reference
Synchronous mode initialization structure.
#include <em_usart.h>
Data Fields |
|
USART_Enable_TypeDef | enable |
Specifies whether TX and/or RX shall be 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_Databits_TypeDef | databits |
Number of data bits in frame.
|
|
bool | master |
Select if to operate in master or slave mode.
|
|
bool | msbf |
Select if to send most or least significant bit first.
|
|
USART_ClockMode_TypeDef | clockMode |
Clock polarity/phase mode.
|
|
bool | prsRxEnable |
Enable USART Rx via PRS.
|
|
USART_PRS_Channel_t | prsRxCh |
Select PRS channel for USART Rx.
|
|
bool | autoTx |
Enable AUTOTX mode.
|
|
bool | autoCsEnable |
Auto CS enabling.
|
|
bool | csInv |
Enable CS invert.
|
|
Synchronous mode initialization structure.
Field 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.
◆ baudrate
uint32_t USART_InitSync_TypeDef::baudrate |
Desired baud rate.
◆ databits
USART_Databits_TypeDef USART_InitSync_TypeDef::databits |
Number of data bits in frame.
◆ master
bool USART_InitSync_TypeDef::master |
Select if to operate in master or slave mode.
◆ msbf
bool USART_InitSync_TypeDef::msbf |
Select if to send most or least significant bit first.
◆ clockMode
USART_ClockMode_TypeDef USART_InitSync_TypeDef::clockMode |
Clock polarity/phase mode.
◆ prsRxEnable
bool USART_InitSync_TypeDef::prsRxEnable |
Enable USART Rx via PRS.
◆ 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.
◆ autoCsEnable
bool USART_InitSync_TypeDef::autoCsEnable |
Auto CS enabling.
◆ 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.