DUNE: Uniform Navigational Environment
2016.05.0
|
Public Types | |
enum | State { ST_CMD, ST_SIZE, ST_DATA } |
Public Member Functions | |
Parser (void) | |
~Parser (void) | |
bool | parse (uint8_t byte, Packet *pkt) |
State | getState (void) const |
Packet * | getPacket (void) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Parse one byte of data.
[in] | byte | data byte. |
[in] | pkt | destination packet. |
References Sensors::Klein3500::Packet::getData(), Sensors::Klein3500::Packet::getSize(), Sensors::Klein3500::Packet::setCommand(), Sensors::Klein3500::Packet::setSize(), ST_CMD, ST_DATA, and ST_SIZE.
Referenced by Sensors::Klein3500::CommandLink::readDataPage().