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
Toggle main menu visibility
Loading...
Searching...
No Matches
cfm.h
Go to the documentation of this file.
1
24
#ifndef SAFECOMM_CFM_H
25
#define SAFECOMM_CFM_H
26
27
#include "
safecomm/status.h
"
28
#include "
safecomm/config/config.h
"
29
#include "
safecomm/transport/transport.h
"
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
36
typedef
enum
37
{
38
SAFECOMM_CFM_PROFILE_EURORADIO
= 0,
39
SAFECOMM_CFM_PROFILE_RBC_RBC
40
}
safecomm_cfm_profile_t
;
41
43
typedef
struct
44
{
45
safecomm_cfm_profile_t
profile;
46
char
peer_host[128];
47
uint16_t peer_port;
48
uint16_t bind_port;
49
uint32_t retry_ms;
50
safecomm_transport_t
lower
;
51
}
safecomm_cfm_t
;
52
68
safecomm_status_t
safecomm_cfm_from_config
(
const
safecomm_config_t
*cfg,
69
const
safecomm_transport_t
*lower,
70
safecomm_cfm_t
*out);
71
83
safecomm_status_t
safecomm_cfm_transport
(
safecomm_cfm_t
*cfm,
safecomm_transport_t
*out);
84
85
#ifdef __cplusplus
86
}
87
#endif
88
89
#endif
/* SAFECOMM_CFM_H */
safecomm_cfm_transport
safecomm_status_t safecomm_cfm_transport(safecomm_cfm_t *cfm, safecomm_transport_t *out)
Expose the CFM to the SFM above it as a transport.
Definition
cfm.c:70
safecomm_cfm_from_config
safecomm_status_t safecomm_cfm_from_config(const safecomm_config_t *cfg, const safecomm_transport_t *lower, safecomm_cfm_t *out)
Build a CFM from a loaded config (cfm.* keys).
Definition
cfm.c:12
safecomm_cfm_profile_t
safecomm_cfm_profile_t
Which communication-layer profile the CFM runs.
Definition
cfm.h:37
SAFECOMM_CFM_PROFILE_EURORADIO
@ SAFECOMM_CFM_PROFILE_EURORADIO
Definition
cfm.h:38
SAFECOMM_CFM_PROFILE_RBC_RBC
@ SAFECOMM_CFM_PROFILE_RBC_RBC
Definition
cfm.h:39
config.h
File-based configuration for the Safe Communication Framework.
status.h
Common status codes for the Safe Communication Framework.
safecomm_status_t
safecomm_status_t
Result of a Safe Communication Framework operation.
Definition
status.h:17
safecomm_cfm_t
A CFM instance. Caller-allocated, opaque.
Definition
cfm.h:44
safecomm_cfm_t::lower
safecomm_transport_t lower
Definition
cfm.h:50
safecomm_config_t
A loaded configuration file. Caller-allocated, opaque in use.
Definition
config.h:66
safecomm_transport_t
A consumer-supplied bearer the SaF layer runs over.
Definition
transport.h:56
transport.h
Transport abstraction for the Safe Communication Framework.
include
safecomm
cfm
cfm.h
Generated by
1.18.0