...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Typedef for the typical usage of a serial port.
typedef basic_serial_port serial_port;
Name |
Description |
---|---|
The type of the executor associated with the object. |
|
A basic_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. |
|
Construct a basic_serial_port without opening it. |
|
Cancel all asynchronous operations associated with the serial port. |
|
Close the serial port. |
|
Get the executor 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 the native serial port representation. |
|
Open the serial port using the specified device name. |
|
Move-assign a basic_serial_port from another. |
|
Read some data from the serial port. |
|
Send a break sequence to the serial port. |
|
Set an option on the serial port. |
|
Write some data to the serial port. |
|
Destroys the serial port. |
The basic_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