Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
rte_lifecycle.h
Go to the documentation of this file.
1
64#ifndef RTE_COMMON_LIFECYCLE_H
65#define RTE_COMMON_LIFECYCLE_H
66
67#include <stdbool.h>
68
70
71#ifdef __cplusplus
72extern "C" {
73#endif
74
87void rte_lifecycle_lock(void);
88
99void rte_lifecycle_unlock(void);
100
107bool rte_lifecycle_is_locked(void);
108
120
121#ifdef __cplusplus
122}
123#endif
124
125#endif /* RTE_COMMON_LIFECYCLE_H */
126 /* LIFECYCLE */
rte_status_t rte_lifecycle_check_setup_allowed(void)
Convenience check for a setup-only constructor: call this as one of the first checks in any function ...
void rte_lifecycle_lock(void)
Locks the application's setup phase.
void rte_lifecycle_unlock(void)
Unlocks the application's setup phase (setup is allowed again).
bool rte_lifecycle_is_locked(void)
rte_status_t
Common result/status codes.
Definition rte_status.h:27
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...