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_proc_ma.h
Go to the documentation of this file.
1
9
10#ifndef RTE_EXAMPLE_AB_GP_PROC_MA_H
11#define RTE_EXAMPLE_AB_GP_PROC_MA_H
12
13#include "ab_gp_ertms_types.h"
14#include "ab_siteGP.h"
15#include "ab_siteGA.h" /* ab_site_ga_route_layout_t - route topology moved to GA this
16 * session (see that header's own doc); resolvable here via
17 * rbc2oo2::ga's own PUBLIC include dir, same link GP already
18 * has for ga_interface.h etc. */
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
34 const ab_site_ga_route_layout_t *route,
35 uint32_t ma_seq);
36
92uint32_t ab_gp_proc_ma_remaining_length_m(const ab_site_ga_route_layout_t *route, uint32_t nid_lrbg, uint32_t d_lrbg_m);
93
101 const ab_site_ga_route_layout_t *additional_route);
102
110 uint32_t new_ma_length_m);
111
118bool ab_gp_proc_ma_handle_ack(ab_gp_ertms_train_context_t *ctx, uint32_t ma_seq);
119
125
126#ifdef __cplusplus
127}
128#endif
129
130#endif /* RTE_EXAMPLE_AB_GP_PROC_MA_H */
bool ab_gp_proc_ma_shorten(ab_gp_ertms_train_context_t *ctx, uint32_t new_ma_length_m)
Shortens an existing Movement Authority (Subset-026 ยง5.5.4 / Msg 9).
bool ab_gp_proc_ma_extend(ab_gp_ertms_train_context_t *ctx, const ab_site_ga_route_layout_t *additional_route)
Extends an existing Movement Authority with an additional connected route.
bool ab_gp_proc_ma_compute(ab_gp_ertms_train_context_t *ctx, const ab_site_ga_route_layout_t *route, uint32_t ma_seq)
Computes and grants a new Movement Authority based on site track layout.
void ab_gp_proc_ma_revoke(ab_gp_ertms_train_context_t *ctx)
Revokes active Movement Authority (e.g. during emergency or termination).
bool ab_gp_proc_ma_handle_ack(ab_gp_ertms_train_context_t *ctx, uint32_t ma_seq)
Handles Movement Authority Acknowledgement (Msg 146).
uint32_t ab_gp_proc_ma_remaining_length_m(const ab_site_ga_route_layout_t *route, uint32_t nid_lrbg, uint32_t d_lrbg_m)
Computes the Movement Authority length actually REMAINING from a train's own last-KNOWN balise to rou...
ERTMS Subset-026 Chapter 5 Operational Procedure Data Types and Enums.
Complete ERTMS state and procedure context for one train slot.