Lely core libraries
2.2.5
|
Go to the documentation of this file.
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 {
79 #endif // !LELY_IO_SERIAL_HPP_
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.
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.
int io_purge(io_handle_t handle, int flags)
Purges the receive and/or transmit buffers of a serial I/O device.
io_handle_t io_open_serial(const char *path, io_attr_t *attr)
Opens 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.
A serial I/O device handle.
An opaque serial I/O device attributes type.