Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
WithRobot::iAsciiProtocol Class Referenceabstract

#include <myahrs_plus.hpp>

Inheritance diagram for WithRobot::iAsciiProtocol:
Inheritance graph
[legend]

Public Member Functions

 iAsciiProtocol ()
 
virtual ~iAsciiProtocol ()
 

Static Public Attributes

static const uint8_t MSG_CRC_DELIMITER = '*'
 
static const uint8_t MSG_HDR_COMMAND = '@'
 
static const uint8_t MSG_HDR_RESPONSE = '~'
 
static const uint8_t MSG_HDR_SENSOR_DATA = '$'
 
static const uint8_t MSG_TAIL_CR = '\r'
 
static const uint8_t MSG_TAIL_LF = '\n'
 

Protected Member Functions

void push_byte (unsigned char c)
 
virtual void update_attributes (std::vector< std::string > &tokens)=0
 

Private Member Functions

bool parse_message (const char *ascii_frame)
 

Private Attributes

bool debug
 
FrameBuffer frame_buffer
 

Detailed Description

Definition at line 722 of file myahrs_plus.hpp.

Constructor & Destructor Documentation

WithRobot::iAsciiProtocol::iAsciiProtocol ( )
inline

Definition at line 736 of file myahrs_plus.hpp.

virtual WithRobot::iAsciiProtocol::~iAsciiProtocol ( )
inlinevirtual

Definition at line 738 of file myahrs_plus.hpp.

Member Function Documentation

bool WithRobot::iAsciiProtocol::parse_message ( const char *  ascii_frame)
inlineprivate

Definition at line 771 of file myahrs_plus.hpp.

void WithRobot::iAsciiProtocol::push_byte ( unsigned char  c)
inlineprotected

Definition at line 741 of file myahrs_plus.hpp.

virtual void WithRobot::iAsciiProtocol::update_attributes ( std::vector< std::string > &  tokens)
protectedpure virtual

Member Data Documentation

bool WithRobot::iAsciiProtocol::debug
private

Definition at line 733 of file myahrs_plus.hpp.

FrameBuffer WithRobot::iAsciiProtocol::frame_buffer
private

Definition at line 732 of file myahrs_plus.hpp.

const uint8_t WithRobot::iAsciiProtocol::MSG_CRC_DELIMITER = '*'
static

Definition at line 727 of file myahrs_plus.hpp.

const uint8_t WithRobot::iAsciiProtocol::MSG_HDR_COMMAND = '@'
static

Definition at line 725 of file myahrs_plus.hpp.

const uint8_t WithRobot::iAsciiProtocol::MSG_HDR_RESPONSE = '~'
static

Definition at line 726 of file myahrs_plus.hpp.

const uint8_t WithRobot::iAsciiProtocol::MSG_HDR_SENSOR_DATA = '$'
static

Definition at line 724 of file myahrs_plus.hpp.

const uint8_t WithRobot::iAsciiProtocol::MSG_TAIL_CR = '\r'
static

Definition at line 728 of file myahrs_plus.hpp.

const uint8_t WithRobot::iAsciiProtocol::MSG_TAIL_LF = '\n'
static

Definition at line 729 of file myahrs_plus.hpp.


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


myahrs_driver
Author(s): Yoonseok Pyo
autogenerated on Thu Jul 16 2020 03:08:51