Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
uart_mux_driver_api Struct Reference

UART mux driver API structure. More...

#include <uart_mux.h>

Data Fields

struct uart_driver_api uart_api
 The uart_driver_api must be placed in first position in this struct so that we are compatible with uart API.
 
int(* attach )(const struct device *mux, const struct device *uart, int dlci_address, uart_mux_attach_cb_t cb, void *user_data)
 Attach the mux to this UART.
 

Detailed Description

UART mux driver API structure.

Field Documentation

◆ attach

int(* uart_mux_driver_api::attach) (const struct device *mux, const struct device *uart, int dlci_address, uart_mux_attach_cb_t cb, void *user_data)

Attach the mux to this UART.

The API will call the callback after the DLCI is created or not.

◆ uart_api

struct uart_driver_api uart_mux_driver_api::uart_api

The uart_driver_api must be placed in first position in this struct so that we are compatible with uart API.

Note that currently not all of the UART API functions are implemented.


The documentation for this struct was generated from the following file: