Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
uart_mux_driver_api Struct Reference

UART mux driver API structure. More...

#include <uart_mux.h>

Data Fields

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

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: