|
RTE RBC 2oo2 Reference Application 0.1.0 build 0006685
SIL 4 2oo2 Dual-Site Fault-Tolerant ERTMS Radio Block Centre Reference Architecture
|
ERTMS Subset-026 §5.10 Temporary Speed Restriction (TSR) Procedure. More...
#include "ab_gp_ertms_types.h"Go to the source code of this file.
Functions | |
| void | ab_gp_proc_tsr_init (ab_gp_ertms_train_context_t *ctx) |
| Initializes the TSR records for a train context. | |
| 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. | |
| 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_generate_packet_66 (uint8_t nid_tsr, rbc_packet_66_tsr_revoke_t *out_p66) |
| Generates an ERTMS Packet 66 (TSR Revocation) payload. | |
| 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. | |
ERTMS Subset-026 §5.10 Temporary Speed Restriction (TSR) Procedure.
Implements SIL 4 C99 Temporary Speed Restriction management, Packet 65 (TSR) generation, Packet 66 (TSR Revocation) generation, and track segment speed supervision for ERTMS Level 2 RBC operation.
Definition in file ab_gp_proc_tsr.h.
| void ab_gp_proc_tsr_init | ( | ab_gp_ertms_train_context_t * | ctx | ) |
Initializes the TSR records for a train context.
| [in,out] | ctx | Train ERTMS context. |
Definition at line 15 of file ab_gp_proc_tsr.c.
| 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.
| [in,out] | ctx | Train ERTMS context. |
| [in] | nid_tsr | Unique TSR identifier (1..255). |
| [in] | v_tsr_kmh | Restricted maximum speed (km/h). |
| [in] | d_start_m | Start location in meters relative to active LRBG. |
| [in] | d_end_m | End location in meters relative to active LRBG. |
Definition at line 35 of file ab_gp_proc_tsr.c.
| 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.
| [in,out] | ctx | Train ERTMS context. |
| [in] | nid_tsr | TSR identifier to revoke. |
Definition at line 81 of file ab_gp_proc_tsr.c.
| 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.
| [in] | ctx | Train ERTMS context. |
| [in] | nid_tsr | TSR identifier. |
| [out] | out_p65 | Destination Packet 65 structure. |
Definition at line 107 of file ab_gp_proc_tsr.c.
| 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.
| [in] | nid_tsr | TSR identifier to revoke. |
| [out] | out_p66 | Destination Packet 66 structure. |
Definition at line 138 of file ab_gp_proc_tsr.c.
| 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.
| [in] | ctx | Train ERTMS context. |
Definition at line 151 of file ab_gp_proc_tsr.c.