Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
UART Emulation Interface

UART Emulation Interface . More...

Data Structures

struct  uart_emul
 Node in a linked list of emulators for UART devices. More...
 
struct  uart_emul_device_api
 Definition of the emulator API. More...
 

Typedefs

typedef void(* uart_emul_device_tx_data_ready_t) (const struct device *dev, size_t size, const struct emul *target)
 Define the emulation callback function signature.
 

Functions

int uart_emul_register (const struct device *dev, struct uart_emul *emul)
 Register an emulated device on the controller.
 

Detailed Description

UART Emulation Interface .

Typedef Documentation

◆ uart_emul_device_tx_data_ready_t

typedef void(* uart_emul_device_tx_data_ready_t) (const struct device *dev, size_t size, const struct emul *target)

#include <zephyr/drivers/uart_emul.h>

Define the emulation callback function signature.

Parameters
devUART device instance
sizeNumber of available bytes in TX buffer
targetpointer to emulation context

Function Documentation

◆ uart_emul_register()

int uart_emul_register ( const struct device * dev,
struct uart_emul * emul )

#include <zephyr/drivers/uart_emul.h>

Register an emulated device on the controller.

Parameters
devDevice that will use the emulator
emulUART emulator to use
Returns
0 indicating success