ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
safety_scl.cpp File Reference

IEC 61784-3 black-channel SCL shared primitives - implementation. See safety_scl.h. More...

Go to the source code of this file.

Detailed Description

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.