20#ifndef DETERMINISTICESPASYNCWEBSERVER_NEMA_TS2_H
21#define DETERMINISTICESPASYNCWEBSERVER_NEMA_TS2_H
27#if DETWS_ENABLE_NEMA_TS2
33 static constexpr uint8_t NEMA_TS2_FT_CMD_LOADSWITCH = 0;
34 static constexpr uint8_t NEMA_TS2_FT_STATUS_LOADSWITCH =
36 static constexpr uint8_t NEMA_TS2_FT_CMD_MMU = 3;
37 static constexpr uint8_t NEMA_TS2_FT_DETECTOR = 9;
41uint16_t detws_nema_ts2_crc(
const uint8_t *bytes,
size_t len);
47size_t detws_nema_ts2_build(uint8_t address, uint8_t control, uint8_t frame_type,
const uint8_t *data,
size_t data_len,
48 uint8_t *out,
size_t cap);
61bool detws_nema_ts2_parse(
const uint8_t *frame,
size_t len, NemaTs2Frame *out);
User-facing configuration for DeterministicESPAsyncWebServer.