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_sibling_state.h
Go to the documentation of this file.
1
15#ifndef AB_GP_SIBLING_STATE_H
16#define AB_GP_SIBLING_STATE_H
17
18#include <stdbool.h>
19#include <stddef.h>
20#include <stdint.h>
21
22#include "rte/redundancy/site_role/rte_site_role.h"
23
25
33
39
50bool ab_gp_sibling_state_store(ab_gp_sibling_state_t *st, const uint8_t *payload, size_t size);
51
60bool ab_gp_sibling_state_take(ab_gp_sibling_state_t *st, rte_site_role_sibling_t *out);
61
62#endif /* AB_GP_SIBLING_STATE_H */
bool ab_gp_sibling_state_store(ab_gp_sibling_state_t *st, const uint8_t *payload, size_t size)
Stores a received site-state frame payload: the rule of on_peer_frame_received() (the payload must ca...
bool ab_gp_sibling_state_take(ab_gp_sibling_state_t *st, rte_site_role_sibling_t *out)
The rte_site_role_sibling_source_fn contract: hands out the frame stored since the previous take.
void ab_gp_sibling_state_reset(ab_gp_sibling_state_t *st)
Resets the state to "no frame seen" (all zero).
#define RTE_EXAMPLE_AB_SITE_STATE_WIRE_SIZE
uint8_t bytes[RTE_EXAMPLE_AB_SITE_STATE_WIRE_SIZE]