22 #ifndef LELY_IO_SERIAL_HPP_
23 #define LELY_IO_SERIAL_HPP_
26 #error "include <lely/io/serial.h> for the C interface"
47 :
IOHandle(::std::forward<IOSerial>(serial)) {}
50 operator=(
const IOSerial& serial) noexcept {
51 IOHandle::operator=(serial);
56 operator=(
IOSerial&& serial) noexcept {
57 IOHandle::operator=(::std::forward<IOSerial>(serial));
62 purge(
int flags) noexcept {
A serial I/O device handle.
The type of objects thrown as exceptions to report a failure to initialize an instantiation of a C ty...
#define throw_or_abort(e)
If exceptions are disabled, aborts the process instead of throwing an exception.
This header file is part of the I/O library; it contains the C++ interface of the I/O device handle.
This header file is part of the I/O library; it contains the serial I/O declarations.
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.