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_shunting.h
Go to the documentation of this file.
1
11
12#ifndef RTE_EXAMPLE_AB_GP_PROC_SHUNTING_H
13#define RTE_EXAMPLE_AB_GP_PROC_SHUNTING_H
14
15#include "ab_gp_ertms_types.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
32
39
47
65 uint32_t v_train_kmh);
66
77 rbc_timestamp_ms_t t_train_request, rbc_nid_lrbg_t nid_lrbg,
79
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif /* RTE_EXAMPLE_AB_GP_PROC_SHUNTING_H */
const char * ab_gp_proc_shunting_decision_name(ab_gp_shunting_decision_t decision)
bool ab_gp_proc_shunting_build_reply(ab_gp_shunting_decision_t decision, rbc_timestamp_ms_t t_train_reply, rbc_timestamp_ms_t t_train_request, rbc_nid_lrbg_t nid_lrbg, rbc_train_outbound_msg_t *out)
Builds the answer to a Msg 130: Msg 28 SH Authorised or Msg 27 SH Refused.
ab_gp_shunting_decision_t ab_gp_proc_shunting_handle_request(ab_gp_ertms_train_context_t *ctx, uint8_t train_id, uint32_t v_train_kmh)
Decides one Msg 130 Request for Shunting and applies the outcome.
bool ab_gp_proc_shunting_request(ab_gp_ertms_train_context_t *ctx)
Handles inbound Shunting Request (Msg 130).
bool ab_gp_proc_shunting_authorize(ab_gp_ertms_train_context_t *ctx, bool authorized)
Authorizes or rejects shunting mode for the train.
ab_gp_shunting_decision_t
@ AB_GP_SHUNTING_REFUSED_SESSION_STATE
@ AB_GP_SHUNTING_REFUSED_INVALID
@ AB_GP_SHUNTING_AUTHORISED
@ AB_GP_SHUNTING_REFUSED_NO_SESSION
@ AB_GP_SHUNTING_REFUSED_NOT_AT_STANDSTILL
@ AB_GP_SHUNTING_REFUSED_BY_GA
uint64_t rbc_timestamp_ms_t
Timestamp in milliseconds (POSIX or ETCS T_TRAIN / T_RBC scale).
ERTMS Subset-026 Chapter 5 Operational Procedure Data Types and Enums.
Complete ERTMS state and procedure context for one train slot.
Last Relevant Balise Group (Country + BG identifier).