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

ESP-NOW packet header (wire format) - 6 bytes. More...

#include <espnow_protocol.hpp>

Public Attributes

uint8_t sync
 
uint8_t version
 
uint8_t device_id
 
uint8_t type
 
uint8_t id
 
uint8_t len
 

Detailed Description

ESP-NOW packet header (wire format) - 6 bytes.

This header matches the remote controller's protocol:

  • sync: sync byte (0xAA)
  • version: protocol version
  • device_id: device type ID
  • type: MsgType
  • id: sequence ID
  • len: payload length

CRC is computed over hdr + payload[0..len-1] (CRC field excluded).

Member Data Documentation

◆ device_id

uint8_t EspNowHeader::device_id

◆ id

uint8_t EspNowHeader::id

◆ len

uint8_t EspNowHeader::len

◆ sync

uint8_t EspNowHeader::sync

◆ type

uint8_t EspNowHeader::type

◆ version

uint8_t EspNowHeader::version

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