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

Public APIs for UART MUX drivers. More...

#include <zephyr/device.h>
#include <zephyr/drivers/uart.h>
#include <syscalls/uart_mux.h>

Go to the source code of this file.

Data Structures

struct  uart_mux_driver_api
 UART mux driver API structure. More...
 

Typedefs

typedef void(* uart_mux_attach_cb_t) (const struct device *mux, int dlci_address, bool connected, void *user_data)
 Define the user callback function which is called when the UART mux is attached properly.
 
typedef void(* uart_mux_cb_t) (const struct device *uart, const struct device *dev, int dlci_address, void *user_data)
 Callback used while iterating over UART muxes.
 

Functions

static int uart_mux_attach (const struct device *mux, const struct device *uart, int dlci_address, uart_mux_attach_cb_t cb, void *user_data)
 Attach physical/real UART to UART muxing device.
 
const struct deviceuart_mux_find (int dlci_address)
 Get UART related to a specific DLCI channel.
 
const struct deviceuart_mux_alloc (void)
 Allocate muxing UART device.
 
void uart_mux_foreach (uart_mux_cb_t cb, void *user_data)
 Go through all the UART muxes and call callback for each of them.
 
void uart_mux_disable (const struct device *dev)
 Disable the mux.
 
void uart_mux_enable (const struct device *dev)
 Enable the mux.
 

Detailed Description

Public APIs for UART MUX drivers.