...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A basic_serial_port is always the lowest layer.
typedef serial_port lowest_layer_type;
Name |
Description |
---|---|
The type of the executor associated with the object. |
|
A basic_serial_port is always the lowest layer. |
|
The native representation of a serial port. |
Name |
Description |
---|---|
Assign an existing native serial port to the serial port. |
|
Start an asynchronous read. |
|
Start an asynchronous write. |
|
Cancel all asynchronous operations associated with the serial port. |
|
Close the serial port. |
|
Get the executor associated with the object. |
|
(Deprecated: Use get_executor().) Get the io_context associated with the object. |
|
(Deprecated: Use get_executor().) Get the io_context associated with the object. |
|
Get an option from the serial port. |
|
Determine whether the serial port is open. |
|
Get a reference to the lowest layer. Get a const reference to the lowest layer. |
|
Get the native serial port representation. |
|
Open the serial port using the specified device name. |
|
Move-assign a serial_port from another. |
|
Read some data from the serial port. |
|
Send a break sequence to the serial port. |
|
Construct a serial_port without opening it. Construct and open a serial_port. Construct a serial_port on an existing native serial port. Move-construct a serial_port from another. |
|
Set an option on the serial port. |
|
Write some data to the serial port. |
|
Destroys the serial port. |
The serial_port
class provides a wrapper over serial port functionality.
Distinct objects: Safe.
Shared objects: Unsafe.
Header: boost/asio/serial_port.hpp
Convenience header: boost/asio.hpp