Safe API Framework
0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Toggle main menu visibility
Loading...
Searching...
No Matches
rte_dual_types.h
Go to the documentation of this file.
1
17
#ifndef RTE_DUAL_TYPES_H
18
#define RTE_DUAL_TYPES_H
19
20
#include <stdint.h>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
37
typedef
enum
rte_dual_state_e
38
{
41
RTE_DUAL_STATE_IDLE
= 0,
46
RTE_DUAL_STATE_UNKNOWN
= 1,
48
RTE_DUAL_STATE_ONLINE
= 2,
51
RTE_DUAL_STATE_HOTSTANDBY
= 3,
54
RTE_DUAL_STATE_COLDSTANDBY
= 4
55
}
rte_dual_state_t
;
56
65
typedef
enum
rte_dual_channel_status_e
66
{
69
RTE_DUAL_CHANNEL_STATUS_DOWN
= 0,
71
RTE_DUAL_CHANNEL_STATUS_DEGRADED
= 1,
73
RTE_DUAL_CHANNEL_STATUS_FULL
= 2
74
}
rte_dual_channel_status_t
;
75
87
const
char
*
rte_dual_state_to_string
(
rte_dual_state_t
state);
88
97
const
char
*
rte_dual_channel_status_to_string
(
rte_dual_channel_status_t
status);
98
99
#ifdef __cplusplus
100
}
101
#endif
102
103
#endif
/* RTE_DUAL_TYPES_H */
104
/* DUAL */
rte_dual_channel_status_to_string
const char * rte_dual_channel_status_to_string(rte_dual_channel_status_t status)
Returns a short, static, human-readable string for a rte_dual_channel_status_t. Same diagnostics-only...
Definition
rte_dual_types.c:50
rte_dual_channel_status_t
rte_dual_channel_status_t
Aggregate connection status of a rte_dual_channel_t across all of its configured redundant links (ADR...
Definition
rte_dual_types.h:66
rte_dual_state_t
rte_dual_state_t
State of one instance in a dual (two-redundant-instance) relationship, as decided by rte_dual_negotia...
Definition
rte_dual_types.h:38
rte_dual_state_to_string
const char * rte_dual_state_to_string(rte_dual_state_t state)
Returns a short, static, human-readable string for a rte_dual_state_t. Intended for diagnostics/loggi...
Definition
rte_dual_types.c:21
RTE_DUAL_CHANNEL_STATUS_FULL
@ RTE_DUAL_CHANNEL_STATUS_FULL
Definition
rte_dual_types.h:73
RTE_DUAL_CHANNEL_STATUS_DOWN
@ RTE_DUAL_CHANNEL_STATUS_DOWN
Definition
rte_dual_types.h:69
RTE_DUAL_CHANNEL_STATUS_DEGRADED
@ RTE_DUAL_CHANNEL_STATUS_DEGRADED
Definition
rte_dual_types.h:71
RTE_DUAL_STATE_HOTSTANDBY
@ RTE_DUAL_STATE_HOTSTANDBY
Definition
rte_dual_types.h:51
RTE_DUAL_STATE_UNKNOWN
@ RTE_DUAL_STATE_UNKNOWN
Definition
rte_dual_types.h:46
RTE_DUAL_STATE_ONLINE
@ RTE_DUAL_STATE_ONLINE
Definition
rte_dual_types.h:48
RTE_DUAL_STATE_IDLE
@ RTE_DUAL_STATE_IDLE
Definition
rte_dual_types.h:41
RTE_DUAL_STATE_COLDSTANDBY
@ RTE_DUAL_STATE_COLDSTANDBY
Definition
rte_dual_types.h:54
include
rte
redundancy
dual
rte_dual_types.h
Generated by
1.18.0