RTE RBC 2oo2 Reference Application
0.1.0 build 0006685
SIL 4 2oo2 Dual-Site Fault-Tolerant ERTMS Radio Block Centre Reference Architecture
Toggle main menu visibility
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
21
extern
"C"
{
22
#endif
23
33
bool
ab_gp_proc_ma_compute
(
ab_gp_ertms_train_context_t
*ctx,
34
const
ab_site_ga_route_layout_t *route,
35
uint32_t ma_seq);
36
92
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);
93
100
bool
ab_gp_proc_ma_extend
(
ab_gp_ertms_train_context_t
*ctx,
101
const
ab_site_ga_route_layout_t *additional_route);
102
109
bool
ab_gp_proc_ma_shorten
(
ab_gp_ertms_train_context_t
*ctx,
110
uint32_t new_ma_length_m);
111
118
bool
ab_gp_proc_ma_handle_ack
(
ab_gp_ertms_train_context_t
*ctx, uint32_t ma_seq);
119
124
void
ab_gp_proc_ma_revoke
(
ab_gp_ertms_train_context_t
*ctx);
125
126
#ifdef __cplusplus
127
}
128
#endif
129
130
#endif
/* RTE_EXAMPLE_AB_GP_PROC_MA_H */
ab_gp_proc_ma_shorten
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).
Definition
ab_gp_proc_ma.c:248
ab_gp_proc_ma_extend
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.
Definition
ab_gp_proc_ma.c:214
ab_gp_proc_ma_compute
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.
Definition
ab_gp_proc_ma.c:83
ab_gp_proc_ma_revoke
void ab_gp_proc_ma_revoke(ab_gp_ertms_train_context_t *ctx)
Revokes active Movement Authority (e.g. during emergency or termination).
Definition
ab_gp_proc_ma.c:276
ab_gp_proc_ma_handle_ack
bool ab_gp_proc_ma_handle_ack(ab_gp_ertms_train_context_t *ctx, uint32_t ma_seq)
Handles Movement Authority Acknowledgement (Msg 146).
Definition
ab_gp_proc_ma.c:266
ab_gp_proc_ma_remaining_length_m
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...
Definition
ab_gp_proc_ma.c:53
ab_gp_ertms_types.h
ERTMS Subset-026 Chapter 5 Operational Procedure Data Types and Enums.
ab_gp_ertms_train_context_t
Complete ERTMS state and procedure context for one train slot.
Definition
ab_gp_ertms_types.h:235
src
application
AB
GP
ertms_procedures
ab_gp_proc_ma.h
Generated by
1.18.0