SerialPort
A light-weight C++ library for cross-platform serial communication.
|
Describes the settings of a port. More...
#include <types.h>
Public Member Functions | |
Settings ()=default | |
Default constructor. | |
Settings (const std::string &port_name, const int baud_rate, const Parity parity, const NumStopBits num_stop_bits, const bool hardware_flow_control, const unsigned long timeout_s, const unsigned long timeout_ms) | |
Constructor initializing the settings. | |
Friends | |
bool | operator== (const Settings &lhs, const Settings &rhs) |
Overloaded equality operator. | |
bool | operator!= (const Settings &lhs, const Settings &rhs) |
Overloaded inequality operator. | |
std::ostream & | operator<< (std::ostream &os, const Settings &obj) |
Overloaded stream output operator. | |
Describes the settings of a port.
|
inline |
Constructor initializing the settings.
port_name | Name of the port |
baud_rate | Baud rate |
parity | Parity used |
num_stop_bits | Number of stop bits |
hardware_flow_control | Hardware flow control (on or off) |
timeout_s | Timeout in seconds |
timeout_ms | Timeout in milliseconds |