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_site_status.h
Go to the documentation of this file.
1
9#ifndef AB_GP_SITE_STATUS_H
10#define AB_GP_SITE_STATUS_H
11
12#include <stddef.h>
13
14#include "ab_gp_channel_types.h"
15#include "rte/redundancy/site_role/rte_site_role_policy.h"
16
25
40
46
49
54size_t ab_gp_site_status_append_text(const ab_gp_site_status_t *st, char *buf, size_t size);
55
56#endif /* AB_GP_SITE_STATUS_H */
Modular type definitions for AB channel components (Com, Train, DB, Redundancy).
size_t ab_gp_site_status_append_text(const ab_gp_site_status_t *st, char *buf, size_t size)
Appends " site_wait=<none|dispatcher|link> site_why=<short reason>" to a status payload.
void ab_gp_site_status_collect(const ab_gp_channel_context_t *ctx, ab_gp_site_status_t *out)
bool ab_gp_site_status_ready_for_online(const ab_gp_channel_context_t *ctx)
Whether this channel confirms it is ready to be ONLINE: the Gateway relay delivered a frame within th...
ab_gp_site_wait_t
@ AB_GP_SITE_WAIT_READY
@ AB_GP_SITE_WAIT_NOTHING
@ AB_GP_SITE_WAIT_DISPATCHER
@ AB_GP_SITE_WAIT_LINK
Central application context owned by composition root (main.c).
rte_site_role_reason_t last_reason
ab_gp_site_wait_t waiting_for