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

Go to the source code of this file.

Data Structures

class  esphome::pioneer_wt::AttributeReader
 Walks the attribute list in a status body. Stops at the first ID whose size is unknown. More...
 

Namespaces

namespace  esphome
 
namespace  esphome::pioneer_wt
 

Typedefs

using esphome::pioneer_wt::FrameLength = FrameLengthU8<LengthField{.offset = LEN_POS}>
 
using esphome::pioneer_wt::Frame = FrameFormat<FrameHeader<FRAME_START_1, FRAME_START_2>, FrameLength, FrameMinLength<HEADER_SIZE>>
 
using esphome::pioneer_wt::PacketReader = LengthFrameReader<MAX_FRAME_SIZE, Frame>
 

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.
 
bool esphome::pioneer_wt::checksum_valid (const uint8_t *frame, size_t len)
 
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.
 
uint8_t * esphome::pioneer_wt::put_attr (uint8_t *p, uint16_t id, uint8_t value)
 Writes a one-byte attribute (2-byte ID, then the value) at p. Returns the new end.