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

Subset-037 EuroRadio profile over the shared SaF sub-layer. More...

#include "safecomm/euroradio/euroradio.h"
#include <string.h>
Include dependency graph for euroradio.c:

Go to the source code of this file.

Macros

#define SAFECOMM_ER_T_CONNECT_MS   10000U
#define SAFECOMM_ER_T_SUPERVISION_MS   20000U

Functions

safecomm_status_t safecomm_er_make_saf_config (const safecomm_er_config_t *cfg, safecomm_saf_config_t *out_saf)
 Build a SaF config for a Subset-037 connection.

Detailed Description

Subset-037 EuroRadio profile over the shared SaF sub-layer.

Definition in file euroradio.c.

Macro Definition Documentation

◆ SAFECOMM_ER_T_CONNECT_MS

#define SAFECOMM_ER_T_CONNECT_MS   10000U

Subset-037 AU handshake timeout: 10s

Definition at line 9 of file euroradio.c.

◆ SAFECOMM_ER_T_SUPERVISION_MS

#define SAFECOMM_ER_T_SUPERVISION_MS   20000U

Subset-037 idle link supervision: 20s

Definition at line 10 of file euroradio.c.

Function Documentation

◆ safecomm_er_make_saf_config()

safecomm_status_t safecomm_er_make_saf_config ( const safecomm_er_config_t * cfg,
safecomm_saf_config_t * out_saf )

Build a SaF config for a Subset-037 connection.

Fills out_saf with the Subset-037 role mapping and the standard T_CONNECT / supervision timeouts, ready to hand to safecomm_saf_init().

Parameters
cfgthe EuroRadio profile parameters. Non-NULL.
out_safreceives the SaF config. Non-NULL.
Returns
SAFECOMM_STATUS_OK / _INVALID_PARAM / _NOT_IMPLEMENTED.
Note
REQ-SC-ER-003.

Definition at line 12 of file euroradio.c.