AsyncSerialImpl Class Reference

List of all members.

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.

Detailed Description

Definition at line 100 of file AsyncSerial.cpp.


Constructor & Destructor Documentation

AsyncSerialImpl::AsyncSerialImpl (  )  [inline]

Definition at line 103 of file AsyncSerial.cpp.


Member Data Documentation

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.

Mutex for access to writeQueue.

Definition at line 130 of file AsyncSerial.cpp.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables


pressure_cells
Author(s): Emilio Estrelinha
autogenerated on Wed Jul 23 04:34:41 2014