| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
app_uart_evt_t Struct Reference
UART module

Struct containing events from the UART module. More...

`#include <app_uart.h>`

## Data Fields
app_uart_evt_type_t | evt_type
union {
uint32_t error_communication
uint32_t error_code
uint8_t value
} | data

## Detailed Description

Struct containing events from the UART module.

The app_uart_evt_t is used to notify the application of asynchronous events when data are received on the UART peripheral or in case an error occured during data reception.

## Field Documentation

uint32_t app_uart_evt_t::error_code

Field used if evt_type is: NRF_ERROR_x. Additional status/error code if the error event type is APP_UART_FIFO_ERROR. This error code refer to errors defined in nrf_error.h.

uint32_t app_uart_evt_t::error_communication

Field used if evt_type is: APP_UART_COMMUNICATION_ERROR. This field contains the value in the ERRORSRC register for the UART peripheral. The UART_ERRORSRC_x defines from nrf5x_bitfields.h can be used to parse the error code. See also the nRF5 Series Reference Manual for specification.

app_uart_evt_type_t app_uart_evt_t::evt_type

Type of event.

uint8_t app_uart_evt_t::value

Field used if evt_type is: NRF_ERROR_x. Additional status/error code if the error event type is APP_UART_FIFO_ERROR. This error code refer to errors defined in nrf_error.h.