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_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
19
#include "
safeapi/oal/reboot/sapi_reboot.h
"
20
#include "
safeapi/utils/status/sapi_status.h
"
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
30
typedef
struct
sapi_reboot_backend_s
31
{
33
sapi_status_t
(*
request
)(uint16_t reason_code);
34
}
sapi_reboot_backend_t
;
35
44
sapi_status_t
sapi_reboot_register_backend
(
const
sapi_reboot_backend_t
*backend);
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
/* SAFEAPI_OS_REBOOT_BACKEND_H */
51
/* REBOOT_BACKEND */
sapi_reboot_register_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
sapi_status_t
Common result/status codes.
Definition
sapi_status.h:27
sapi_reboot.h
OS Abstraction Layer - Controlled reboot service (ADR-004 section 3).
sapi_status.h
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
sapi_reboot_backend_t
Backend vtable: an integrator's implementation of the reboot mechanism for a specific target (ADR-005...
Definition
sapi_reboot_backend.h:31
sapi_reboot_backend_t::request
sapi_status_t(*) request(uint16_t reason_code)
Backend implementation of sapi_reboot_request(). May be NULL.
Definition
sapi_reboot_backend.h:33
include
safeapi_backend
reboot
sapi_reboot_backend.h
Generated by
1.18.0