Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
sapi_clocksync.h
Go to the documentation of this file.
1
43
44#ifndef SAPI_CLOCKSYNC_H
45#define SAPI_CLOCKSYNC_H
46
47#include <stdint.h>
48
51
52#ifdef __cplusplus
53extern "C" {
54#endif
55
72
73/*
74 * The backend vtable (sapi_clocksync_backend_t) and
75 * sapi_clocksync_register_backend() live in
76 * safeapi_backend/clocksync/sapi_clocksync_backend.h, not here (ADR-021).
77 * This header is the consumer-facing surface only.
78 */
79
91sapi_status_t sapi_clocksync_get_offset_ms(int64_t *out_offset_ms);
92
102
103#ifdef __cplusplus
104}
105#endif
106
108
109#endif /* SAPI_CLOCKSYNC_H */
sapi_clocksync_quality_t
Coarse quality/confidence of the current clock synchronization.
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...
sapi_status_t sapi_clocksync_get_quality(sapi_clocksync_quality_t *out_quality)
Reports the backend's current confidence in the clock offset.
@ SAPI_CLOCKSYNC_SYNCHRONIZED
@ SAPI_CLOCKSYNC_UNSYNCHRONIZED
@ SAPI_CLOCKSYNC_DEGRADED
sapi_status_t
Common result/status codes.
Definition sapi_status.h:27
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
Common fixed-width types and the caller-owned-storage handle pattern used by every OAL service (see A...