Serial Scol plugin
|
Public Attributes | |
boost::asio::io_service | io |
Io service object. | |
boost::asio::serial_port | port |
Serial port object. | |
boost::thread | backgroundThread |
Thread that runs read/write operations. | |
bool | open |
True if port open. | |
bool | error |
Error flag. | |
bool | quit |
Error flag. | |
boost::mutex | errorMutex |
Mutex for access to error. | |
boost::mutex | quitMutex |
Mutex for access to error. | |
std::vector< char > | writeQueue |
Data are queued here before they go in writeBuffer. | |
boost::shared_array< char > | writeBuffer |
Data being written. | |
size_t | writeBufferSize |
Size of writeBuffer. | |
boost::mutex | writeQueueMutex |
Mutex for access to writeQueue. | |
char | readBuffer [AsyncSerial::readBufferSize] |
data being read | |
boost::function< void(const char *, size_t)> | callback |
Read complete callback. | |
Detailed Description
Definition at line 40 of file AsyncSerial.cpp.
Constructor & Destructor Documentation
◆ AsyncSerialImpl()
|
inline |
Definition at line 43 of file AsyncSerial.cpp.
Member Data Documentation
◆ backgroundThread
boost::thread AsyncSerialImpl::backgroundThread |
Thread that runs read/write operations.
Definition at line 48 of file AsyncSerial.cpp.
◆ callback
boost::function<void(const char*, size_t)> AsyncSerialImpl::callback |
Read complete callback.
Definition at line 64 of file AsyncSerial.cpp.
◆ error
bool AsyncSerialImpl::error |
Error flag.
Definition at line 50 of file AsyncSerial.cpp.
◆ errorMutex
|
mutable |
Mutex for access to error.
Definition at line 53 of file AsyncSerial.cpp.
◆ io
boost::asio::io_service AsyncSerialImpl::io |
Io service object.
Definition at line 46 of file AsyncSerial.cpp.
◆ open
bool AsyncSerialImpl::open |
True if port open.
Definition at line 49 of file AsyncSerial.cpp.
◆ port
boost::asio::serial_port AsyncSerialImpl::port |
Serial port object.
Definition at line 47 of file AsyncSerial.cpp.
◆ quit
bool AsyncSerialImpl::quit |
Error flag.
Definition at line 51 of file AsyncSerial.cpp.
◆ quitMutex
|
mutable |
Mutex for access to error.
Definition at line 54 of file AsyncSerial.cpp.
◆ readBuffer
char AsyncSerialImpl::readBuffer[AsyncSerial::readBufferSize] |
data being read
Definition at line 61 of file AsyncSerial.cpp.
◆ writeBuffer
boost::shared_array<char> AsyncSerialImpl::writeBuffer |
Data being written.
Definition at line 58 of file AsyncSerial.cpp.
◆ writeBufferSize
size_t AsyncSerialImpl::writeBufferSize |
Size of writeBuffer.
Definition at line 59 of file AsyncSerial.cpp.
◆ writeQueue
std::vector<char> AsyncSerialImpl::writeQueue |
Data are queued here before they go in writeBuffer.
Definition at line 57 of file AsyncSerial.cpp.
◆ writeQueueMutex
boost::mutex AsyncSerialImpl::writeQueueMutex |
Mutex for access to writeQueue.
Definition at line 60 of file AsyncSerial.cpp.
The documentation for this class was generated from the following file:
- G:/work/subversion/scol-technologies/trunk/scol/plugins/serialio/src/AsyncSerial.cpp
Generated by 1.9.8