Synchronous mode initialization structure.
Public Attributes#
Select if to operate in master or slave mode.
Select if to send most or least significant bit first.
Enable CS invert.
Enable AUTOTX mode.
Auto CS enabling.
Enable USART Rx via PRS.
Select PRS channel for USART Rx. (Only valid if prs_rx_enable is true).
Auto CS hold time in baud cycles.
Auto CS setup time in baud cycles.
Desired baud rate.
Number of data bits in frame.
Clock polarity/phase mode.
Public Attribute Documentation#
msb_first#
bool sl_hal_usart_sync_init_t::msb_first
Select if to send most or least significant bit first.
cs_invert#
bool sl_hal_usart_sync_init_t::cs_invert
Enable CS invert.
By default, chip select is active low. Set to true to make chip select active high.
auto_tx#
bool sl_hal_usart_sync_init_t::auto_tx
Enable AUTOTX mode.
Transmits as long as RX is not full. Generates underflows if TX is empty.
prs_rx_channel#
uint8_t sl_hal_usart_sync_init_t::prs_rx_channel
Select PRS channel for USART Rx. (Only valid if prs_rx_enable is true).