DUNE: Uniform Navigational Environment  2016.09.0
DUNE::Hardware::LUCL::ProtocolParser Class Reference

Public Member Functions

 ProtocolParser (void)
 
 ~ProtocolParser (void)
 
void reset (void)
 
CommandType parse (Command &cmd, uint8_t byte)
 

Static Public Member Functions

template<typename T >
static void sendCommand (uint8_t cmd, const uint8_t *data, int data_size, T *dev)
 
template<typename T >
static void sendCommand (uint8_t cmd, uint8_t byte, T *dev)
 

Constructor & Destructor Documentation

DUNE::Hardware::LUCL::ProtocolParser::ProtocolParser ( void  )
inline

References reset().

DUNE::Hardware::LUCL::ProtocolParser::~ProtocolParser ( void  )
inline

Member Function Documentation

void DUNE::Hardware::LUCL::ProtocolParser::reset ( void  )
inline

Reset internal state machine parser.

Referenced by parse(), and ProtocolParser().

template<typename T >
static void DUNE::Hardware::LUCL::ProtocolParser::sendCommand ( uint8_t  cmd,
const uint8_t *  data,
int  data_size,
T *  dev 
)
inlinestatic

Referenced by sendCommand().

template<typename T >
static void DUNE::Hardware::LUCL::ProtocolParser::sendCommand ( uint8_t  cmd,
uint8_t  byte,
T *  dev 
)
inlinestatic

References sendCommand().

Collaboration diagram for DUNE::Hardware::LUCL::ProtocolParser:
Collaboration graph