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

Backend-defined controlled system restart (ADR-004 section 3). More...

Files

file  src/oal/reboot/rte_reboot.c
 Reboot service: dispatches to the OSAdapter registered via rte_osadapter_reboot_register() (ADR-005).

Functions

rte_status_t rte_reboot_request (uint16_t reason_code)
 Requests a controlled system restart.

Detailed Description

Backend-defined controlled system restart (ADR-004 section 3).

Function Documentation

◆ rte_reboot_request()

rte_status_t rte_reboot_request ( uint16_t reason_code)

Requests a controlled system restart.

Parameters
reason_codeBackend-visible diagnostic code (e.g. persisted to NVM/black-box storage before the reset, osadapter-defined).
Returns
Does not return on success (the CPU resets). Returns RTE_STATUS_NOT_INITIALIZED if no OSAdapter is registered, RTE_STATUS_NOT_SUPPORTED if the OSAdapter cannot perform a reboot, or a osadapter-defined error status.

REQ-OAL-REBOOT-010

Definition at line 44 of file rte_reboot.c.