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

This channel's own dual-transfer/role state - see ab_gp_channel_dual.h. More...

#include "ab_gp_channel_dual.h"
#include <stdio.h>
#include "rte/oal/log/rte_log.h"
#include "../../common/common_config.h"
Include dependency graph for ab_gp_channel_dual.c:

Go to the source code of this file.

Functions

void ab_gp_channel_dual_on_transfer_lost (void *context)
const char * ab_gp_channel_dual_role_byte_to_string (uint8_t role_byte)

Detailed Description

This channel's own dual-transfer/role state - see ab_gp_channel_dual.h.

Definition in file ab_gp_channel_dual.c.

Function Documentation

◆ ab_gp_channel_dual_on_transfer_lost()

void ab_gp_channel_dual_on_transfer_lost ( void * context)

Local makros Local types declarations Local variables declarations Global variables declarations Local function declarations Global functions

rte_watchdog FAILOVER callback (config.custom_action) for ctx->dual_transfer_watchdog: fires when this channel has received no fresh sample AT ALL from its A<->B peer within RTE_EXAMPLE_AB_DUAL_TRANSFER_TIMEOUT_MS - see this function's own definition for the full reasoning on why this degrades to SINGLE mode rather than rebooting.

Definition at line 25 of file ab_gp_channel_dual.c.

◆ ab_gp_channel_dual_role_byte_to_string()

const char * ab_gp_channel_dual_role_byte_to_string ( uint8_t role_byte)
Returns
"ONLINE"/"STANDBY"/"FAULTED" for a known role byte value, "UNKNOWN" for anything else.

Definition at line 39 of file ab_gp_channel_dual.c.