29#ifndef DETERMINISTICESPASYNCWEBSERVER_ZWAVE_H
30#define DETERMINISTICESPASYNCWEBSERVER_ZWAVE_H
42 static constexpr uint8_t ZWAVE_SOF = 0x01;
43 static constexpr uint8_t ZWAVE_ACK = 0x06;
44 static constexpr uint8_t ZWAVE_NAK = 0x15;
45 static constexpr uint8_t ZWAVE_CAN = 0x18;
49enum class zwave_type : uint8_t
60uint16_t zwave_build_frame(zwave_type type, uint8_t cmd,
const uint8_t *data, uint8_t data_len, uint8_t *out,
74int zwave_parse_frame(
const uint8_t *raw, uint16_t len, uint8_t *type, uint8_t *cmd,
const uint8_t **pdata,
78bool zwave_is_ack(uint8_t b);
80bool zwave_is_nak(uint8_t b);
82bool zwave_is_can(uint8_t b);
85uint16_t zwave_build_ack(uint8_t *out, uint16_t cap);
User-facing configuration for DeterministicESPAsyncWebServer.