![]()  | 
Home | Libraries | People | FAQ | More | 
Provides serial port functionality.
class serial_port : public serial_port_base
| 
                 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 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.   | 
|
| 
                 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