Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
sapi_reboot_backend.h
Go to the documentation of this file.
1
16#ifndef SAFEAPI_OS_REBOOT_BACKEND_H
17#define SAFEAPI_OS_REBOOT_BACKEND_H
18
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
30typedef struct sapi_reboot_backend_s
31{
33 sapi_status_t (*request)(uint16_t reason_code);
35
45
46#ifdef __cplusplus
47}
48#endif
49
50#endif /* SAFEAPI_OS_REBOOT_BACKEND_H */
51 /* REBOOT_BACKEND */
sapi_status_t sapi_reboot_register_backend(const sapi_reboot_backend_t *backend)
Registers the backend implementation used by sapi_reboot_request() (ADR-005 section 2....
Definition sapi_reboot.c:25
sapi_status_t
Common result/status codes.
Definition sapi_status.h:27
OS Abstraction Layer - Controlled reboot service (ADR-004 section 3).
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
Backend vtable: an integrator's implementation of the reboot mechanism for a specific target (ADR-005...
sapi_status_t(*) request(uint16_t reason_code)
Backend implementation of sapi_reboot_request(). May be NULL.