30 #ifndef M2MB_UART_API_H 31 #define M2MB_UART_API_H 52 #define M2MB_CONSOLE_PORT M2MB_UART_HS_PORT_E
VOID(* M2MB_UART_CB_T)(UINT32 num_bytes, VOID *p_cb_data)
UART call back prototype.
M2MB_STATUS_T m2mb_uart_close(M2MB_UART_HANDLE_T p_handle)
Close UART port.
M2MB_UART_NUM_STOP_BITS_E num_stop_bits
M2MB_UART_BITS_PER_CHAR_E
UART bits per character configuration enumeration.
M2MB_STATUS_T m2mb_uart_open(M2MB_UART_HANDLE_T *p_handle, M2MB_UART_PORT_ID_E id, M2MB_UART_CONFIG_T *p_config)
Opens the UART port.
M2MB_UART_NUM_STOP_BITS_E
UART number of stop bits configuration enumeration.
struct M2MB_UART_CONFIG M2MB_UART_CONFIG_T
Structure to configure UART module.
M2MB_UART_PARITY_MODE_E
UART parity mode configuration enumeration.
M2MB_STATUS_T m2mb_uart_write(M2MB_UART_HANDLE_T p_handle, CHAR *p_buf, UINT32 bytes_to_tx, VOID *p_cb_data)
Transmits data over UART port.
M2MB_UART_PARITY_MODE_E parity_mode
UINT8 * m2mb_uart_read(HANDLE h, UINT32 *size, UINT32 timeout, UINT8 *buff, VOID *p_cb_data)
Receives data from UART port.
Structure to configure UART module.
VOID * M2MB_UART_HANDLE_T
UART Handle pointer.
M2MB_UART_BITS_PER_CHAR_E bits_per_char
M2MB_UART_PORT_ID_E
UART Port Identifier enumeration.