|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
IEC 61784-3 black-channel SCL shared primitives - implementation. See safety_scl.h. More...
Go to the source code of this file.
IEC 61784-3 black-channel SCL shared primitives - implementation. See safety_scl.h.
The whole module is one small state machine, and every transition out of RUNNING is one-way. The elapsed-time test is an unsigned difference (now - stamp >= limit), which is what makes the watchdog wrap-safe: at a millis() rollover the subtraction wraps with it and still yields the true interval.
Definition in file safety_scl.cpp.