Safe API Framework
0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Toggle main menu visibility
Loading...
Searching...
No Matches
rte_osadapter_fsou.h
Go to the documentation of this file.
1
11
#ifndef RTE_OSADAPTER_FSOU_H
12
#define RTE_OSADAPTER_FSOU_H
13
14
#include <stdint.h>
15
#include "
rte/oal/fsou/rte_fsou.h
"
16
#include "
rte/utils/safestate/rte_safestate.h
"
17
#include "
rte/utils/status/rte_status.h
"
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
30
typedef
struct
rte_osadapter_fsou_s
31
{
33
rte_status_t
(*
grant
)(uint32_t cycle_id);
35
rte_status_t
(*
revoke
)(
rte_safestate_reason_t
reason);
36
}
rte_osadapter_fsou_t
;
37
47
rte_status_t
rte_osadapter_fsou_register
(
const
rte_osadapter_fsou_t
*adapter);
48
49
#ifdef __cplusplus
50
}
51
#endif
52
53
#endif
/* RTE_OSADAPTER_FSOU_H */
rte_safestate_reason_t
uint16_t rte_safestate_reason_t
Diagnostic reason code accompanying a safe-state transition.
Definition
rte_safestate.h:63
rte_status_t
rte_status_t
Common result/status codes.
Definition
rte_status.h:27
rte_fsou.h
Fail-Safe Output Unit (FSOU) output permission, optional OSAdapter seam (ADR-041, proposed).
rte_osadapter_fsou_register
rte_status_t rte_osadapter_fsou_register(const rte_osadapter_fsou_t *adapter)
Registers the OSAdapter FSOU implementation (REQ-FSOU-001).
Definition
rte_fsou.c:29
rte_safestate.h
Safe-state transitions and checked assertions (ADR-004).
rte_status.h
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
rte_osadapter_fsou_t
OSAdapter FSOU operations vtable.
Definition
rte_osadapter_fsou.h:31
rte_osadapter_fsou_t::grant
rte_status_t(*) grant(uint32_t cycle_id)
Definition
rte_osadapter_fsou.h:33
rte_osadapter_fsou_t::revoke
rte_status_t(*) revoke(rte_safestate_reason_t reason)
Definition
rte_osadapter_fsou.h:35
include
rte_osadapter
fsou
rte_osadapter_fsou.h
Generated by
1.18.0