32 #include <boost/thread.hpp> 48 int openPort(std::string devicestring,
int baudrate);
51 int sendData(std::string value);
54 int sendData(
const char* data,
size_t len);
57 int readData(std::string &value,
size_t nBytes);
59 void enqueueData(std::vector<ioData_t> data);
61 void enqueueData(
const char* data,
size_t len);
85 struct termios port_settings;
92 speed_t getBaudFromInt(
int baud);
94 static const int maxUpdateRate = 50;
ConcurrentQueue< std::vector< struct ioData > > _oQueue
boost::condition_variable _condition
boost::shared_ptr< boost::thread > _thread
std::string _device_string