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_handover.h
Go to the documentation of this file.
1
8
9
#ifndef RTE_EXAMPLE_AB_GP_PROC_HANDOVER_H
10
#define RTE_EXAMPLE_AB_GP_PROC_HANDOVER_H
11
12
#include "
ab_gp_ertms_types.h
"
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
22
void
ab_gp_proc_handover_init
(
ab_gp_ertms_train_context_t
*ctx);
23
33
bool
ab_gp_proc_handover_announce
(
ab_gp_ertms_train_context_t
*ctx,
34
uint16_t target_nid_c,
35
uint16_t target_nid_rbc,
36
uint64_t target_nid_radio,
37
uint32_t d_rbctr_m);
38
45
bool
ab_gp_proc_handover_generate_packet_131
(
ab_gp_ertms_train_context_t
*ctx,
46
rbc_packet_131_rbc_transition_t
*out_p131);
47
53
bool
ab_gp_proc_handover_complete
(
ab_gp_ertms_train_context_t
*ctx);
54
60
ab_gp_ertms_handover_state_t
ab_gp_proc_handover_get_state
(
const
ab_gp_ertms_train_context_t
*ctx);
61
62
#ifdef __cplusplus
63
}
64
#endif
65
66
#endif
/* RTE_EXAMPLE_AB_GP_PROC_HANDOVER_H */
67
ab_gp_proc_handover_init
void ab_gp_proc_handover_init(ab_gp_ertms_train_context_t *ctx)
Initializes handover context for a train slot.
Definition
ab_gp_proc_handover.c:10
ab_gp_proc_handover_announce
bool ab_gp_proc_handover_announce(ab_gp_ertms_train_context_t *ctx, uint16_t target_nid_c, uint16_t target_nid_rbc, uint64_t target_nid_radio, uint32_t d_rbctr_m)
Announces an upcoming boundary transition to a neighboring RBC.
Definition
ab_gp_proc_handover.c:26
ab_gp_proc_handover_get_state
ab_gp_ertms_handover_state_t ab_gp_proc_handover_get_state(const ab_gp_ertms_train_context_t *ctx)
Returns current handover state for a train.
Definition
ab_gp_proc_handover.c:87
ab_gp_proc_handover_complete
bool ab_gp_proc_handover_complete(ab_gp_ertms_train_context_t *ctx)
Completes the handover and marks session transferred.
Definition
ab_gp_proc_handover.c:75
ab_gp_proc_handover_generate_packet_131
bool ab_gp_proc_handover_generate_packet_131(ab_gp_ertms_train_context_t *ctx, rbc_packet_131_rbc_transition_t *out_p131)
Generates an ERTMS Packet 131 (RBC transition order) payload.
Definition
ab_gp_proc_handover.c:48
ab_gp_ertms_types.h
ERTMS Subset-026 Chapter 5 Operational Procedure Data Types and Enums.
ab_gp_ertms_handover_state_t
ab_gp_ertms_handover_state_t
Handover execution state machine.
Definition
ab_gp_ertms_types.h:207
ab_gp_ertms_train_context_t
Complete ERTMS state and procedure context for one train slot.
Definition
ab_gp_ertms_types.h:235
rbc_packet_131_rbc_transition_t
Definition
ab_gp_ertms_train_packets.h:233
src
application
AB
GP
ertms_procedures
ab_gp_proc_handover.h
Generated by
1.18.0