Types
Hardware UART data types. More...
Data Structures |
|
struct | gos_uart_powersave_config_t |
UART powersave configuration.
More...
|
|
struct | gos_uart_config_t |
UART configuration.
More...
|
|
Typedefs |
|
typedef gos_result_t (* | gos_uart_callback_t ) (void *unused) |
UART callback.
More...
|
|
Enumerations |
|
enum |
gos_uart_width_t
{
GOS_UART_WIDTH_4BIT = 0, GOS_UART_WIDTH_5BIT = 1, GOS_UART_WIDTH_6BIT = 2, GOS_UART_WIDTH_7BIT = 3, GOS_UART_WIDTH_8BIT = 4, GOS_UART_WIDTH_9BIT = 5, GOS_UART_WIDTH_10BIT = 6, GOS_UART_WIDTH_11BIT = 7, GOS_UART_WIDTH_12BIT = 8, GOS_UART_WIDTH_13BIT = 9, GOS_UART_WIDTH_14BIT = 10, GOS_UART_WIDTH_15BIT = 11, GOS_UART_WIDTH_16BIT = 12 } |
UART data width.
More...
|
|
enum |
gos_uart_stop_bits_t
{
GOS_UART_STOP_BITS_1 = 0, GOS_UART_STOP_BITS_2 = 1 } |
UART stop bits.
More...
|
|
enum |
gos_uart_flow_control_t
{
GOS_UART_FLOW_CONTROL_DISABLED = 0 , GOS_UART_FLOW_CONTROL_CTSRTS = 3 } |
UART hardware flow control.
More...
|
|
enum |
gos_uart_parity_t
{
GOS_UART_NO_PARITY = 0, GOS_UART_ODD_PARITY = 1, GOS_UART_EVEN_PARITY = 2 } |
UART data parity.
More...
|
|
enum |
gos_uart_powersave_mode_t
{
GOS_UART_POWERSAVE_DISABLED = 0, GOS_UART_POWERSAVE_WAKE_EXTERNAL } |
UART powersave mode.
More...
|
|
enum |
gos_uart_t
{
GOS_UART_0 , GOS_UART_MAX } |
Detailed Description
Hardware UART data types.
Typedef Documentation
◆ gos_uart_callback_t
typedef gos_result_t (* gos_uart_callback_t) (void *unused) |
UART callback.
This callback is used by gos_uart_set_tx_processor() and gos_uart_set_rx_callback()
For gos_uart_set_tx_processor() , return GOS_SUCCESS to continue processing, any other error could will abort the transfer.
Enumeration Type Documentation
◆ gos_uart_flow_control_t
◆ gos_uart_parity_t
enum gos_uart_parity_t |
◆ gos_uart_powersave_mode_t
◆ gos_uart_stop_bits_t
enum gos_uart_stop_bits_t |
◆ gos_uart_t
enum gos_uart_t |
◆ gos_uart_width_t
enum gos_uart_width_t |
UART data width.