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_checkpoint.h
Go to the documentation of this file.
1
47
48
#ifndef RTE_CHECKPOINT_H
49
#define RTE_CHECKPOINT_H
50
51
#include <stdint.h>
52
53
#include "
rte/utils/status/rte_status.h
"
54
#include "
rte/utils/types/rte_types.h
"
55
#include "
rte/redundancy/voter/rte_voter.h
"
56
#include "
rte/redundancy/watchdog/rte_watchdog.h
"
57
58
#ifdef __cplusplus
59
extern
"C"
{
60
#endif
61
69
typedef
struct
70
{
75
uint32_t
checkpoint_id
;
76
81
rte_duration_ms_t
max_delay_ms
;
82
85
uint32_t
expected_node_count
;
86
98
rte_watchdog_t
watchdog
;
99
}
rte_checkpoint_config_t
;
100
137
rte_status_t
rte_channel_checkpoint
(
rte_voter_t
*voter,
138
const
rte_checkpoint_config_t
*config);
139
140
#ifdef __cplusplus
141
}
142
#endif
143
145
146
#endif
/* RTE_CHECKPOINT_H */
rte_channel_checkpoint
rte_status_t rte_channel_checkpoint(rte_voter_t *voter, const rte_checkpoint_config_t *config)
Performs one bounded checkpoint rendezvous across every channel registered with a voter.
Definition
rte_checkpoint.c:239
rte_status_t
rte_status_t
Common result/status codes.
Definition
rte_status.h:27
rte_duration_ms_t
uint32_t rte_duration_ms_t
Definition
rte_types.h:27
rte_voter_t
rte_voter_storage_t rte_voter_t
Opaque handle to a voter instance.
Definition
rte_voter.h:149
rte_status.h
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
rte_types.h
Common fixed-width types and the caller-owned-storage handle pattern used by every OAL service (see A...
rte_voter.h
N-way voting across registered rte_channel_t links (2oo2/2oo3/NMR).
rte_watchdog.h
Watchdog mechanism for detecting system/task hang conditions.
rte_checkpoint_config_t
Checkpoint configuration.
Definition
rte_checkpoint.h:70
rte_checkpoint_config_t::watchdog
rte_watchdog_t watchdog
Definition
rte_checkpoint.h:98
rte_checkpoint_config_t::checkpoint_id
uint32_t checkpoint_id
Definition
rte_checkpoint.h:75
rte_checkpoint_config_t::max_delay_ms
rte_duration_ms_t max_delay_ms
Definition
rte_checkpoint.h:81
rte_checkpoint_config_t::expected_node_count
uint32_t expected_node_count
Definition
rte_checkpoint.h:85
include
rte
redundancy
checkpoint
rte_checkpoint.h
Generated by
1.18.0