|
Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
Implementation of the pluggable clock-sync backend (ADR-017). More...
#include "safeapi/oal/clocksync/sapi_clocksync.h"#include "safeapi/utils/lifecycle/sapi_lifecycle.h"#include "safeapi_backend/clocksync/sapi_clocksync_backend.h"Go to the source code of this file.
Functions | |
| sapi_status_t | sapi_clocksync_register_backend (const sapi_clocksync_backend_t *backend) |
| Registers the backend implementation used by every sapi_clocksync_* call (ADR-005-style single global backend). | |
| sapi_status_t | sapi_clocksync_get_offset_ms (int64_t *out_offset_ms) |
| Reports this node's estimated clock offset (diagnostic/timeout- sizing only - see the file-level note; never use this to decide whether channel results are comparable). | |
| sapi_status_t | sapi_clocksync_get_quality (sapi_clocksync_quality_t *out_quality) |
| Reports the backend's current confidence in the clock offset. | |
Variables | |
| static const sapi_clocksync_backend_t * | s_backend = NULL |
Implementation of the pluggable clock-sync backend (ADR-017).
Definition in file sapi_clocksync.c.
|
static |
Local makros Local types declarations Local variables declarations Single global backend, following ADR-005's established convention (see sapi_timer/sapi_ipc). NULL until sapi_clocksync_register_backend() is called.
Definition at line 18 of file sapi_clocksync.c.