Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
uart.h File Reference

Go to the source code of this file.

Data Structures

struct  modem_backend_uart_isr
struct  modem_backend_uart_async_common
struct  modem_backend_uart_async
struct  modem_backend_uart
struct  modem_backend_uart_config

Functions

struct modem_pipe * modem_backend_uart_init (struct modem_backend_uart *backend, const struct modem_backend_uart_config *config)
uint32_t modem_backend_uart_get_receive_dropped (const struct modem_backend_uart *backend)
 Get the number of received bytes the backend dropped.

Function Documentation

◆ modem_backend_uart_get_receive_dropped()

uint32_t modem_backend_uart_get_receive_dropped ( const struct modem_backend_uart * backend)

Get the number of received bytes the backend dropped.

Bytes are dropped when the receive buffer is full, because the pipe user did not read the received data fast enough.

Parameters
backendUART backend instance
Returns
Bytes dropped since the backend was initialized

◆ modem_backend_uart_init()

struct modem_pipe * modem_backend_uart_init ( struct modem_backend_uart * backend,
const struct modem_backend_uart_config * config )