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_ipc.h
Go to the documentation of this file.
1
7
#ifndef RTE_OSADAPTER_IPC_H
8
#define RTE_OSADAPTER_IPC_H
9
10
#include <stddef.h>
11
#include "
rte/oal/ipc/rte_ipc.h
"
12
#include "
rte/utils/status/rte_status.h
"
13
#include "
rte/utils/types/rte_types.h
"
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
22
typedef
struct
rte_osadapter_ipc_s
23
{
24
rte_status_t
(*create)(rte_ipc_storage_t *storage,
25
const
rte_ipc_config_t
*config,
26
rte_ipc_handle_t
*out_handle);
27
rte_status_t
(*send)(
rte_ipc_handle_t
handle,
const
void
*message,
28
size_t
message_size,
rte_duration_ms_t
timeout_ms);
29
rte_status_t
(*receive)(
rte_ipc_handle_t
handle,
void
*out_message,
30
size_t
buffer_size,
rte_duration_ms_t
timeout_ms);
31
rte_status_t
(*destroy)(
rte_ipc_handle_t
handle);
32
}
rte_osadapter_ipc_t
;
33
43
rte_status_t
rte_osadapter_ipc_register
(
const
rte_osadapter_ipc_t
*adapter);
44
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
/* RTE_OSADAPTER_IPC_H */
rte_ipc_handle_t
struct rte_ipc_impl_s * rte_ipc_handle_t
Opaque handle to a created IPC channel, returned by rte_ipc_create().
Definition
rte_ipc.h:34
rte_status_t
rte_status_t
Common result/status codes.
Definition
rte_status.h:27
rte_duration_ms_t
uint32_t rte_duration_ms_t
Definition
rte_types.h:27
rte_ipc.h
OS Abstraction Layer - Inter-process/inter-task communication service.
rte_osadapter_ipc_register
rte_status_t rte_osadapter_ipc_register(const rte_osadapter_ipc_t *adapter)
Registers the OSAdapter IPC implementation.
Definition
rte_ipc.c:25
rte_status.h
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
rte_types.h
Common fixed-width types and the caller-owned-storage handle pattern used by every OAL service (see A...
rte_ipc_config_t
Configuration for rte_ipc_create().
Definition
rte_ipc.h:38
rte_osadapter_ipc_t
OSAdapter IPC operations vtable.
Definition
rte_osadapter_ipc.h:23
include
rte_osadapter
ipc
rte_osadapter_ipc.h
Generated by
1.18.0