12#ifndef ZEPHYR_INCLUDE_DRIVERS_SERIAL_UART_EMUL_H_
13#define ZEPHYR_INCLUDE_DRIVERS_SERIAL_UART_EMUL_H_
uint32_t uart_emul_flush_tx_data(const struct device *dev)
Clear TX buffer content.
void uart_emul_set_errors(const struct device *dev, int errors)
Sets one or more driver errors.
uint32_t uart_emul_flush_rx_data(const struct device *dev)
Clear RX buffer content.
uint32_t uart_emul_put_rx_data(const struct device *dev, const uint8_t *data, size_t size)
Write (copy) data to RX buffer.
void(* uart_emul_callback_tx_data_ready_t)(const struct device *dev, size_t size, void *user_data)
Define the application callback function signature for uart_emul_callback_tx_data_ready_set() functio...
Definition uart_emul.h:30
uint32_t uart_emul_get_tx_data(const struct device *dev, uint8_t *data, size_t size)
Read data from TX buffer.
void uart_emul_set_release_buffer_on_timeout(const struct device *dev, bool release_on_timeout)
Configures if rx buffer should be released on timeout, even when only partially filled.
void uart_emul_callback_tx_data_ready_set(const struct device *dev, uart_emul_callback_tx_data_ready_t cb, void *user_data)
Set the TX data ready callback.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:403
void * data
Address of the device instance private data.
Definition device.h:413