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