Safe API Framework
0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Toggle main menu visibility
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>
11
#include "
rte/oal/clocksync/rte_clocksync.h
"
12
#include "
rte/utils/status/rte_status.h
"
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
21
typedef
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);
25
}
rte_osadapter_clocksync_t
;
26
33
rte_status_t
rte_osadapter_clocksync_register
(
const
rte_osadapter_clocksync_t
*adapter);
34
35
36
#ifdef __cplusplus
37
}
38
#endif
39
40
#endif
/* RTE_OSADAPTER_CLOCKSYNC_H */
rte_clocksync_quality_t
rte_clocksync_quality_t
Coarse quality/confidence of the current clock synchronization.
Definition
rte_clocksync.h:60
rte_status_t
rte_status_t
Common result/status codes.
Definition
rte_status.h:27
rte_clocksync.h
Pluggable wall-clock synchronization OSAdapter (ADR-017).
rte_osadapter_clocksync_register
rte_status_t rte_osadapter_clocksync_register(const rte_osadapter_clocksync_t *adapter)
Registers the OSAdapter clock synchronization implementation.
Definition
rte_clocksync.c:26
rte_status.h
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
rte_osadapter_clocksync_t
OSAdapter clock synchronization operations vtable.
Definition
rte_osadapter_clocksync.h:22
include
rte_osadapter
clocksync
rte_osadapter_clocksync.h
Generated by
1.18.0