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_reboot.h
Go to the documentation of this file.
1
19
#ifndef SAFEAPI_OS_REBOOT_H
20
#define SAFEAPI_OS_REBOOT_H
21
22
#include "
safeapi/utils/status/sapi_status.h
"
23
#include "
safeapi/utils/types/sapi_types.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
40
sapi_status_t
sapi_reboot_request
(uint16_t reason_code);
41
42
/*
43
* The backend vtable (sapi_reboot_backend_t) and
44
* sapi_reboot_register_backend() live in
45
* safeapi_backend/reboot/sapi_reboot_backend.h, not here (ADR-021). This
46
* header is the consumer-facing surface only.
47
*/
48
49
#ifdef __cplusplus
50
}
51
#endif
52
53
#endif
/* SAFEAPI_OS_REBOOT_H */
54
/* REBOOT */
sapi_reboot_request
sapi_status_t sapi_reboot_request(uint16_t reason_code)
Requests a controlled system restart.
Definition
sapi_reboot.c:44
sapi_status_t
sapi_status_t
Common result/status codes.
Definition
sapi_status.h:27
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...
include
safeapi
oal
reboot
sapi_reboot.h
Generated by
1.18.0