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
ab_gp_km114_relay.c File Reference

See ab_gp_km114_relay.h. More...

#include "ab_gp_km114_relay.h"
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "rte/oal/log/rte_log.h"
#include "../../common/rbc_util_km114_relay.h"
#include "ab_gp_km114_client.h"
Include dependency graph for ab_gp_km114_relay.c:

Go to the source code of this file.

Functions

void ab_gp_km114_relay_on_frame (const rbc_util_frame_t *frame, const char *role_tag, rte_example_site_t site, ab_gp_channel_handle_t handle)
 Feeds one decoded RBC_UTIL_TOPIC_KM114_FILE publish frame into the reassembler.

Variables

static uint8_t s_buf [RBC_UTIL_KM114_RELAY_FILE_MAX]
static uint16_t s_total_len
static uint8_t s_frag_count
static bool s_frag_seen [RBC_UTIL_KM114_RELAY_MAX_FRAGS]
static uint8_t s_frags_seen_count

Detailed Description

See ab_gp_km114_relay.h.

Definition in file ab_gp_km114_relay.c.

Function Documentation

◆ ab_gp_km114_relay_on_frame()

void ab_gp_km114_relay_on_frame ( const rbc_util_frame_t * frame,
const char * role_tag,
rte_example_site_t site,
ab_gp_channel_handle_t handle )

Feeds one decoded RBC_UTIL_TOPIC_KM114_FILE publish frame into the reassembler.

Global functions

Parameters
frameDecoded util frame (topic_id must already be RBC_UTIL_TOPIC_KM114_FILE - not checked again here).
role_tagThis process's own role tag ("A"/"B"), for the completion log line.
siteThis process's own site, for the completion log line.
handleThis channel's own handle, forwarded to ab_gp_km114_client_on_message() for the A/B cross-check frame (see that function's own doc). May be NULL.

Definition at line 28 of file ab_gp_km114_relay.c.

Variable Documentation

◆ s_buf

uint8_t s_buf[RBC_UTIL_KM114_RELAY_FILE_MAX]
static

Local makros Local types declarations Local variables declarations

Definition at line 21 of file ab_gp_km114_relay.c.

◆ s_total_len

uint16_t s_total_len
static

Definition at line 22 of file ab_gp_km114_relay.c.

◆ s_frag_count

uint8_t s_frag_count
static

Definition at line 23 of file ab_gp_km114_relay.c.

◆ s_frag_seen

bool s_frag_seen[RBC_UTIL_KM114_RELAY_MAX_FRAGS]
static

Definition at line 24 of file ab_gp_km114_relay.c.

◆ s_frags_seen_count

uint8_t s_frags_seen_count
static

Definition at line 25 of file ab_gp_km114_relay.c.