31 boost::asio::serial_port_base::parity opt_parity =
32 boost::asio::serial_port_base::parity(
33 boost::asio::serial_port_base::parity::none),
34 boost::asio::serial_port_base::character_size opt_csize =
35 boost::asio::serial_port_base::character_size(8),
36 boost::asio::serial_port_base::flow_control opt_flow =
37 boost::asio::serial_port_base::flow_control(
38 boost::asio::serial_port_base::flow_control::none),
39 boost::asio::serial_port_base::stop_bits opt_stop =
40 boost::asio::serial_port_base::stop_bits(
41 boost::asio::serial_port_base::stop_bits::one));
49 size_t read(
char *data,
size_t size);
55 std::vector<char>
read();
84 void readCallback(
const char *data,
size_t len);
93 static std::vector<char>::iterator findStringInVector(std::vector<char>& v,
94 const std::string& s);
96 std::vector<char> readQueue;
97 boost::mutex readQueueMutex;
BufferedAsyncSerial(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))