USART configuration struct.
Configuration options for USART.
#include <usart.h>
Data Fields | |
uint32_t | baudrate |
USART baudrate. More... | |
enum usart_character_size | character_size |
USART character size. More... | |
bool | clock_polarity_inverted |
USART Clock Polarity. More... | |
bool | collision_detection_enable |
Enable collision dection. More... | |
enum usart_dataorder | data_order |
USART bit order (MSB or LSB first) More... | |
bool | encoding_format_enable |
Enable IrDA encoding format. More... | |
uint32_t | ext_clock_freq |
External clock frequency in synchronous mode. More... | |
enum gclk_generator | generator_source |
GCLK generator source. More... | |
bool | immediate_buffer_overflow_notification |
Controls when the buffer overflow status bit is asserted when a buffer overflow occurs. More... | |
struct iso7816_config_t | iso7816_config |
Enable ISO7816 for smart card interfacing. More... | |
enum lin_master_break_length | lin_break_length |
LIN Master Break Length. More... | |
enum lin_master_header_delay | lin_header_delay |
LIN master header delay. More... | |
enum lin_node_type | lin_node |
LIN node type. More... | |
bool | lin_slave_enable |
Enable LIN Slave Support. More... | |
enum usart_signal_mux_settings | mux_setting |
USART pin out. More... | |
enum usart_parity | parity |
USART parity. More... | |
uint32_t | pinmux_pad0 |
PAD0 pinmux. More... | |
uint32_t | pinmux_pad1 |
PAD1 pinmux. More... | |
uint32_t | pinmux_pad2 |
PAD2 pinmux. More... | |
uint32_t | pinmux_pad3 |
PAD3 pinmux. More... | |
uint8_t | receive_pulse_length |
The minimum pulse length required for a pulse to be accepted by the IrDA receiver. More... | |
bool | receiver_enable |
Enable receiver. More... | |
enum rs485_guard_time | rs485_guard_time |
RS485 guard time. More... | |
bool | run_in_standby |
If true the USART will be kept running in Standby sleep mode. More... | |
enum usart_sample_adjustment | sample_adjustment |
USART sample adjustment. More... | |
enum usart_sample_rate | sample_rate |
USART sample rate. More... | |
bool | start_frame_detection_enable |
Enable start of frame dection. More... | |
enum usart_stopbits | stopbits |
Number of stop bits. More... | |
enum usart_transfer_mode | transfer_mode |
USART in asynchronous or synchronous mode. More... | |
bool | transmitter_enable |
Enable transmitter. More... | |
bool | use_external_clock |
States whether to use the external clock applied to the XCK pin. More... | |
uint32_t usart_config::baudrate |
USART baudrate.
Referenced by _usart_set_config(), buffered_uart_init(), cdc_uart_init(), configure_console(), configure_serial_drv(), configure_usart(), main(), serial_bridge_init(), serial_console_init(), setup_usart_channel(), sio2host_init(), sio2ncp_init(), test_system_init(), uart_config(), usart_configure_flowcontrol(), usart_get_config_defaults(), and usart_open().
enum usart_character_size usart_config::character_size |
USART character size.
Referenced by _usart_set_config(), run_transfer_single_9bit_char_test(), uart_config(), usart_get_config_defaults(), and usart_init().
bool usart_config::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.
Referenced by _usart_set_config(), and usart_get_config_defaults().
bool usart_config::collision_detection_enable |
Enable collision dection.
Referenced by _usart_set_config(), and usart_get_config_defaults().
enum usart_dataorder usart_config::data_order |
USART bit order (MSB or LSB first)
Referenced by _usart_set_config(), and usart_get_config_defaults().
bool usart_config::encoding_format_enable |
Enable IrDA encoding format.
Referenced by _usart_set_config(), and usart_get_config_defaults().
uint32_t usart_config::ext_clock_freq |
External clock frequency in synchronous mode.
This must be set if use_external_clock
is true.
Referenced by _usart_set_config(), and usart_get_config_defaults().
enum gclk_generator usart_config::generator_source |
GCLK generator source.
Referenced by configure_console(), configure_serial_drv(), configure_usart(), main(), serial_bridge_init(), uart_config(), usart_configure_flowcontrol(), usart_get_config_defaults(), usart_init(), and usart_open().
bool usart_config::immediate_buffer_overflow_notification |
Controls when the buffer overflow status bit is asserted when a buffer overflow occurs.
Referenced by _usart_set_config(), and usart_get_config_defaults().
struct iso7816_config_t usart_config::iso7816_config |
Enable ISO7816 for smart card interfacing.
Referenced by _usart_set_config(), usart_get_config_defaults(), and usart_init().
enum lin_master_break_length usart_config::lin_break_length |
LIN Master Break Length.
Referenced by _usart_set_config(), and usart_get_config_defaults().
enum lin_master_header_delay usart_config::lin_header_delay |
LIN master header delay.
Referenced by _usart_set_config(), and usart_get_config_defaults().
enum lin_node_type usart_config::lin_node |
LIN node type.
Referenced by _usart_set_config(), and usart_get_config_defaults().
bool usart_config::lin_slave_enable |
Enable LIN Slave Support.
Referenced by _usart_set_config(), usart_get_config_defaults(), and usart_init().
enum usart_signal_mux_settings usart_config::mux_setting |
USART pin out.
Referenced by _usart_set_config(), buffered_uart_init(), cdc_rx_init(), cdc_uart_init(), configure_console(), configure_serial_drv(), configure_usart(), main(), serial_bridge_init(), serial_console_init(), setup_usart_channel(), sio2host_init(), sio2ncp_init(), test_system_init(), uart_config(), usart_configure_flowcontrol(), usart_get_config_defaults(), and usart_open().
enum usart_parity usart_config::parity |
USART parity.
Referenced by _usart_set_config(), uart_config(), and usart_get_config_defaults().
uint32_t usart_config::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.
Referenced by buffered_uart_init(), cdc_rx_init(), cdc_uart_init(), configure_console(), configure_serial_drv(), configure_usart(), main(), serial_bridge_init(), serial_console_init(), setup_usart_channel(), sio2host_init(), sio2ncp_init(), test_system_init(), uart_config(), usart_configure_flowcontrol(), usart_get_config_defaults(), usart_init(), and usart_open().
uint32_t usart_config::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.
Referenced by buffered_uart_init(), cdc_rx_init(), cdc_uart_init(), configure_console(), configure_serial_drv(), configure_usart(), main(), serial_bridge_init(), serial_console_init(), setup_usart_channel(), sio2host_init(), sio2ncp_init(), test_system_init(), uart_config(), usart_configure_flowcontrol(), usart_get_config_defaults(), usart_init(), and usart_open().
uint32_t usart_config::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.
Referenced by buffered_uart_init(), cdc_rx_init(), cdc_uart_init(), configure_console(), configure_serial_drv(), configure_usart(), main(), serial_bridge_init(), serial_console_init(), setup_usart_channel(), sio2host_init(), sio2ncp_init(), test_system_init(), uart_config(), usart_configure_flowcontrol(), usart_get_config_defaults(), usart_init(), and usart_open().
uint32_t usart_config::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.
Referenced by buffered_uart_init(), cdc_rx_init(), cdc_uart_init(), configure_console(), configure_serial_drv(), configure_usart(), main(), serial_bridge_init(), serial_console_init(), setup_usart_channel(), sio2host_init(), sio2ncp_init(), test_system_init(), uart_config(), usart_configure_flowcontrol(), usart_get_config_defaults(), usart_init(), and usart_open().
uint8_t usart_config::receive_pulse_length |
The minimum pulse length required for a pulse to be accepted by the IrDA receiver.
Referenced by _usart_set_config(), and usart_get_config_defaults().
bool usart_config::receiver_enable |
Enable receiver.
Referenced by _usart_set_config(), usart_get_config_defaults(), and usart_init().
enum rs485_guard_time usart_config::rs485_guard_time |
RS485 guard time.
Referenced by _usart_set_config(), and usart_get_config_defaults().
bool usart_config::run_in_standby |
If true the USART will be kept running in Standby sleep mode.
Referenced by _usart_set_config(), and usart_get_config_defaults().
enum usart_sample_adjustment usart_config::sample_adjustment |
USART sample adjustment.
Referenced by _usart_set_config(), and usart_get_config_defaults().
enum usart_sample_rate usart_config::sample_rate |
USART sample rate.
Referenced by _usart_set_config(), and usart_get_config_defaults().
bool usart_config::start_frame_detection_enable |
Enable start of frame dection.
Referenced by _usart_set_config(), usart_get_config_defaults(), and usart_init().
enum usart_stopbits usart_config::stopbits |
Number of stop bits.
Referenced by _usart_set_config(), uart_config(), and usart_get_config_defaults().
enum usart_transfer_mode usart_config::transfer_mode |
USART in asynchronous or synchronous mode.
Referenced by _usart_set_config(), and usart_get_config_defaults().
bool usart_config::transmitter_enable |
Enable transmitter.
Referenced by _usart_set_config(), usart_get_config_defaults(), and usart_init().
bool usart_config::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.
Referenced by _usart_set_config(), and usart_get_config_defaults().