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_platform_backend.h
Go to the documentation of this file.
1
16
#ifndef SAFEAPI_OAL_PLATFORM_BACKEND_H
17
#define SAFEAPI_OAL_PLATFORM_BACKEND_H
18
19
#include "
safeapi/oal/platform/sapi_platform.h
"
20
#include "
safeapi/utils/status/sapi_status.h
"
21
#include "
safeapi/utils/types/sapi_types.h
"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
31
typedef
struct
sapi_platform_backend_s
32
{
42
sapi_status_t
(*
realtime_init
)(uint32_t rt_priority);
43
}
sapi_platform_backend_t
;
44
56
sapi_status_t
sapi_platform_register_backend
(
const
sapi_platform_backend_t
*backend);
57
58
#ifdef __cplusplus
59
}
60
#endif
61
62
#endif
/* SAFEAPI_OAL_PLATFORM_BACKEND_H */
63
/* PLATFORM_BACKEND */
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....
Definition
sapi_platform.c:28
sapi_status_t
sapi_status_t
Common result/status codes.
Definition
sapi_status.h:27
sapi_platform.h
OS Abstraction Layer - Real-time platform configuration service (ADR-035).
sapi_status.h
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
sapi_types.h
Common fixed-width types and the caller-owned-storage handle pattern used by every OAL service (see A...
sapi_platform_backend_t
Backend vtable: an integrator's implementation of the real-time platform bring-up for a specific targ...
Definition
sapi_platform_backend.h:32
sapi_platform_backend_t::realtime_init
sapi_status_t(*) realtime_init(uint32_t rt_priority)
Backend implementation of sapi_platform_realtime_init(). May be NULL (the service then returns SAPI_S...
Definition
sapi_platform_backend.h:42
include
safeapi_backend
platform
sapi_platform_backend.h
Generated by
1.18.0