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
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"
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
41
43typedef struct
44{
46 char peer_host[128];
47 uint16_t peer_port;
48 uint16_t bind_port;
49 uint32_t retry_ms;
52
69 const safecomm_transport_t *lower,
70 safecomm_cfm_t *out);
71
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif /* SAFECOMM_CFM_H */
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_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
Which communication-layer profile the CFM runs.
Definition cfm.h:37
@ SAFECOMM_CFM_PROFILE_EURORADIO
Definition cfm.h:38
@ SAFECOMM_CFM_PROFILE_RBC_RBC
Definition cfm.h:39
File-based configuration for the Safe Communication Framework.
Common status codes for the Safe Communication Framework.
safecomm_status_t
Result of a Safe Communication Framework operation.
Definition status.h:17
A CFM instance. Caller-allocated, opaque.
Definition cfm.h:44
safecomm_transport_t lower
Definition cfm.h:50
A loaded configuration file. Caller-allocated, opaque in use.
Definition config.h:66
A consumer-supplied bearer the SaF layer runs over.
Definition transport.h:56
Transport abstraction for the Safe Communication Framework.