Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
create::SerialQuery Class Reference

#include <serial_query.h>

Inheritance diagram for create::SerialQuery:
Inheritance graph

Public Member Functions

 SerialQuery (std::shared_ptr< Data > data, bool install_signal_handler=true)
- Public Member Functions inherited from create::Serial
bool connect (const std::string &port, const int &baud=115200, std::function< void()> cb=0)
bool connected () const
void disconnect ()
uint64_t getNumCorruptPackets () const
uint64_t getTotalPackets () const
bool send (const uint8_t *bytes, const uint32_t numBytes)
bool sendOpcode (const Opcode &code)
 Serial (std::shared_ptr< Data > data, bool install_signal_handler)
 ~Serial ()

Protected Member Functions

void processByte (uint8_t byteRead)
bool startSensorStream ()
- Protected Member Functions inherited from create::Serial
void notifyDataReady ()
void signalHandler (const boost::system::error_code &error, int signal_number)

Private Member Functions

void flushInput ()
void requestSensorData ()
void restartSensorStream (const boost::system::error_code &err)

Private Attributes

const uint8_t maxPacketID
int8_t packetByte
uint16_t packetData
uint8_t packetID
bool started
boost::asio::deadline_timer streamRecoveryTimer

Additional Inherited Members

- Protected Attributes inherited from create::Serial
uint64_t corruptPackets
std::shared_ptr< Datadata
boost::asio::io_service io
boost::asio::serial_port port
boost::asio::signal_set signals
uint64_t totalPackets

Detailed Description

Definition at line 49 of file serial_query.h.

Constructor & Destructor Documentation

create::SerialQuery::SerialQuery ( std::shared_ptr< Data data,
bool  install_signal_handler = true 

Definition at line 11 of file serial_query.cpp.

Member Function Documentation

void create::SerialQuery::flushInput ( )

Definition at line 48 of file serial_query.cpp.

void create::SerialQuery::processByte ( uint8_t  byteRead)

Implements create::Serial.

Definition at line 53 of file serial_query.cpp.

void create::SerialQuery::requestSensorData ( )

Definition at line 28 of file serial_query.cpp.

void create::SerialQuery::restartSensorStream ( const boost::system::error_code &  err)

Definition at line 39 of file serial_query.cpp.

bool create::SerialQuery::startSensorStream ( )

Implements create::Serial.

Definition at line 20 of file serial_query.cpp.

Member Data Documentation

const uint8_t create::SerialQuery::maxPacketID

Definition at line 56 of file serial_query.h.

int8_t create::SerialQuery::packetByte

Definition at line 54 of file serial_query.h.

uint16_t create::SerialQuery::packetData

Definition at line 55 of file serial_query.h.

uint8_t create::SerialQuery::packetID

Definition at line 53 of file serial_query.h.

bool create::SerialQuery::started

Definition at line 58 of file serial_query.h.

boost::asio::deadline_timer create::SerialQuery::streamRecoveryTimer

Definition at line 52 of file serial_query.h.

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

Author(s): Jacob Perron
autogenerated on Sat May 8 2021 03:02:37