Public Member Functions | Public Attributes | List of all members
AsyncSerialImpl Class Reference
Inheritance diagram for AsyncSerialImpl:
Inheritance graph
[legend]

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...
 
char readBuffer1 [AsyncSerial::readBufferSize]
 
char readBuffer2 [AsyncSerial::readBufferSize]
 
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...
 

Detailed Description

Definition at line 46 of file AsyncSerial.cpp.

Constructor & Destructor Documentation

AsyncSerialImpl::AsyncSerialImpl ( )
inline

Definition at line 49 of file AsyncSerial.cpp.

Member Data Documentation

boost::thread AsyncSerialImpl::backgroundThread

Thread that runs read/write operations.

Definition at line 55 of file AsyncSerial.cpp.

boost::function<void(const char*, size_t)> AsyncSerialImpl::callback

Read complete callback.

Definition at line 69 of file AsyncSerial.cpp.

bool AsyncSerialImpl::error

Error flag.

Definition at line 57 of file AsyncSerial.cpp.

boost::mutex AsyncSerialImpl::errorMutex
mutable

Mutex for access to error.

Definition at line 58 of file AsyncSerial.cpp.

boost::asio::io_service AsyncSerialImpl::io

Io service object.

Definition at line 53 of file AsyncSerial.cpp.

bool AsyncSerialImpl::open

True if port open.

Definition at line 56 of file AsyncSerial.cpp.

boost::asio::serial_port AsyncSerialImpl::port

Serial port object.

Definition at line 54 of file AsyncSerial.cpp.

char AsyncSerialImpl::readBuffer[AsyncSerial::readBufferSize]

data being read

Definition at line 65 of file AsyncSerial.cpp.

char AsyncSerialImpl::readBuffer1[AsyncSerial::readBufferSize]

Definition at line 66 of file AsyncSerial.cpp.

char AsyncSerialImpl::readBuffer2[AsyncSerial::readBufferSize]

Definition at line 67 of file AsyncSerial.cpp.

boost::shared_array<char> AsyncSerialImpl::writeBuffer

Data being written.

Definition at line 62 of file AsyncSerial.cpp.

size_t AsyncSerialImpl::writeBufferSize

Size of writeBuffer.

Definition at line 63 of file AsyncSerial.cpp.

std::vector<char> AsyncSerialImpl::writeQueue

Data are queued here before they go in writeBuffer.

Definition at line 61 of file AsyncSerial.cpp.

boost::mutex AsyncSerialImpl::writeQueueMutex

Mutex for access to writeQueue.

Definition at line 64 of file AsyncSerial.cpp.


The documentation for this class was generated from the following file:


xiaoqiang_driver
Author(s): Xie fusheng
autogenerated on Mon Jun 10 2019 15:53:12