Class SerialPortConfig
Defined in File serial_port.hpp
Class Documentation
-
class SerialPortConfig
Public Functions
-
inline SerialPortConfig(uint32_t baud_rate, FlowControl flow_control, Parity parity, StopBits stop_bits)
Default constructor.
-
inline uint32_t get_baud_rate() const
Function that returns the configured buad rate.
- Returns:
The configured buad rate in bps
-
inline spb::baud_rate get_baud_rate_asio() const
Function that returns the configured baud rate as an ASIO object.
- Returns:
The configured baud rate as an ASIO baud_rate object
-
inline FlowControl get_flow_control() const
\breif Function that returns the configured flow control
- Returns:
The configured flow control type
-
inline spb::flow_control::type get_flow_control_asio() const
\breif Function that returns the configured flow control as an ASIO object
- Returns:
The configured flow control type as an ASIO flow_control object
-
inline Parity get_parity() const
Function that returns the configured parity type.
- Returns:
The configured parity type
-
inline spb::parity::type get_parity_asio() const
Function that returns the configured parity type as an ASIO object.
- Returns:
The configured parity type as an ASIO parity object
-
inline SerialPortConfig(uint32_t baud_rate, FlowControl flow_control, Parity parity, StopBits stop_bits)