DUNE: Uniform Navigational Environment
2019.02.1
|
Parser class.
Public Member Functions | |
Parser (void) | |
~Parser (void) | |
void | reset (void) |
Message * | parse (uint8_t byte) |
DUNE::IMC::Parser::Parser | ( | void | ) |
Default constructor.
References reset().
DUNE::IMC::Parser::~Parser | ( | void | ) |
Destructor.
Message * DUNE::IMC::Parser::parse | ( | uint8_t | byte | ) |
Parse byte and return message if parsing of one message is done.
byte | data byte |
References DUNE::IMC::Packet::deserializeHeader(), DUNE::IMC::Packet::deserializePayload(), reset(), and DUNE::IMC::Header::size.
Referenced by DUNE::Tasks::SimpleTransport::handleData().