Go to the documentation of this file.
56 #include "ring_buffer.h"
65 #ifdef HAL_UART_MODULE_ENABLED
71 #define TX_ONCE_MAX_SIZE 128
85 #if (UART_INSTANCE_MAX > 1)
88 #if (UART_INSTANCE_MAX > 2)
91 #if (UART_INSTANCE_MAX > 3)
94 #if (UART_INSTANCE_MAX > 4)
97 #if (UART_INSTANCE_MAX > 5)
121 #ifdef APP_DRIVER_WAKEUP_CALL_FUN
app_uart_dma_state_t uart_dma_state
app_uart_pin_cfg_t pin_cfg
app_uart_evt_handler_t evt_handler
app_uart_evt_type_t
UART event Enumerations definition.
app_uart_dma_state_t
App uart dma state types.
uint16_t app_uart_transmit_sync(app_uart_id_t id, uint8_t *p_data, uint16_t size, uint32_t timeout)
Send an amount of data in blocking mode.
ring_buffer_t tx_ring_buffer
dma_channel_t tx_dma_channel
app_uart_state_t uart_state
uint16_t app_uart_deinit(app_uart_id_t id)
De-initialize the APP UART DRIVER peripheral.
uint16_t app_uart_abort(app_uart_id_t id)
Abort transmit and receive process and generate abort callback.
uint16_t app_uart_init(app_uart_params_t *p_params, app_uart_evt_handler_t evt_handler, app_uart_tx_buf_t *tx_buffer)
Initialize the APP UART DRIVER according to the specified parameters in the app_uart_params_t and app...
app_io_pull_t
GPIO pull Enumerations definition.
app_uart_state_t
App uart state types.
app_io_type_t
GPIO type Enumerations definition.
dma_channel_t rx_dma_channel
volatile bool start_flush_flag
UART handle Structure definition.
UART parameters structure definition.
UART buffer structure definition.
UART init structure definition.
dma_regs_t * rx_dma_instance
Header file containing functions prototypes of GPIO app library.
uint16_t app_uart_abort_receive(app_uart_id_t id)
Abort receive process and generate abort receive callback.
@ APP_UART_EVT_ABORT_TXRX
uint16_t app_uart_receive_sync(app_uart_id_t id, uint8_t *p_data, uint16_t size, uint32_t timeout)
Receive an amount of data in blocking mode.
This file contains all the functions prototypes for the HAL module driver.
void(* app_uart_evt_handler_t)(app_uart_evt_t *p_evt)
UART event callback definition.
UART device structure definition.
dma_regs_t * tx_dma_instance
app_uart_pin_cfg_t * p_pin_cfg
UART event structure definition.
uint16_t app_uart_receive_async(app_uart_id_t id, uint8_t *p_data, uint16_t size)
Receive an amount of data in interrupt mode.
void app_uart_assert_flush(app_uart_id_t id)
Flush all log entries from the buffer for assert.
Header file containing functions prototypes of DMA app library.
UART DMA configuration structure definition.
uint16_t app_uart_transmit_async(app_uart_id_t id, uint8_t *p_data, uint16_t size)
Send an amount of data in interrupt mode.
uart_handle_t * app_uart_get_handle(app_uart_id_t id)
Return the UART handle.
app_uart_dma_cfg_t dma_cfg
app_uart_id_t
UART module Enumerations definition.
app_io_mux_t
GPIO mux Enumerations definition.
UART pins config Structures.
Header file of app driver config code.
volatile bool start_tx_flag
void app_uart_flush(app_uart_id_t id)
Flush all log entries from the buffer.
int16_t dma_id_t
DMA id definition.
dma_channel_t
HAL DMA Channel Enumerations definition.
uint16_t app_uart_abort_transmit(app_uart_id_t id)
Abort transmit process and generate abort transmit callback.