ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
pioneer_wt_protocol.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::pioneer_wt
 

Enumerations

enum class  esphome::pioneer_wt::AttrKind : uint8_t {
  esphome::pioneer_wt::ATTR_KIND_UNKNOWN , esphome::pioneer_wt::ATTR_KIND_ONE_BYTE , esphome::pioneer_wt::ATTR_KIND_FOUR_BYTES , esphome::pioneer_wt::ATTR_KIND_COUNT_PREFIXED ,
  esphome::pioneer_wt::ATTR_KIND_LENGTH_PREFIXED
}
 

Functions

uint16_t esphome::pioneer_wt::frame_crc (const uint8_t *frame, size_t len)
 CRC-16/XMODEM over a whole frame, skipping the two checksum bytes at offset 8.
 
size_t esphome::pioneer_wt::build_frame (uint8_t *out, uint8_t flags, uint8_t type, uint8_t seq, uint8_t ack, uint8_t class_1, uint8_t class_2, const uint8_t *body, size_t len)
 Builds a frame into out, which must hold HEADER_SIZE + 2 + len bytes. Returns the frame length.