asyncSerialPort.h
Go to the documentation of this file.
37 AsyncSerialPort(boost::asio::io_service& io, const char* port, int baud_rate, boost::asio::serial_port_base::flow_control::type flow, const F_READ& f = NULL, TypeRec type = nocanonical);
TypeRec
Enum to indicate how serial port must be configured.
Definition: serialPort.h:34
AsyncSerialPort(boost::asio::io_service &io, const char *port, int baud_rate, boost::asio::serial_port_base::flow_control::type flow, const F_READ &f=NULL, TypeRec type=nocanonical)
Constructor of the class.
void handle_receive_from(const boost::system::error_code &error, size_t bytes_recvd)
Function handler to be called when an async read took place.
void handle_send_to(const boost::system::error_code &error)
Function handler to be called when an async sent took place.
F_READ m_fRead
Function handler to be called.
Definition: asyncSerialPort.h:99
VC_PAQ m_vcDataSend
Array with data buffer.
Definition: asyncSerialPort.h:114
Class which manages the logic relative to send/receive messages from Asynchronous Serial Port...
Definition: asyncSerialPort.h:19
bool send(const char *buffer, int size)
Method to send data to serial port asynchronously.
void setReadCallback(const F_READ &f)
Method to register the function that reads from the serial port.
Class which manages the logic relative to send/receive messages from Serial Port. This class implemen...
Definition: serialPort.h:28