|
RTE RBC 2oo2 Reference Application 0.1.0 build 0006685
SIL 4 2oo2 Dual-Site Fault-Tolerant ERTMS Radio Block Centre Reference Architecture
|
See gateway_c_train_handler.h. ADR-036: one multiplexed Train sim connection + one relay link per peer; frames forwarded verbatim, train_id never inspected here. More...
#include "gateway_c_train_handler.h"#include <stdio.h>#include "rte/oal/memory/rte_mem_util.h"#include "rte/oal/log/rte_log.h"#include "common/common_config.h"#include "common/rbc_util_frame.h"#include "gateway_c_common.h"#include "gateway_c_selfstatus.h"Go to the source code of this file.
Functions | |
| static const char * | peer_name (gateway_c_peer_t peer) |
| rte_status_t | gateway_c_train_handler_init (gateway_c_context_t *ctx) |
| static void | send_to_relay (gateway_c_context_t *ctx, gateway_c_peer_t peer, const uint8_t *bytes, size_t len) |
| static void | send_to_sim (gateway_c_context_t *ctx, const uint8_t *bytes, size_t len) |
| void | gateway_c_train_handler_execute (gateway_c_context_t *ctx, uint32_t cycle) |
| void | gateway_c_train_handler_shutdown (void) |
| 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) |
Variables | |
| static gateway_c_train_handler_state_t | g_train |
See gateway_c_train_handler.h. ADR-036: one multiplexed Train sim connection + one relay link per peer; frames forwarded verbatim, train_id never inspected here.
Definition in file gateway_c_train_handler.c.
|
static |
Definition at line 19 of file gateway_c_train_handler.c.
| rte_status_t gateway_c_train_handler_init | ( | gateway_c_context_t * | ctx | ) |
Definition at line 24 of file gateway_c_train_handler.c.
|
static |
Definition at line 75 of file gateway_c_train_handler.c.
|
static |
Definition at line 109 of file gateway_c_train_handler.c.
| void gateway_c_train_handler_execute | ( | gateway_c_context_t * | ctx, |
| uint32_t | cycle ) |
Definition at line 122 of file gateway_c_train_handler.c.
| void gateway_c_train_handler_shutdown | ( | void | ) |
Definition at line 250 of file gateway_c_train_handler.c.
| 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 at line 257 of file gateway_c_train_handler.c.
|
static |
Definition at line 17 of file gateway_c_train_handler.c.