RTE RBC 2oo2 Reference Application 0.1.0 build 0006685
SIL 4 2oo2 Dual-Site Fault-Tolerant ERTMS Radio Block Centre Reference Architecture
Loading...
Searching...
No Matches
ab_gp_util_link_gate.h
Go to the documentation of this file.
1
15#ifndef AB_GP_UTIL_LINK_GATE_H
16#define AB_GP_UTIL_LINK_GATE_H
17
18#include <stdbool.h>
19#include <stdint.h>
20
21#include "rte/utils/status/rte_status.h"
22#include "rte/utils/types/rte_types.h"
23
25typedef struct
26{
28 rte_timestamp_ms_t next_attempt_ms;
30
36
43
51bool ab_gp_util_link_gate_may_attempt(const ab_gp_util_link_gate_t *gate, rte_timestamp_ms_t now_ms);
52
62void ab_gp_util_link_gate_on_attempt(ab_gp_util_link_gate_t *gate, rte_timestamp_ms_t now_ms);
63
74void ab_gp_util_link_gate_on_result(ab_gp_util_link_gate_t *gate, rte_status_t status, rte_timestamp_ms_t now_ms);
75
76#endif /* AB_GP_UTIL_LINK_GATE_H */