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_dispatch.h
Go to the documentation of this file.
1
28
29
#ifndef AB_GP_DISPATCH_H
30
#define AB_GP_DISPATCH_H
31
32
#include <stdbool.h>
33
34
#include "
ab_gp_event.h
"
35
#include "
../ertms_procedures/ab_gp_ertms_types.h
"
36
37
#ifdef __cplusplus
38
extern
"C"
{
39
#endif
40
52
typedef
bool (*
ab_gp_fsm_handler_fn
)(
ab_gp_ertms_train_context_t
*ctx,
ab_gp_event_t
event);
53
69
bool
ab_gp_dispatch
(
ab_gp_ertms_train_context_t
*ctx,
ab_gp_event_t
event);
70
71
#ifdef __cplusplus
72
}
73
#endif
74
75
#endif
/* AB_GP_DISPATCH_H */
ab_gp_dispatch
bool ab_gp_dispatch(ab_gp_ertms_train_context_t *ctx, ab_gp_event_t event)
Raises event to every state machine subscribed to it, in subscription-table order,...
Definition
ab_gp_dispatch.c:140
ab_gp_fsm_handler_fn
bool(*) ab_gp_fsm_handler_fn(ab_gp_ertms_train_context_t *ctx, ab_gp_event_t event)
One FSM's event entry point. Every per-entity FSM under state_machines/ exposes exactly this signatur...
Definition
ab_gp_dispatch.h:52
ab_gp_event.h
The one shared event vocabulary for every GP procedure state machine under state_machines/.
ab_gp_event_t
ab_gp_event_t
Every event any GP procedure state machine reacts to. One per distinct real trigger in ertms_procedur...
Definition
ab_gp_event.h:53
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
state_machines
ab_gp_dispatch.h
Generated by
1.18.0