21#ifndef DETERMINISTICESPASYNCWEBSERVER_ICCP_H
22#define DETERMINISTICESPASYNCWEBSERVER_ICCP_H
34 static constexpr uint8_t ICCP_QUAL_VALID = 0x00;
35 static constexpr uint8_t ICCP_QUAL_HELD = 0x01;
36 static constexpr uint8_t ICCP_QUAL_SUSPECT = 0x02;
37 static constexpr uint8_t ICCP_QUAL_NOTVALID = 0x03;
38 static constexpr uint8_t ICCP_QUAL_MASK = 0x03;
39 static constexpr uint8_t ICCP_STATE_BETWEEN = 0x00;
40 static constexpr uint8_t ICCP_STATE_OFF = 0x01;
41 static constexpr uint8_t ICCP_STATE_ON = 0x02;
42 static constexpr uint8_t ICCP_STATE_INVALID = 0x03;
54size_t detws_iccp_state_q(uint8_t state, uint8_t flags,
const uint8_t time[4], uint8_t *out,
size_t cap);
65size_t detws_iccp_real_q(int32_t milli, uint8_t flags,
const uint8_t time[4], uint8_t *out,
size_t cap);
User-facing configuration for DeterministicESPAsyncWebServer.