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_eom.c
Go to the documentation of this file.
1
5
6
#include "
ab_gp_proc_eom.h
"
7
#include "
ab_gp_proc_ma.h
"
8
#include "
ab_gp_proc_session.h
"
9
10
bool
ab_gp_proc_eom_handle
(
ab_gp_ertms_train_context_t
*ctx,
ab_gp_db_t
*db)
11
{
12
if
(ctx == NULL)
13
{
14
return
false
;
15
}
16
17
/* 1. Revoke active Movement Authority */
18
ab_gp_proc_ma_revoke
(ctx);
19
20
/* 2. Disconnect allocated routes and transition to IDLE */
21
(void)
ab_gp_proc_session_handle_termination
(ctx, db);
22
23
return
true
;
24
}
ab_gp_proc_eom_handle
bool ab_gp_proc_eom_handle(ab_gp_ertms_train_context_t *ctx, ab_gp_db_t *db)
Handles inbound End of Mission notification (Msg 150).
Definition
ab_gp_proc_eom.c:10
ab_gp_proc_eom.h
ERTMS Subset-026 §5.9 End of Mission (EoM) Procedure.
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.h
ERTMS Subset-026 §5.5 Movement Authority (MA) Management Procedure.
ab_gp_proc_session_handle_termination
bool ab_gp_proc_session_handle_termination(ab_gp_ertms_train_context_t *ctx, ab_gp_db_t *db)
Handles session termination (Msg 156 / Msg 41).
Definition
ab_gp_proc_session.c:83
ab_gp_proc_session.h
ERTMS Subset-026 §5.3 Communication Session Management Procedure.
ab_gp_db_t
Definition
ab_gp_db.h:133
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_eom.c
Generated by
1.18.0