22 #ifndef LELY_IO_SERIAL_H_ 23 #define LELY_IO_SERIAL_H_ 89 #endif // !LELY_IO_SERIAL_H_ 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. ...
This is the public header file of the I/O library.
io_handle_t io_open_serial(const char *path, io_attr_t *attr)
Opens a serial I/O device.
Purge the transmit buffer of a serial I/O device.
An opaque serial I/O device attributes type.
int io_purge(io_handle_t handle, int flags)
Purges the receive and/or transmit buffers of a serial I/O device.
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.