|
DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
|
ATC (Advanced Traffic Controller) field-I/O interop snapshot (DETWS_ENABLE_ATC). More...
Go to the source code of this file.
ATC (Advanced Traffic Controller) field-I/O interop snapshot (DETWS_ENABLE_ATC).
The ATC standard moves traffic cabinets to a standard Linux engine with an ITS-Cabinet / ATC field-I/O API (the FIO): the controller reads detector/input points and drives signal/output points through a fixed I/O map. ATC is a host-platform spec more than a wire protocol, so the useful slice for this library is interop: exposing this device's field-I/O (which it already gathers via the shipped NTCIP / NEMA-TS2 / gpio services) to an ATC engine over the existing HTTP surface, as a compact JSON snapshot.
This is that snapshot codec: a fixed table of named field-I/O points (each an input or output bit or byte) that detws_atc_snapshot_json serializes as {"inputs":[...],"outputs":[...]} for a GET, and a setter to drive an output point from an ATC command. Pure, zero heap, no stdlib, host-testable.
Definition in file atc.h.