Ares LoRa Firmware
Loading...
Searching...
No Matches
serial_backend.h File Reference

Serial transport layer header. More...

#include <serial/serial.h>
#include <serial/serial_common.h>
#include <zephyr/sys/ring_buffer.h>
Include dependency graph for serial_backend.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  serial_uart_common
 Serial transfer layer common internals. More...
struct  serial_uart_int_driven
 Serial interrupt driven transport layer internals. More...

Macros

#define SERIAL_UART_STRUCT   struct serial_uart_int_driven
#define SERIAL_UART_DEFINE(_name)
 Macro for creating a serial transport instance.

Functions

const struct ares_serialares_serial_backend_uart_get_ptr (void)
 Provides pointer to the ares_serial backend instance.

Variables

const struct ares_serial_transport_api ares_serial_uart_transport_api

Detailed Description

Serial transport layer header.

Date
3/20/26
Author
Tom Schmitz <tschm.nosp@m.itz@.nosp@m.andre.nosp@m.w.cm.nosp@m.u.edu>

Macro Definition Documentation

◆ SERIAL_UART_DEFINE

#define SERIAL_UART_DEFINE ( _name)
Value:
static SERIAL_UART_STRUCT _name##_backend_uart; \
static struct ares_serial_transport _name = { \
.api = &ares_serial_uart_transport_api, .ctx = &_name##_backend_uart}
const struct ares_serial_transport_api ares_serial_uart_transport_api
#define SERIAL_UART_STRUCT
Definition serial_backend.h:98
Transfer interface.
Definition serial.h:151

Macro for creating a serial transport instance.

Parameters
_nameThe instance name.

◆ SERIAL_UART_STRUCT

#define SERIAL_UART_STRUCT   struct serial_uart_int_driven

Serial transport implementation struct.

Function Documentation

◆ ares_serial_backend_uart_get_ptr()

const struct ares_serial * ares_serial_backend_uart_get_ptr ( void )

Provides pointer to the ares_serial backend instance.

Returns
Pointer to the backend serial instance.

Variable Documentation

◆ ares_serial_uart_transport_api

const struct ares_serial_transport_api ares_serial_uart_transport_api
extern

Serial transport API.