|
Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
Implementation of the pluggable clock-sync OSAdapter (ADR-017). More...
#include "rte/oal/clocksync/rte_clocksync.h"#include "rte/utils/lifecycle/rte_lifecycle.h"#include "rte_osadapter/clocksync/rte_osadapter_clocksync.h"Go to the source code of this file.
Functions | |
| rte_status_t | rte_osadapter_clocksync_register (const rte_osadapter_clocksync_t *osadapter) |
| Registers the OSAdapter clock synchronization implementation. | |
| rte_status_t | rte_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). | |
| rte_status_t | rte_clocksync_get_quality (rte_clocksync_quality_t *out_quality) |
| Reports the OSAdapter's current confidence in the clock offset. | |
Variables | |
| static const rte_osadapter_clocksync_t * | s_osadapter = NULL |
Implementation of the pluggable clock-sync OSAdapter (ADR-017).
Definition in file rte_clocksync.c.
| rte_status_t rte_osadapter_clocksync_register | ( | const rte_osadapter_clocksync_t * | adapter | ) |
Registers the OSAdapter clock synchronization implementation.
Global variables declarations Local function declarations Global functions
| adapter | Pointer to clocksync operations vtable. |
Definition at line 26 of file rte_clocksync.c.
|
static |
Local makros Local types declarations Local variables declarations Single global OSAdapter, following ADR-005's established convention (see rte_timer/rte_ipc). NULL until rte_osadapter_clocksync_register() is called.
Definition at line 18 of file rte_clocksync.c.