|
Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
* Countdown timer - Current time until timeout * Last kick time - When last kicked * Total kicks - Diagnostic counter * Total fires - Diagnostic counter * Is active - Enabled/disabled state * Type/action/config - Static configuration *
* LOG - Log the event via sapi_log * SAFESTATE - Invoke SAPI_SAFESTATE(SAFE, APP_REASON_WATCHDOG) * REBOOT - Invoke SAPI_REBOOT(APP_REASON_WATCHDOG) * FAILOVER - Application-defined failover (distributed systems) * CUSTOM - Call custom callback (application-provided) *
* Max watchdog count - No limit; all static * Min timeout - Depends on timer resolution (typically 1ms) * Max timeout - 2^32 - 1 milliseconds (~49 days) * Watchdog size - 64 bytes (SAFEAPI_DECLARE_STORAGE) *