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
gateway_c_train_handler.h File Reference

TrainHandler - Role C Gateway's TCP/IP server for the ONE multiplexed Train sim connection and the ONE dedicated relay link to/from each of A and B (ADR-036). Every train's traffic rides these single links, each envelope carrying its own train_id; this handler is a pure byte pipe - it forwards frames verbatim and never inspects train_id (that is A/B's job). More...

#include "gateway_c_types.h"
Include dependency graph for gateway_c_train_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gateway_c_train_handler_state_t

Functions

rte_status_t gateway_c_train_handler_init (gateway_c_context_t *ctx)
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)

Detailed Description

TrainHandler - Role C Gateway's TCP/IP server for the ONE multiplexed Train sim connection and the ONE dedicated relay link to/from each of A and B (ADR-036). Every train's traffic rides these single links, each envelope carrying its own train_id; this handler is a pure byte pipe - it forwards frames verbatim and never inspects train_id (that is A/B's job).

Definition in file gateway_c_train_handler.h.

Function Documentation

◆ gateway_c_train_handler_init()

rte_status_t gateway_c_train_handler_init ( gateway_c_context_t * ctx)

Definition at line 24 of file gateway_c_train_handler.c.

◆ gateway_c_train_handler_execute()

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.

◆ gateway_c_train_handler_shutdown()

void gateway_c_train_handler_shutdown ( void )

Definition at line 250 of file gateway_c_train_handler.c.

◆ 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 at line 257 of file gateway_c_train_handler.c.