Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
Clock Synchronization - Backend Adaptation

Backend vtable and registration for clock sync (ADR-005). More...

Data Structures

struct  sapi_clocksync_backend_t
 Backend vtable: an integrator's implementation of clock synchronization for a specific mechanism (PTP/GPS/NTP/custom). Any slot may be NULL if unsupported by the backend (-> SAPI_STATUS_NOT_SUPPORTED). More...

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).

Detailed Description

Backend vtable and registration for clock sync (ADR-005).

Function Documentation

◆ sapi_clocksync_register_backend()

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).

Parameters
backendMust not be NULL.
Returns
SAPI_STATUS_INVALID_PARAM if backend is NULL; SAPI_STATUS_OK otherwise. Registering again replaces the previous backend. REQ-CLOCKSYNC-010

Global variables declarations Local function declarations Global functions

Definition at line 26 of file sapi_clocksync.c.