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_train_data.h
Go to the documentation of this file.
1
8
9
#ifndef RTE_EXAMPLE_AB_GP_PROC_TRAIN_DATA_H
10
#define RTE_EXAMPLE_AB_GP_PROC_TRAIN_DATA_H
11
12
#include "
ab_gp_ertms_types.h
"
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
29
bool
ab_gp_proc_train_data_validate
(
ab_gp_ertms_train_context_t
*ctx,
30
uint32_t l_train_m,
31
uint32_t v_maxtrain_kmh,
32
uint8_t m_axleload,
33
uint8_t m_loadinggauge,
34
bool
m_airtight,
35
uint32_t timestamp_ms);
36
42
bool
ab_gp_proc_train_data_is_valid
(
const
ab_gp_ertms_train_context_t
*ctx);
43
50
bool
ab_gp_proc_train_data_get_ack_timestamp
(
const
ab_gp_ertms_train_context_t
*ctx,
51
uint32_t *out_t_train_ack);
52
53
#ifdef __cplusplus
54
}
55
#endif
56
57
#endif
/* RTE_EXAMPLE_AB_GP_PROC_TRAIN_DATA_H */
ab_gp_proc_train_data_validate
bool ab_gp_proc_train_data_validate(ab_gp_ertms_train_context_t *ctx, uint32_t l_train_m, uint32_t v_maxtrain_kmh, uint8_t m_axleload, uint8_t m_loadinggauge, bool m_airtight, uint32_t timestamp_ms)
Validates inbound Train Data (Msg 129 + Packet 11) against site topology limits.
Definition
ab_gp_proc_train_data.c:12
ab_gp_proc_train_data_is_valid
bool ab_gp_proc_train_data_is_valid(const ab_gp_ertms_train_context_t *ctx)
Checks if train data has been successfully validated.
Definition
ab_gp_proc_train_data.c:65
ab_gp_proc_train_data_get_ack_timestamp
bool ab_gp_proc_train_data_get_ack_timestamp(const ab_gp_ertms_train_context_t *ctx, uint32_t *out_t_train_ack)
Retrieves the timestamp for Msg 8 (Ack of Train Data) generation.
Definition
ab_gp_proc_train_data.c:74
ab_gp_ertms_types.h
ERTMS Subset-026 Chapter 5 Operational Procedure Data Types and Enums.
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_train_data.h
Generated by
1.18.0