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