#include <serial.h>
Definition at line 51 of file serial.h.
create::Serial::Serial |
( |
std::shared_ptr< Data > |
data, |
|
|
bool |
install_signal_handler |
|
) |
| |
create::Serial::~Serial |
( |
| ) |
|
bool create::Serial::connect |
( |
const std::string & |
port, |
|
|
const int & |
baud = 115200 , |
|
|
std::function< void()> |
cb = 0 |
|
) |
| |
bool create::Serial::connected |
( |
| ) |
const |
|
inline |
void create::Serial::disconnect |
( |
| ) |
|
uint64_t create::Serial::getNumCorruptPackets |
( |
| ) |
const |
uint64_t create::Serial::getTotalPackets |
( |
| ) |
const |
void create::Serial::notifyDataReady |
( |
| ) |
|
|
protected |
void create::Serial::onData |
( |
const boost::system::error_code & |
e, |
|
|
const std::size_t & |
size |
|
) |
| |
|
private |
virtual void create::Serial::processByte |
( |
uint8_t |
byteRead | ) |
|
|
protectedpure virtual |
bool create::Serial::send |
( |
const uint8_t * |
bytes, |
|
|
const uint32_t |
numBytes |
|
) |
| |
bool create::Serial::sendOpcode |
( |
const Opcode & |
code | ) |
|
void create::Serial::signalHandler |
( |
const boost::system::error_code & |
error, |
|
|
int |
signal_number |
|
) |
| |
|
protected |
bool create::Serial::startReading |
( |
| ) |
|
|
private |
virtual bool create::Serial::startSensorStream |
( |
| ) |
|
|
protectedpure virtual |
void create::Serial::stopReading |
( |
| ) |
|
|
private |
uint8_t create::Serial::byteRead |
|
private |
std::function<void()> create::Serial::callback |
|
private |
uint64_t create::Serial::corruptPackets |
|
protected |
std::shared_ptr<Data> create::Serial::data |
|
protected |
bool create::Serial::dataReady |
|
private |
std::condition_variable create::Serial::dataReadyCond |
|
private |
std::mutex create::Serial::dataReadyMut |
|
private |
bool create::Serial::firstRead |
|
private |
boost::asio::io_service create::Serial::io |
|
protected |
std::thread create::Serial::ioThread |
|
private |
bool create::Serial::isReading |
|
private |
boost::asio::serial_port create::Serial::port |
|
protected |
boost::asio::signal_set create::Serial::signals |
|
protected |
uint64_t create::Serial::totalPackets |
|
protected |
The documentation for this class was generated from the following files: