|
RTE RBC 2oo2 Reference Application 0.1.0 build 0006685
SIL 4 2oo2 Dual-Site Fault-Tolerant ERTMS Radio Block Centre Reference Architecture
|
One train A/B's simplified database knows about. More...
#include <ab_gp_db.h>
Data Fields | |
| uint8_t | nid_engine |
| bool | connected |
| bool | has_ma |
| uint16_t | route_ids [RTE_EXAMPLE_MAX_ROUTES_PER_TRAIN] |
| uint8_t | route_count |
| uint32_t | last_nid_lrbg |
One train A/B's simplified database knows about.
Definition at line 98 of file ab_gp_db.h.
| uint8_t ab_gp_db_train_t::nid_engine |
Real Subset-026 NID_ENGINE - same identity TrainRBCSim's own connectTrain/setTrainVariable Robot keywords use (SimCore/TrainRBCSim), not com/'s own array-slot train_id.
Definition at line 100 of file ab_gp_db.h.
| bool ab_gp_db_train_t::connected |
True while this train has an active session (mirrors com's own ab_gp_train_session_t.in_use, kept as a separate field rather than shared storage - see this file's own header doc).
Definition at line 103 of file ab_gp_db.h.
| bool ab_gp_db_train_t::has_ma |
True while this train currently holds a valid Movement Authority.
Definition at line 106 of file ab_gp_db.h.
| uint16_t ab_gp_db_train_t::route_ids[RTE_EXAMPLE_MAX_ROUTES_PER_TRAIN] |
Routes currently allocated to this train's MA (ab_gp_db_route_t.id values), 0 = unused slot.
Definition at line 108 of file ab_gp_db.h.
| uint8_t ab_gp_db_train_t::route_count |
Number of route_ids[] slots in use.
Definition at line 110 of file ab_gp_db.h.
| uint32_t ab_gp_db_train_t::last_nid_lrbg |
Real Subset-026 NID_LRBG from this train's own most recently processed Position Report - 0 = none reported yet (same "never 0" sentinel convention as ab_site_balise_t.nid_lrbg, AB/SA/site/ab_site.h). Written by com/ as position reports arrive (AB/GP/train/ab_gp_train.h's own setter); read by logic/'s own cyclic route-connect sweep (AB/GP/ma_logic/ab_gp_logic.h) to decide which route this train is now in.
Definition at line 112 of file ab_gp_db.h.