SafeAPI RBC 2oo2 Generic Application
IL/CTC route and train logic for the safeAPIRBC2oo2 reference RBC
Toggle main menu visibility
Loading...
Searching...
No Matches
main_c_il.c
Go to the documentation of this file.
1
9
#include "common/rbc_util_frame.h"
10
#include "gateway_c_common.h"
11
#include "
gateway_c_il_handler.h
"
12
#include "
gateway_c_logctl.h
"
13
14
int
main(
int
argc,
char
**argv)
15
{
16
static
const
gateway_c_service_def_t svc = {
17
.app_name =
"safeAPIRBC2oo2-Gateway-IL"
,
18
.log_tag =
"IL"
,
19
.handler_init = gateway_c_il_handler_init,
20
.handler_execute = gateway_c_il_handler_execute,
21
.handler_shutdown = gateway_c_il_handler_shutdown,
22
.handler_check_link_down = gateway_c_il_handler_check_link_down,
23
.pre_execute_hook =
gateway_c_logctl_poll
,
24
/* ADR-038: publish own status to the C broker every 5 s. */
25
.broker_channel =
"c-broker-il"
,
26
.status_src_id = (uint8_t)RBC_UTIL_SRC_GW_IL
27
};
28
29
return
gateway_c_main(argc, argv, &svc);
30
}
gateway_c_il_handler.h
ILHandler - Role C Gateway's TCP/IP server for the ONE multiplexed IL sim connection and the ONE dedi...
gateway_c_logctl_poll
void gateway_c_logctl_poll(gateway_c_context_t *ctx)
Called once per C cycle (gateway_c_execute()). If SAPI_RBC_LOG_LEVEL_FILE is set and its first line n...
Definition
gateway_c_logctl.c:33
gateway_c_logctl.h
Role C's runtime log-level control "service": one place from which the whole RBC (A,...
src
C
il
main_c_il.c
Generated by
1.18.0