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_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
69
#include "
rte/utils/status/rte_status.h
"
70
71
#ifdef __cplusplus
72
extern
"C"
{
73
#endif
74
87
void
rte_lifecycle_lock
(
void
);
88
99
void
rte_lifecycle_unlock
(
void
);
100
107
bool
rte_lifecycle_is_locked
(
void
);
108
119
rte_status_t
rte_lifecycle_check_setup_allowed
(
void
);
120
121
#ifdef __cplusplus
122
}
123
#endif
124
125
#endif
/* RTE_COMMON_LIFECYCLE_H */
126
/* LIFECYCLE */
rte_lifecycle_check_setup_allowed
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 ...
Definition
rte_lifecycle.c:41
rte_lifecycle_lock
void rte_lifecycle_lock(void)
Locks the application's setup phase.
Definition
rte_lifecycle.c:26
rte_lifecycle_unlock
void rte_lifecycle_unlock(void)
Unlocks the application's setup phase (setup is allowed again).
Definition
rte_lifecycle.c:31
rte_lifecycle_is_locked
bool rte_lifecycle_is_locked(void)
Definition
rte_lifecycle.c:36
rte_status_t
rte_status_t
Common result/status codes.
Definition
rte_status.h:27
rte_status.h
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
include
rte
utils
lifecycle
rte_lifecycle.h
Generated by
1.18.0