22#ifndef LELY_IO_SERIAL_H_
23#define LELY_IO_SERIAL_H_
This is the public header file of the I/O library.
@ IO_PURGE_TX
Purge the transmit buffer of a serial I/O device.
@ IO_PURGE_RX
Purge the receive buffer of a serial I/O device.
int io_serial_set_attr(io_handle_t handle, const io_attr_t *attr)
Sets the attributes of a serial I/O device to those in *attr.
io_handle_t io_open_serial(const char *path, io_attr_t *attr)
Opens a serial I/O device.
int io_purge(io_handle_t handle, int flags)
Purges the receive and/or transmit buffers of a serial I/O device.
int io_serial_get_attr(io_handle_t handle, io_attr_t *attr)
Retrieves the current attributes of a serial I/O device and stores them in *attr.
An opaque serial I/O device attributes type.