Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
Controlled Reboot - Backend Adaptation

Backend vtable and registration for the reboot service (ADR-005). More...

Data Structures

struct  sapi_reboot_backend_t
 Backend vtable: an integrator's implementation of the reboot mechanism for a specific target (ADR-005). More...

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.

Detailed Description

Backend vtable and registration for the reboot service (ADR-005).

Function Documentation

◆ 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.1). Call once at startup.

Parameters
backendBackend implementation. Must not be NULL. Registering again replaces the previously registered backend.
Returns
SAPI_STATUS_INVALID_PARAM if backend is NULL; SAPI_STATUS_OK otherwise. REQ-OAL-REBOOT-011

Global variables declarations Local function declarations Global functions

Definition at line 25 of file sapi_reboot.c.