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
main_c_train.c
Go to the documentation of this file.
1
8
#include "
common/rbc_util_frame.h
"
9
#include "
gateway_c_common.h
"
10
#include "
gateway_c_train_handler.h
"
11
12
int
main
(
int
argc,
char
**argv)
13
{
14
static
const
gateway_c_service_def_t
svc = {
15
.app_name =
"safeAPIRBC2oo2-Gateway-Train"
,
16
.log_tag =
"TRAIN"
,
17
.handler_init =
gateway_c_train_handler_init
,
18
.handler_execute =
gateway_c_train_handler_execute
,
19
.handler_shutdown =
gateway_c_train_handler_shutdown
,
20
.handler_check_link_down =
gateway_c_train_handler_check_link_down
,
21
.pre_execute_hook = NULL,
22
/* ADR-038: publish own status to the C broker every 5 s. */
23
.broker_channel =
"c-broker-train"
,
24
.status_src_id = (uint8_t)
RBC_UTIL_SRC_GW_TRAIN
25
};
26
27
return
gateway_c_main
(argc, argv, &svc);
28
}
gateway_c_main
int gateway_c_main(int argc, char **argv, const gateway_c_service_def_t *svc)
Full process entry for a Role C gateway service: prints the version banner, parses argv[1] as {WEST|E...
Definition
gateway_c_common.c:376
gateway_c_common.h
Shared skeleton for the three Role C gateway service binaries (rte_gateway_c_train / _il / _ctc - ADR...
gateway_c_train_handler_shutdown
void gateway_c_train_handler_shutdown(void)
Definition
gateway_c_train_handler.c:250
gateway_c_train_handler_check_link_down
bool gateway_c_train_handler_check_link_down(rte_timestamp_ms_t threshold_ms, rte_timestamp_ms_t now_ms, char *out_which, size_t which_size)
Definition
gateway_c_train_handler.c:257
gateway_c_train_handler_init
rte_status_t gateway_c_train_handler_init(gateway_c_context_t *ctx)
Definition
gateway_c_train_handler.c:24
gateway_c_train_handler_execute
void gateway_c_train_handler_execute(gateway_c_context_t *ctx, uint32_t cycle)
Definition
gateway_c_train_handler.c:122
gateway_c_train_handler.h
TrainHandler - Role C Gateway's TCP/IP server for the ONE multiplexed Train sim connection and the ON...
main
int main(int argc, char **argv)
Definition
launcher_main.c:17
rbc_util_frame.h
ADR-038: the wire frame for the A/B<->C util side channel (RTE_EXAMPLE_RELAY_KIND_UTIL) and the C-sid...
RBC_UTIL_SRC_GW_TRAIN
@ RBC_UTIL_SRC_GW_TRAIN
Definition
rbc_util_frame.h:80
gateway_c_service_def_t
One gateway service's identity and its single handler's entry points - a pure-literal table each main...
Definition
gateway_c_common.h:36
src
application
C
main_c_train.c
Generated by
1.18.0