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 | 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.
◆ 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.