28#ifndef DETERMINISTICESPASYNCWEBSERVER_ZIGBEE_H
29#define DETERMINISTICESPASYNCWEBSERVER_ZIGBEE_H
33#if DETWS_ENABLE_ZIGBEE
41 static constexpr uint8_t ASH_FLAG = 0x7E;
42 static constexpr uint8_t ASH_ESCAPE = 0x7D;
43 static constexpr uint8_t ASH_RST = 0xC0;
44 static constexpr uint8_t ASH_RSTACK = 0xC1;
45 static constexpr uint8_t ASH_ERROR = 0xC2;
49uint16_t ash_crc16(
const uint8_t *buf, uint16_t len);
56uint16_t ash_frame_encode(uint8_t control,
const uint8_t *payload, uint16_t len, uint8_t *out, uint16_t cap);
67int ash_frame_decode(
const uint8_t *raw, uint16_t len, uint8_t *control, uint8_t *payload, uint16_t pay_cap,
User-facing configuration for DeterministicESPAsyncWebServer.