86 #ifndef EV3UARTPROTOCOLPARSERSENSORSIDE_HPP_ 87 #define EV3UARTPROTOCOLPARSERSENSORSIDE_HPP_ 90 #include <framing.hpp> 98 constexpr uint8_t
BUFFER_LEN { EV3UartGenerator::Framing::BUFFER_MIN };
109 return (0x01 << val);
131 if ((static_cast<uint8_t>(st))
133 return static_cast<State>(
static_cast<uint8_t
>(st) + 1);
325 const uint8_t*
data()
const;
uint8_t message_pending_bytes
Parser is waiting for the checksum byte.
ParserReturn update(uint8_t input)
HeaderInformation analyze_header(const uint8_t hdr)
constexpr State next_state(State st)
uint8_t len
Payload length of the parsed message.
Parser is waiting for the header byte.
End value for State values.
uint8_t buffer[BUFFER_LEN]
constexpr uint8_t two_pow(uint8_t val)
constexpr uint8_t BUFFER_LEN
uint8_t message_payload_length
uint8_t hdr
Header of the parsed message.
uint8_t payload_length(const uint8_t hdr)
Starting value for State values.
ParseResult res
Result of parsing.