EV3UartProtocolParserSensorSide
EV3UartProtocolParserSensorSide::Parser::HeaderInformation Struct Reference

Public Attributes

bool header_valid
 
uint8_t header_sanitized
 
uint8_t payload_length
 

Detailed Description

Structure containing header information from analyze_header()

Definition at line 242 of file EV3UartProtocolParserSensorSide.hpp.

Member Data Documentation

◆ header_sanitized

uint8_t EV3UartProtocolParserSensorSide::Parser::HeaderInformation::header_sanitized

Sanitized header byte, with length information removed. Only valid if header_valid is true

Definition at line 254 of file EV3UartProtocolParserSensorSide.hpp.

◆ header_valid

bool EV3UartProtocolParserSensorSide::Parser::HeaderInformation::header_valid

true if header is valid, false otherwise. If the header byte is not valid, refer to ParseResult::RECEIVED_INVALID_HEADER for the reasons why that may be so.

Definition at line 249 of file EV3UartProtocolParserSensorSide.hpp.

Referenced by EV3UartProtocolParserSensorSide::Parser::analyze_header().

◆ payload_length

uint8_t EV3UartProtocolParserSensorSide::Parser::HeaderInformation::payload_length

Payload length of the message, in bytes Only valid if header_valid is true

Definition at line 259 of file EV3UartProtocolParserSensorSide.hpp.

Referenced by EV3UartProtocolParserSensorSide::Parser::update().


The documentation for this struct was generated from the following file: