7#ifndef ZEPHYR_INCLUDE_DRIVERS_UART_SERIAL_TEST_H_
8#define ZEPHYR_INCLUDE_DRIVERS_UART_SERIAL_TEST_H_
void(* serial_vnd_write_cb_t)(const struct device *dev, void *user_data)
Callback called after bytes written to the virtual serial port.
Definition serial_test.h:89
uint32_t serial_vnd_peek_out_data(const struct device *dev, unsigned char *data, uint32_t size)
Peek at data written to virtual serial port.
int serial_vnd_queue_in_data(const struct device *dev, const unsigned char *data, uint32_t size)
Queues data to be read by the virtual serial port.
uint32_t serial_vnd_out_data_size_get(const struct device *dev)
Returns size of unread written data.
void serial_vnd_set_callback(const struct device *dev, serial_vnd_write_cb_t callback, void *user_data)
Sets the write callback on a virtual serial port.
uint32_t serial_vnd_read_out_data(const struct device *dev, unsigned char *data, uint32_t size)
Read data written to virtual serial port.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
Runtime device structure (in ROM) per driver instance.
Definition device.h:403