|
Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
* SAPI_WATCHDOG_SYSTEM - Entire system liveness (main loop heartbeat) * SAPI_WATCHDOG_TASK - Specific task/thread heartbeat * SAPI_WATCHDOG_CHANNEL - IPC/redundancy channel health * SAPI_WATCHDOG_CHECKPOINT - Execution checkpoint barrier *
* LOG - Log the event only * SAFESTATE - Enter SAFE state via SAPI_SAFESTATE() * REBOOT - Trigger system reboot via SAPI_REBOOT() * FAILOVER - Failover to backup (distributed systems) * CUSTOM - Custom callback provided by application *
* Cycle Time Recommended Timeout Reasoning * ────────────────────────────────────────────────────────── * 10 ms 30-50 ms Allow 3-5× margin * 50 ms 150-250 ms Allow 3-5× margin * 100 ms 300-500 ms Allow 3-5× margin * 1 second 3-5 seconds Allow 3-5× margin *