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_tsr.h
Go to the documentation of this file.
1
9
10#ifndef RTE_EXAMPLE_AB_GP_PROC_TSR_H
11#define RTE_EXAMPLE_AB_GP_PROC_TSR_H
12
13#include "ab_gp_ertms_types.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
24
35 uint8_t nid_tsr,
36 uint32_t v_tsr_kmh,
37 uint32_t d_start_m,
38 uint32_t d_end_m);
39
46bool ab_gp_proc_tsr_remove(ab_gp_ertms_train_context_t *ctx, uint8_t nid_tsr);
47
56 uint8_t nid_tsr,
57 rbc_packet_65_tsr_t *out_p65);
58
65bool ab_gp_proc_tsr_generate_packet_66(uint8_t nid_tsr,
67
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* RTE_EXAMPLE_AB_GP_PROC_TSR_H */
80
bool ab_gp_proc_tsr_remove(ab_gp_ertms_train_context_t *ctx, uint8_t nid_tsr)
Removes an active Temporary Speed Restriction from the train's path.
bool ab_gp_proc_tsr_generate_packet_65(const ab_gp_ertms_train_context_t *ctx, uint8_t nid_tsr, rbc_packet_65_tsr_t *out_p65)
Generates an ERTMS Packet 65 (TSR) payload for transmission in Msg 3 / Msg 24.
bool ab_gp_proc_tsr_add(ab_gp_ertms_train_context_t *ctx, uint8_t nid_tsr, uint32_t v_tsr_kmh, uint32_t d_start_m, uint32_t d_end_m)
Adds a new Temporary Speed Restriction to the train's supervised path.
void ab_gp_proc_tsr_init(ab_gp_ertms_train_context_t *ctx)
Initializes the TSR records for a train context.
uint8_t ab_gp_proc_tsr_get_active_count(const ab_gp_ertms_train_context_t *ctx)
Returns the number of currently active TSRs for this train.
bool ab_gp_proc_tsr_generate_packet_66(uint8_t nid_tsr, rbc_packet_66_tsr_revoke_t *out_p66)
Generates an ERTMS Packet 66 (TSR Revocation) payload.
ERTMS Subset-026 Chapter 5 Operational Procedure Data Types and Enums.
Complete ERTMS state and procedure context for one train slot.