Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Toggle main menu visibility
Loading...
Searching...
No Matches
sapi_checkpoint.h
Go to the documentation of this file.
1
47
48
#ifndef SAPI_CHECKPOINT_H
49
#define SAPI_CHECKPOINT_H
50
51
#include <stdint.h>
52
53
#include "
safeapi/utils/status/sapi_status.h
"
54
#include "
safeapi/utils/types/sapi_types.h
"
55
#include "
safeapi/redundancy/voter/sapi_voter.h
"
56
#include "
safeapi/redundancy/watchdog/sapi_watchdog.h
"
57
58
#ifdef __cplusplus
59
extern
"C"
{
60
#endif
61
69
typedef
struct
70
{
75
uint32_t
checkpoint_id
;
76
81
sapi_duration_ms_t
max_delay_ms
;
82
85
uint32_t
expected_node_count
;
86
98
sapi_watchdog_t
watchdog
;
99
}
sapi_checkpoint_config_t
;
100
137
sapi_status_t
sapi_channel_checkpoint
(
sapi_voter_t
*voter,
138
const
sapi_checkpoint_config_t
*config);
139
140
#ifdef __cplusplus
141
}
142
#endif
143
145
146
#endif
/* SAPI_CHECKPOINT_H */
sapi_channel_checkpoint
sapi_status_t sapi_channel_checkpoint(sapi_voter_t *voter, const sapi_checkpoint_config_t *config)
Performs one bounded checkpoint rendezvous across every channel registered with a voter.
Definition
sapi_checkpoint.c:198
sapi_status_t
sapi_status_t
Common result/status codes.
Definition
sapi_status.h:27
sapi_duration_ms_t
uint32_t sapi_duration_ms_t
Definition
sapi_types.h:27
sapi_voter_t
sapi_voter_storage_t sapi_voter_t
Opaque handle to a voter instance.
Definition
sapi_voter.h:128
sapi_status.h
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
sapi_types.h
Common fixed-width types and the caller-owned-storage handle pattern used by every OAL service (see A...
sapi_voter.h
N-way voting across registered sapi_channel_t links (2oo2/2oo3/NMR).
sapi_watchdog.h
Watchdog mechanism for detecting system/task hang conditions.
sapi_checkpoint_config_t
Checkpoint configuration.
Definition
sapi_checkpoint.h:70
sapi_checkpoint_config_t::expected_node_count
uint32_t expected_node_count
Definition
sapi_checkpoint.h:85
sapi_checkpoint_config_t::checkpoint_id
uint32_t checkpoint_id
Definition
sapi_checkpoint.h:75
sapi_checkpoint_config_t::max_delay_ms
sapi_duration_ms_t max_delay_ms
Definition
sapi_checkpoint.h:81
sapi_checkpoint_config_t::watchdog
sapi_watchdog_t watchdog
Definition
sapi_checkpoint.h:98
include
safeapi
redundancy
checkpoint
sapi_checkpoint.h
Generated by
1.18.0