|
MIRA
|
This class acts as a wrapper to boost::asio::serial_port. More...
#include <communication/SerialPort.h>
Classes | |
| class | Baudrate |
| An internal class for handling the baudrate. More... | |
Public Types | |
| typedef boost::asio::serial_port::parity | Parity |
| typedef boost::asio::serial_port::stop_bits | StopBits |
| typedef boost::asio::serial_port::flow_control | FlowControl |
| typedef boost::asio::serial_port::character_size | CharacterSize |
Public Member Functions | |
| SerialPort (boost::asio::io_service &service, const std::string &device, uint32 baudrate) | |
| Construct a new serial port with the given I/O service. More... | |
| virtual | ~SerialPort () |
| The destructor. More... | |
| operator boost::asio::serial_port & () | |
| conversion to boost::asio::serial_port More... | |
| operator const boost::asio::serial_port & () const | |
| conversion to boost::asio::serial_port More... | |
| boost::asio::serial_port & | port () |
| Access to the underlying boost::asio::serial_port object. More... | |
| const boost::asio::serial_port & | port () const |
| Access to the underlying boost::asio::serial_port object. More... | |
| SerialPort & | setBaudrate (uint32 rate) |
| Set a new baudrate. More... | |
| SerialPort & | setParity (Parity::type parity) |
| Set a new parity. More... | |
| SerialPort & | setStopBits (StopBits::type stopbits) |
| Set a new stop bits configuration. More... | |
| SerialPort & | setDataBits (uint32 databits) |
| Set a new data bits configuration. More... | |
| SerialPort & | setFlowControl (FlowControl::type flowcontrol) |
| Set a new flow control (handshake) configuration. More... | |
Protected Attributes | |
| boost::asio::serial_port | mSerialPort |
| The underlying boost::asio::serial_port object. More... | |
This class acts as a wrapper to boost::asio::serial_port.
It provides the usage of non standard baud rates via its Baudrate class. Supported baud rates are:
| typedef boost::asio::serial_port::parity Parity |
| typedef boost::asio::serial_port::stop_bits StopBits |
| typedef boost::asio::serial_port::flow_control FlowControl |
| typedef boost::asio::serial_port::character_size CharacterSize |
|
inline |
Construct a new serial port with the given I/O service.
| [in] | service | The I/O service object. |
| [in] | device | The device name of the serial port. |
| [in] | baudrate | The requested baudrate. |
|
inlinevirtual |
The destructor.
|
inline |
conversion to boost::asio::serial_port
|
inline |
conversion to boost::asio::serial_port
|
inline |
Access to the underlying boost::asio::serial_port object.
|
inline |
Access to the underlying boost::asio::serial_port object.
|
inline |
Set a new baudrate.
|
inline |
Set a new parity.
|
inline |
Set a new stop bits configuration.
|
inline |
Set a new data bits configuration.
|
inline |
Set a new flow control (handshake) configuration.
|
protected |
The underlying boost::asio::serial_port object.
1.8.14