33 boost::asio::serial_port_base::baud_rate mBaudrate;
34 boost::asio::serial_port_base::parity mParity;
35 boost::asio::serial_port_base::character_size mCsize;
36 boost::asio::serial_port_base::flow_control mFlow;
37 boost::asio::serial_port_base::stop_bits mStopbit;
52 AsyncSerial(
const std::string& devname,
unsigned int baud_rate,
53 boost::asio::serial_port_base::parity opt_parity =
54 boost::asio::serial_port_base::parity(
55 boost::asio::serial_port_base::parity::none),
56 boost::asio::serial_port_base::character_size opt_csize =
57 boost::asio::serial_port_base::character_size(8),
58 boost::asio::serial_port_base::flow_control opt_flow =
59 boost::asio::serial_port_base::flow_control(
60 boost::asio::serial_port_base::flow_control::none),
61 boost::asio::serial_port_base::stop_bits opt_stop =
62 boost::asio::serial_port_base::stop_bits(
63 boost::asio::serial_port_base::stop_bits::one));
76 void open(
const std::string& devname,
unsigned int baud_rate,
77 boost::asio::serial_port_base::parity opt_parity =
78 boost::asio::serial_port_base::parity(
79 boost::asio::serial_port_base::parity::none),
80 boost::asio::serial_port_base::character_size opt_csize =
81 boost::asio::serial_port_base::character_size(8),
82 boost::asio::serial_port_base::flow_control opt_flow =
83 boost::asio::serial_port_base::flow_control(
84 boost::asio::serial_port_base::flow_control::none),
85 boost::asio::serial_port_base::stop_bits opt_stop =
86 boost::asio::serial_port_base::stop_bits(
87 boost::asio::serial_port_base::stop_bits::one));
110 void write(
const char *data,
size_t size);
116 void write(
const std::vector<char>& data);
137 void setQuitStatus(
bool e);
142 bool quitStatus()
const;
145 bool isPortAvailable(std::string portName);
157 void readEnd(
const boost::system::error_code& error,
158 size_t bytes_transferred);
172 void writeEnd(
const boost::system::error_code& error);
179 boost::shared_ptr<AsyncSerialImpl> pimpl;
193 boost::function<
void(
const char*,
size_t)>& callback);
231 boost::asio::serial_port_base::parity opt_parity =
232 boost::asio::serial_port_base::parity(
233 boost::asio::serial_port_base::parity::none),
234 boost::asio::serial_port_base::character_size opt_csize =
235 boost::asio::serial_port_base::character_size(8),
236 boost::asio::serial_port_base::flow_control opt_flow =
237 boost::asio::serial_port_base::flow_control(
238 boost::asio::serial_port_base::flow_control::none),
239 boost::asio::serial_port_base::stop_bits opt_stop =
240 boost::asio::serial_port_base::stop_bits(
241 boost::asio::serial_port_base::stop_bits::one));
250 boost::function<
void(
const char*,
size_t)>& callback);
void open(const std::string &devname, unsigned int baud_rate, boost::asio::serial_port_base::parity opt_parity=boost::asio::serial_port_base::parity(boost::asio::serial_port_base::parity::none), boost::asio::serial_port_base::character_size opt_csize=boost::asio::serial_port_base::character_size(8), boost::asio::serial_port_base::flow_control opt_flow=boost::asio::serial_port_base::flow_control(boost::asio::serial_port_base::flow_control::none), boost::asio::serial_port_base::stop_bits opt_stop=boost::asio::serial_port_base::stop_bits(boost::asio::serial_port_base::stop_bits::one))