|
Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
Watchdog handle (opaque). More...
Data Fields | |
| uint8_t | in_use |
| uint8_t | active |
| uint8_t | fired |
| rte_watchdog_config_t | config |
| rte_timestamp_ms_t | deadline_ms |
| rte_timestamp_ms_t | last_kick_ms |
| uint32_t | kicks |
| uint32_t | fires |
| uint32_t | recoveries |
Watchdog handle (opaque).
One pool slot's full state. The public rte_watchdog_t handle is a pointer to one of these slots. This module owns the storage itself (a static pool), unlike most other OAL services in this framework, which take caller-owned storage via RTE_DECLARE_STORAGE - rte_watchdog.h's own documented API (rte_watchdog_create() takes only a config and returns a handle from an implicit "manager", with no caller-storage parameter anywhere in its signature or its own doc examples) was written against a pool-owned design from the start; this implementation follows that, rather than silently changing the public API's contract.
Definition at line 55 of file rte_watchdog.c.
| uint8_t rte_watchdog_t::in_use |
1 if this pool slot is allocated to a live watchdog.
Definition at line 57 of file rte_watchdog.c.
| uint8_t rte_watchdog_t::active |
1 if counting down (started and not stopped).
Definition at line 58 of file rte_watchdog.c.
| uint8_t rte_watchdog_t::fired |
Fired and not yet restarted via start().
Definition at line 59 of file rte_watchdog.c.
| rte_watchdog_config_t rte_watchdog_t::config |
Configuration this watchdog was created with.
Definition at line 60 of file rte_watchdog.c.
| rte_timestamp_ms_t rte_watchdog_t::deadline_ms |
Absolute time at which this watchdog next fires.
Definition at line 61 of file rte_watchdog.c.
| rte_timestamp_ms_t rte_watchdog_t::last_kick_ms |
Absolute time of the most recent kick/start.
Definition at line 62 of file rte_watchdog.c.
| uint32_t rte_watchdog_t::kicks |
Total number of successful kicks.
Definition at line 63 of file rte_watchdog.c.
| uint32_t rte_watchdog_t::fires |
Total number of times this watchdog has fired.
Definition at line 64 of file rte_watchdog.c.
| uint32_t rte_watchdog_t::recoveries |
Total number of recovery actions dispatched.
Definition at line 65 of file rte_watchdog.c.