Go to the documentation of this file.
56 #include "ring_buffer.h"
59 #ifdef ENV_USE_FREERTOS
67 #ifdef HAL_UART_MODULE_ENABLED
292 #ifdef ENV_RTOS_USE_SEMP
304 uint16_t app_uart_receive_sem_sync(
app_uart_id_t id, uint8_t *p_data, uint16_t size);
317 uint16_t app_uart_transmit_sem_sync(
app_uart_id_t id, uint8_t *p_data, uint16_t size);
app_uart_pin_t rx
Definition: app_uart.h:131
app_uart_pin_cfg_t pin_cfg
Definition: app_uart.h:152
app_io_pull_t pull
Definition: app_uart.h:121
uart_init_t init
Definition: app_uart.h:154
@ APP_UART_EVT_ABORT_RX
Definition: app_uart.h:103
app_uart_evt_type_t
UART event Enumerations definition.
Definition: app_uart.h:98
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.
@ APP_UART_TYPE_MAX
Definition: app_uart.h:91
app_uart_mode_t use_mode
Definition: app_uart.h:153
app_uart_id_t id
Definition: app_uart.h:151
@ APP_UART_TYPE_POLLING
Definition: app_uart.h:89
app_uart_pin_t cts
Definition: app_uart.h:132
uint16_t app_uart_deinit(app_uart_id_t id)
De-initialize the APP UART DRIVER peripheral.
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.
Definition: app_io.h:187
app_io_type_t
GPIO type Enumerations definition.
Definition: app_io.h:141
@ APP_UART_EVT_ABORT_TX
Definition: app_uart.h:102
UART handle Structure definition.
Definition: gr55xx_hal_uart.h:153
UART parameters structure definition.
Definition: app_uart.h:150
dma_channel_t tx_dma_channel
Definition: app_uart.h:142
UART buffer structure definition.
Definition: app_uart.h:179
uint32_t tx_buf_size
Definition: app_uart.h:181
app_uart_pin_t tx
Definition: app_uart.h:130
UART operate mode Enumerations definition.
Definition: app_uart.h:140
UART init structure definition.
Definition: gr55xx_hal_uart.h:120
@ APP_UART_ID_0
Definition: app_uart.h:78
Header file containing functions prototypes of GPIO app library.
uint8_t * tx_buf
Definition: app_uart.h:180
void(* app_uart_evt_handler_t)(app_uart_evt_t *p_evt)
UART event callback definition.
Definition: app_uart.h:173
app_uart_evt_type_t type
Definition: app_uart.h:162
@ APP_UART_EVT_RX_DATA
Definition: app_uart.h:101
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.
UART event structure definition.
Definition: app_uart.h:161
uint16_t size
Definition: app_uart.h:166
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.
@ APP_UART_ID_MAX
Definition: app_uart.h:80
app_uart_type_t type
Definition: app_uart.h:141
This file contains all the functions prototypes for the HAL module driver.
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_TYPE_INTERRUPT
Definition: app_uart.h:88
app_io_mux_t mux
Definition: app_uart.h:118
app_uart_id_t
UART module Enumerations definition.
Definition: app_uart.h:77
app_io_mux_t
GPIO mux Enumerations definition.
Definition: app_io.h:198
app_uart_pin_t rts
Definition: app_uart.h:133
uint32_t pin
Definition: app_uart.h:119
@ APP_UART_TYPE_DMA
Definition: app_uart.h:90
UART IO configuration Structures.
Definition: app_uart.h:129
uint32_t error_code
Definition: app_uart.h:165
@ APP_UART_EVT_ERROR
Definition: app_uart.h:99
Header file of app rtos config code.
UART IO Structures.
Definition: app_uart.h:116
void app_uart_flush(app_uart_id_t id)
Flush all log entries from the buffer.
app_uart_type_t
UART operating mode Enumerations definition.
Definition: app_uart.h:87
@ APP_UART_ID_1
Definition: app_uart.h:79
app_io_type_t type
Definition: app_uart.h:117
dma_channel_t rx_dma_channel
Definition: app_uart.h:143
dma_channel_t
HAL DMA Channel Enumerations definition.
Definition: gr55xx_hal_dma.h:93
@ APP_UART_EVT_TX_CPLT
Definition: app_uart.h:100