Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
rte_osadapter_clocksync.h
Go to the documentation of this file.
1
7#ifndef RTE_OSADAPTER_CLOCKSYNC_H
8#define RTE_OSADAPTER_CLOCKSYNC_H
9
10#include <stdint.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
21typedef struct rte_osadapter_clocksync_s
22{
23 rte_status_t (*get_offset_ms)(int64_t *out_offset_ms);
24 rte_status_t (*get_quality)(rte_clocksync_quality_t *out_quality);
26
34
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif /* RTE_OSADAPTER_CLOCKSYNC_H */
rte_clocksync_quality_t
Coarse quality/confidence of the current clock synchronization.
rte_status_t
Common result/status codes.
Definition rte_status.h:27
Pluggable wall-clock synchronization OSAdapter (ADR-017).
rte_status_t rte_osadapter_clocksync_register(const rte_osadapter_clocksync_t *adapter)
Registers the OSAdapter clock synchronization implementation.
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
OSAdapter clock synchronization operations vtable.