Go to the source code of this file.
|
| 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.
|
| |