Public Member Functions | |
AsyncSerialImpl () | |
Public Attributes | |
boost::thread | backgroundThread |
Thread that runs read/write operations. More... | |
boost::function< void(const char *, size_t) > | callback |
Read complete callback. More... | |
bool | error |
Error flag. More... | |
boost::mutex | errorMutex |
Mutex for access to error. More... | |
boost::asio::io_service | io |
Io service object. More... | |
bool | open |
True if port open. More... | |
boost::asio::serial_port | port |
Serial port object. More... | |
char | readBuffer [AsyncSerial::readBufferSize] |
data being read More... | |
boost::shared_array< char > | writeBuffer |
Data being written. More... | |
size_t | writeBufferSize |
Size of writeBuffer. More... | |
std::vector< char > | writeQueue |
Data are queued here before they go in writeBuffer. More... | |
boost::mutex | writeQueueMutex |
Mutex for access to writeQueue. More... | |
Definition at line 100 of file AsyncSerial.cpp.
|
inline |
Definition at line 103 of file AsyncSerial.cpp.
boost::thread AsyncSerialImpl::backgroundThread |
Thread that runs read/write operations.
Definition at line 114 of file AsyncSerial.cpp.
boost::function< void ( const char *, size_t ) > AsyncSerialImpl::callback |
Read complete callback.
Definition at line 136 of file AsyncSerial.cpp.
bool AsyncSerialImpl::error |
Error flag.
Definition at line 117 of file AsyncSerial.cpp.
|
mutable |
Mutex for access to error.
Definition at line 119 of file AsyncSerial.cpp.
boost::asio::io_service AsyncSerialImpl::io |
Io service object.
Definition at line 111 of file AsyncSerial.cpp.
bool AsyncSerialImpl::open |
True if port open.
Definition at line 115 of file AsyncSerial.cpp.
boost::asio::serial_port AsyncSerialImpl::port |
Serial port object.
Definition at line 113 of file AsyncSerial.cpp.
char AsyncSerialImpl::readBuffer[AsyncSerial::readBufferSize] |
data being read
Definition at line 132 of file AsyncSerial.cpp.
boost::shared_array< char > AsyncSerialImpl::writeBuffer |
Data being written.
Definition at line 126 of file AsyncSerial.cpp.
size_t AsyncSerialImpl::writeBufferSize |
Size of writeBuffer.
Definition at line 128 of file AsyncSerial.cpp.
std::vector< char > AsyncSerialImpl::writeQueue |
Data are queued here before they go in writeBuffer.
Definition at line 123 of file AsyncSerial.cpp.
boost::mutex AsyncSerialImpl::writeQueueMutex |
Mutex for access to writeQueue.
Definition at line 130 of file AsyncSerial.cpp.