HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
EspNowPacket Struct Reference

Full packet representation (header + max payload + CRC field). More...

#include <espnow_protocol.hpp>

Collaboration diagram for EspNowPacket:
[legend]

Public Attributes

EspNowHeader hdr
 
uint8_t payload [ESPNOW_MAX_PAYLOAD]
 
uint16_t crc
 

Detailed Description

Full packet representation (header + max payload + CRC field).

Note
On the wire, payload length is hdr.len and CRC is located at offset sizeof(EspNowHeader) + hdr.len. Do not assume the crc field in this struct aligns with the received buffer for shorter payloads.

Member Data Documentation

◆ crc

uint16_t EspNowPacket::crc

◆ hdr

EspNowHeader EspNowPacket::hdr

◆ payload

uint8_t EspNowPacket::payload[ESPNOW_MAX_PAYLOAD]

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