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.c File Reference

Reboot service: dispatches to the backend registered via sapi_reboot_register_backend() (ADR-005). More...

Include dependency graph for sapi_reboot.c:

Go to the source code of this file.

Functions

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.1). Call once at startup.
sapi_status_t sapi_reboot_request (uint16_t reason_code)
 Requests a controlled system restart.

Variables

static const sapi_reboot_backend_ts_backend = NULL
 Currently registered backend, or NULL if none (ADR-005).

Detailed Description

Reboot service: dispatches to the backend registered via sapi_reboot_register_backend() (ADR-005).

Definition in file sapi_reboot.c.

Variable Documentation

◆ s_backend

const sapi_reboot_backend_t* s_backend = NULL
static

Currently registered backend, or NULL if none (ADR-005).

Local makros Local types declarations Local variables declarations

Definition at line 17 of file sapi_reboot.c.