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.
433
of file platform/emlib/inc/em_usart.h
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.
439
of file platform/emlib/inc/em_usart.h
baudrate#
uint32_t USART_InitSync_TypeDef::baudrate
Desired baud rate.
442
of file platform/emlib/inc/em_usart.h
databits#
USART_Databits_TypeDef USART_InitSync_TypeDef::databits
Number of data bits in frame.
445
of file platform/emlib/inc/em_usart.h
master#
bool USART_InitSync_TypeDef::master
Select if to operate in master or slave mode.
448
of file platform/emlib/inc/em_usart.h
msbf#
bool USART_InitSync_TypeDef::msbf
Select if to send most or least significant bit first.
451
of file platform/emlib/inc/em_usart.h
clockMode#
USART_ClockMode_TypeDef USART_InitSync_TypeDef::clockMode
Clock polarity/phase mode.
454
of file platform/emlib/inc/em_usart.h
prsRxEnable#
bool USART_InitSync_TypeDef::prsRxEnable
Enable USART Rx via PRS.
458
of file platform/emlib/inc/em_usart.h
prsRxCh#
USART_PRS_Channel_t USART_InitSync_TypeDef::prsRxCh
Select PRS channel for USART Rx.
(Only valid if prsRxEnable is true).
461
of file platform/emlib/inc/em_usart.h
autoTx#
bool USART_InitSync_TypeDef::autoTx
Enable AUTOTX mode.
Transmits as long as RX is not full. Generates underflows if TX is empty.
467
of file platform/emlib/inc/em_usart.h
autoCsEnable#
bool USART_InitSync_TypeDef::autoCsEnable
Auto CS enabling.
471
of file platform/emlib/inc/em_usart.h
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.
475
of file platform/emlib/inc/em_usart.h
autoCsHold#
uint8_t USART_InitSync_TypeDef::autoCsHold
Auto CS hold time in baud cycles.
479
of file platform/emlib/inc/em_usart.h
autoCsSetup#
uint8_t USART_InitSync_TypeDef::autoCsSetup
Auto CS setup time in baud cycles.
482
of file platform/emlib/inc/em_usart.h