16.6.2.2 Struct usart_config
Configuration options for USART.
Type | Name | Description |
---|---|---|
uint32_t | baudrate |
USART baudrate |
enum usart_character_size | character_size |
USART character size |
bool | clock_polarity_inverted |
USART Clock Polarity. If true, data changes on falling XCK edge and is sampled at rising edge. If false, data changes on rising XCK edge and is sampled at falling edge. |
bool | collision_detection_enable |
Enable collision dection |
enum usart_dataorder | data_order |
USART bit order (MSB or LSB first) |
bool | encoding_format_enable |
Enable IrDA encoding format |
uint32_t | ext_clock_freq |
External clock frequency in synchronous mode. This must be set if use_external_clock is true. |
enum gclk_generator | generator_source |
GCLK generator source |
bool | immediate_buffer_overflow_notification |
Controls when the buffer overflow status bit is asserted when a buffer overflow occurs |
struct iso7816_config_t | iso7816_config |
Enable ISO7816 for smart card interfacing |
enum lin_master_break_length | lin_break_length |
LIN Master Break Length |
enum lin_master_header_delay | lin_header_delay |
LIN master header delay |
enum lin_node_type | lin_node |
LIN node type |
bool | lin_slave_enable |
Enable LIN Slave Support |
enum usart_signal_mux_settings | mux_setting |
USART pin out |
enum usart_parity | parity |
USART parity |
uint32_t | pinmux_pad0 |
PAD0 pinmux. If current USARTx has several alternative multiplexing I/O pins for PAD0, then only one peripheral multiplexing I/O can be enabled for current USARTx PAD0 function. Make sure that no other alternative multiplexing I/O is associated with the same USARTx PAD0. |
uint32_t | pinmux_pad1 |
PAD1 pinmux. If current USARTx has several alternative multiplexing I/O pins for PAD1, then only one peripheral multiplexing I/O can be enabled for current USARTx PAD1 function. Make sure that no other alternative multiplexing I/O is associated with the same USARTx PAD1. |
uint32_t | pinmux_pad2 |
PAD2 pinmux. If current USARTx has several alternative multiplexing I/O pins for PAD2, then only one peripheral multiplexing I/O can be enabled for current USARTx PAD2 function. Make sure that no other alternative multiplexing I/O is associated with the same USARTx PAD2. |
uint32_t | pinmux_pad3 |
PAD3 pinmux. If current USARTx has several alternative multiplexing I/O pins for PAD3, then only one peripheral multiplexing I/O can be enabled for current USARTx PAD3 function. Make sure that no other alternative multiplexing I/O is associated with the same USARTx PAD3. |
uint8_t | receive_pulse_length |
The minimum pulse length required for a pulse to be accepted by the IrDA receiver |
bool | receiver_enable |
Enable receiver |
enum rs485_guard_time | rs485_guard_time |
RS485 guard time |
bool | run_in_standby |
If true the USART will be kept running in Standby sleep mode |
enum usart_sample_adjustment | sample_adjustment |
USART sample adjustment |
enum usart_sample_rate | sample_rate |
USART sample rate |
bool | start_frame_detection_enable |
Enable start of frame dection |
enum usart_stopbits | stopbits |
Number of stop bits |
enum usart_transfer_mode | transfer_mode |
USART in asynchronous or synchronous mode |
bool | transmitter_enable |
Enable transmitter |
bool | use_external_clock |
States whether to use the external clock applied to the XCK pin. In synchronous mode the shift register will act directly on the XCK clock. In asynchronous mode the XCK will be the input to the USART hardware module. |