WE310F5  39.00.000
M2MB_UART_CONFIG Struct Reference

Structure to configure UART module. More...

#include <m2mb_uart.h>

Data Fields

UINT32 baud_rate
 
M2MB_UART_PARITY_MODE_E parity_mode
 
M2MB_UART_NUM_STOP_BITS_E num_stop_bits
 
M2MB_UART_BITS_PER_CHAR_E bits_per_char
 
UINT32 enable_loopback
 
UINT32 enable_flow_ctrl
 
M2MB_UART_CB_T tx_cb
 
M2MB_UART_CB_T rx_cb
 

Detailed Description

Structure to configure UART module.

Structure for storing the configuration of UART module. This will be used by m2mb_uart_open API to open UART module with given configuration.

Definition at line 182 of file m2mb_uart.h.

Field Documentation

◆ baud_rate

UINT32 baud_rate

Supported baud rates are 115200 bps, 1 Mbps, 2 Mbps, 3 Mbps, and 4 Mbps.

Definition at line 184 of file m2mb_uart.h.

◆ bits_per_char

Bits per character.

Definition at line 188 of file m2mb_uart.h.

◆ enable_flow_ctrl

UINT32 enable_flow_ctrl

Enable flow control.

Definition at line 190 of file m2mb_uart.h.

◆ enable_loopback

UINT32 enable_loopback

Enable loop back.

Definition at line 189 of file m2mb_uart.h.

◆ num_stop_bits

Number of stop bits.

Definition at line 187 of file m2mb_uart.h.

◆ parity_mode

Parity mode.

Definition at line 186 of file m2mb_uart.h.

◆ rx_cb

Receive callback, called from ISR context. Be sure not to violate ISR guidelines. Do not call uart_transmit or uart_receive APIs from this callback.

Definition at line 196 of file m2mb_uart.h.

◆ tx_cb

Transmit callback, called from ISR context. Be sure not to violate ISR guidelines. Do not call uart_transmit or uart_receiveAPIs from this callback.

Definition at line 191 of file m2mb_uart.h.


The documentation for this struct was generated from the following file: