|
Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
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. | |
UART Emulation Interface.
| typedef void(* uart_emul_device_tx_data_ready_t) (const struct device *dev, size_t size, const struct emul *target) |
#include <include/zephyr/drivers/uart_emul.h>
Define the emulation callback function signature.
| dev | UART device instance |
| size | Number of available bytes in TX buffer |
| target | pointer to emulation context |
#include <include/zephyr/drivers/uart_emul.h>
Register an emulated device on the controller.
| dev | Device that will use the emulator |
| emul | UART emulator to use |