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
execute.c
Go to the documentation of this file.
1
9
11
12#include "rte/oal/timer/rte_timer.h"
13
18
19rte_status_t ab_gp_channel_execute(void *context)
20{
22 rte_timestamp_ms_t now_ms = 0U;
23
24 if (ctx == NULL)
25 {
26 return RTE_STATUS_INVALID_PARAM;
27 }
28
29 (void)rte_timer_now(&now_ms);
30 ab_gp_ertms_engine_step(&ctx->db, ctx->cyc_cycle, (uint32_t)now_ms, ctx->config.timers.cycle_period_ms);
33}
34
rte_status_t ab_gp_channel_crosscompare_execute(ab_gp_channel_context_t *ctx)
Runs one cycle's cross-compare decision - see this file's own header. This is ab_gp_channel....
The actual A-vs-B cross-compare decision: does this cycle's own M24/M15 answer match what the peer in...
Shared declarations for the four rte_appmanager_operations_t cyclic-executive hooks this component's ...
rte_status_t ab_gp_channel_execute(void *context)
Definition execute.c:19
Modular type definitions for AB channel components (Com, Train, DB, Redundancy).
void ab_gp_ertms_engine_step(ab_gp_db_t *db, uint32_t cycle, uint32_t timestamp_ms, uint32_t elapsed_ms)
Executes one cyclic evaluation of all active ERTMS train procedures.
Unified ERTMS Subset-026 Chapter 5 Operational Procedure Orchestrator.
void ab_gp_logic_connect_routes_and_trains(ab_gp_db_t *db)
THE cyclic sweep: calls ab_gp_logic_connect_route_for_train() for every currently-connected train (ab...
A/B's own RBC decision logic - today's slice: connect a train's currently-reported route to that trai...
Central application context owned by composition root (main.c).
ab_gp_config_timers_t timers