Safe Communication Framework 0.1.0 build feea4f9
ERTMS/ETCS safe communication (Subset-037 EuroRadio, Subset-098 RBC/RBC), CENELEC EN 50128 SIL 4 oriented
Loading...
Searching...
No Matches
protocol_adapter.h File Reference

RTE Protocol Adapter integration and Sublayer Abstraction. More...

#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "safecomm/status.h"
#include "safecomm/saf/saf.h"
#include "safecomm/transport/transport.h"
Include dependency graph for protocol_adapter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  safecomm_adapter_config_t
 Adapter connection endpoint configuration. More...
struct  safecomm_adapter_t
 Adapter handle representation. More...
struct  safecomm_protocol_ops_t
 SAPI-compatible operations vtable for safe communication channels. More...

Enumerations

enum  safecomm_sublayer_type_t { SAFECOMM_SUBLAYER_SAF_SS037 = 1 , SAFECOMM_SUBLAYER_SAF_SS098 = 2 , SAFECOMM_SUBLAYER_RASTA = 3 }
 Safety sublayer protocol selection. More...

Functions

const safecomm_protocol_ops_t * safecomm_protocol_adapter_get_ss098 (void)
 Retrieve the Subset-098 RBC-RBC Protocol Adapter operations vtable.
const safecomm_protocol_ops_t * safecomm_protocol_adapter_get_ss037 (void)
 Retrieve the Subset-037 EuroRadio Protocol Adapter operations vtable.
const safecomm_protocol_ops_t * safecomm_protocol_adapter_get_rasta (void)
 Retrieve the RaSTA (DIN VDE V 0831-102) Protocol Adapter operations vtable.

Detailed Description

RTE Protocol Adapter integration and Sublayer Abstraction.

Provides SAPI-compatible Protocol Adapter bindings for:

  • Subset-098 (RBC-RBC Safe Communication)
  • Subset-037 (EuroRadio FIS Safe Communication)
  • RaSTA option (DIN VDE V 0831-102 / EN 50159 RedL + SafeL)

This allows RTE applications (e.g. safeAPIRBC2oo2GP) to use SafeComm seamlessly through the standard RTE Protocol Adapter interface.

Definition in file protocol_adapter.h.

Enumeration Type Documentation

◆ safecomm_sublayer_type_t

Safety sublayer protocol selection.

Enumerator
SAFECOMM_SUBLAYER_SAF_SS037 

ERTMS/ETCS Subset-037 EuroRadio FIS

SAFECOMM_SUBLAYER_SAF_SS098 

ERTMS/ETCS Subset-098 RBC-RBC Interface

SAFECOMM_SUBLAYER_RASTA 

DIN VDE V 0831-102 RaSTA RedL + SafeL

Definition at line 29 of file protocol_adapter.h.

Function Documentation

◆ safecomm_protocol_adapter_get_ss098()

const safecomm_protocol_ops_t * safecomm_protocol_adapter_get_ss098 ( void )

Retrieve the Subset-098 RBC-RBC Protocol Adapter operations vtable.

Definition at line 118 of file protocol_adapter.c.

◆ safecomm_protocol_adapter_get_ss037()

const safecomm_protocol_ops_t * safecomm_protocol_adapter_get_ss037 ( void )

Retrieve the Subset-037 EuroRadio Protocol Adapter operations vtable.

Definition at line 123 of file protocol_adapter.c.

◆ safecomm_protocol_adapter_get_rasta()

const safecomm_protocol_ops_t * safecomm_protocol_adapter_get_rasta ( void )

Retrieve the RaSTA (DIN VDE V 0831-102) Protocol Adapter operations vtable.

Definition at line 128 of file protocol_adapter.c.