|
SafeAPI RBC 2oo2 Generic Application
IL/CTC route and train logic for the safeAPIRBC2oo2 reference RBC
|
See gateway_c_ctc_handler.h. More...
#include "gateway_c_ctc_handler.h"#include <stdio.h>#include "safeapi/oal/memory/sapi_mem_util.h"#include "safeapi/oal/log/sapi_log.h"#include "common/common_config.h"#include "common/rbc_util_frame.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) |
| sapi_status_t | gateway_c_ctc_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[RBC_ENVELOPE_WIRE_SIZE]) |
| static void | send_to_sim (gateway_c_context_t *ctx, const uint8_t bytes[RBC_ENVELOPE_WIRE_SIZE]) |
| void | gateway_c_ctc_handler_execute (gateway_c_context_t *ctx, uint32_t cycle) |
| void | gateway_c_ctc_handler_shutdown (void) |
| bool | gateway_c_ctc_handler_check_link_down (sapi_timestamp_ms_t threshold_ms, sapi_timestamp_ms_t now_ms, char *out_which, size_t which_size) |
Variables | |
| static gateway_c_ctc_handler_state_t | g_ctc |
Definition in file gateway_c_ctc_handler.c.
| bool gateway_c_ctc_handler_check_link_down | ( | sapi_timestamp_ms_t | threshold_ms, |
| sapi_timestamp_ms_t | now_ms, | ||
| char * | out_which, | ||
| size_t | which_size ) |
Definition at line 195 of file gateway_c_ctc_handler.c.
| void gateway_c_ctc_handler_execute | ( | gateway_c_context_t * | ctx, |
| uint32_t | cycle ) |
Definition at line 87 of file gateway_c_ctc_handler.c.
| sapi_status_t gateway_c_ctc_handler_init | ( | gateway_c_context_t * | ctx | ) |
Definition at line 21 of file gateway_c_ctc_handler.c.
| void gateway_c_ctc_handler_shutdown | ( | void | ) |
Definition at line 188 of file gateway_c_ctc_handler.c.
|
static |
Definition at line 16 of file gateway_c_ctc_handler.c.
|
static |
Definition at line 61 of file gateway_c_ctc_handler.c.
|
static |
Definition at line 74 of file gateway_c_ctc_handler.c.
|
static |
Definition at line 14 of file gateway_c_ctc_handler.c.