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

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

Data Structures

struct  sapi_platform_backend_t
 Backend vtable: an integrator's implementation of the real-time platform bring-up for a specific target (ADR-005). More...

Functions

sapi_status_t sapi_platform_register_backend (const sapi_platform_backend_t *backend)
 Registers the backend implementation used by sapi_platform_realtime_init() (ADR-005 section 2.1). Call once at startup, before sapi_platform_realtime_init().

Detailed Description

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

Function Documentation

◆ sapi_platform_register_backend()

sapi_status_t sapi_platform_register_backend ( const sapi_platform_backend_t * backend)

Registers the backend implementation used by sapi_platform_realtime_init() (ADR-005 section 2.1). Call once at startup, before sapi_platform_realtime_init().

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_INVALID_STATE if the application setup phase is already locked (ADR-026); SAPI_STATUS_OK otherwise. REQ-OAL-PLATFORM-011

Global variables declarations Local function declarations Global functions

Definition at line 28 of file sapi_platform.c.