serialPort.h
Go to the documentation of this file.
48 SerialPort(boost::asio::io_service& io, const char* port, int baud_rate, boost::asio::serial_port_base::flow_control::type flow, TypeRec type = nocanonical);
62 virtual bool setPort(const char* port, int baud_rate, boost::asio::serial_port_base::flow_control::type flow);
78 bool setPort(const char* port, int baud_rate, boost::asio::serial_port_base::flow_control::type flow);
TypeRec
Enum to indicate how serial port must be configured.
Definition: serialPort.h:34
bool isOpened() const
Method to query if serial port is opened by the current app.
SerialPort(boost::asio::io_service &io, const char *port, int baud_rate, boost::asio::serial_port_base::flow_control::type flow, TypeRec type=nocanonical)
Constructor of the class.
virtual bool send(const char *buffer, int size)=0
Method to send data to serial port synchronously.
boost::asio::serial_port_base::flow_control::type m_flow_control
UART flow control.
Definition: serialPort.h:157
bool setPort(const char *port, int baud_rate, boost::asio::serial_port_base::flow_control::type flow)
Method to establish serial port when it is not established in constructor.
boost::asio::serial_port m_serial_port
Serial Port Object.
Definition: serialPort.h:142
Class which manages the logic relative to send/receive messages from Serial Port. This class implemen...
Definition: serialPort.h:28