EV3UartProtocolParserSensorSide
|
#include <EV3UartProtocolParserSensorSide.hpp>
Public Attributes | |
ParseResult | res |
Result of parsing. More... | |
uint8_t | hdr |
Header of the parsed message. More... | |
uint8_t | len |
Payload length of the parsed message. More... | |
Structure returned by the Parser::update() function.
The ParserReturn::hdr values are only valid in these situations:
res | hdr |
---|---|
INSUFFICIENT_DATA | Valid |
RECEIVED_INVALID_HEADER | Valid |
RECEIVED_SYS_ACK | Valid |
RECEIVED_SYS_NACK | Valid |
RECEIVED_CMD_SELECT | Valid |
RECEIVED_CMD_WRITE | Valid |
RECEIVED_CMD_INVALID_FCS | Valid |
The ParserReturn::len values can be interpreted this way:
res | len |
---|---|
INSUFFICIENT_DATA | No meaning |
RECEIVED_INVALID_HEADER | No meaning |
RECEIVED_SYS_ACK | No meaning |
RECEIVED_SYS_NACK | No meaning |
RECEIVED_CMD_SELECT | Length of the SELECT message's payload (1 byte) |
RECEIVED_CMD_WRITE | Length of the WRITE message's payload |
RECEIVED_CMD_INVALID_FCS | Length of the payload with invalid FCS |
Definition at line 208 of file EV3UartProtocolParserSensorSide.hpp.
uint8_t EV3UartProtocolParserSensorSide::ParserReturn::hdr |
Header of the parsed message.
Definition at line 210 of file EV3UartProtocolParserSensorSide.hpp.
uint8_t EV3UartProtocolParserSensorSide::ParserReturn::len |
Payload length of the parsed message.
Definition at line 211 of file EV3UartProtocolParserSensorSide.hpp.
ParseResult EV3UartProtocolParserSensorSide::ParserReturn::res |
Result of parsing.
Definition at line 209 of file EV3UartProtocolParserSensorSide.hpp.