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_flow.h
Go to the documentation of this file.
1
7
#ifndef RTE_OSADAPTER_FLOW_H
8
#define RTE_OSADAPTER_FLOW_H
9
10
#include <stddef.h>
11
#include "
rte/oal/flow/rte_flow.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_flow_s
23
{
24
rte_status_t
(*open)(rte_flow_storage_t *storage,
25
const
rte_flow_config_t
*config,
26
rte_flow_handle_t
*out_handle);
27
rte_status_t
(*send)(
rte_flow_handle_t
handle,
const
void
*data,
size_t
data_size,
28
rte_flow_channel_t
channel,
rte_duration_ms_t
timeout_ms);
29
rte_status_t
(*receive)(
rte_flow_handle_t
handle,
void
*out_data,
size_t
buffer_size,
30
rte_flow_channel_t
*out_channel,
rte_duration_ms_t
timeout_ms);
31
rte_status_t
(*close)(
rte_flow_handle_t
handle);
32
rte_status_t
(*getattr)(
rte_flow_handle_t
handle,
rte_flow_attr_t
*out_attr);
33
rte_status_t
(*setattr)(
rte_flow_handle_t
handle,
const
rte_flow_attr_t
*new_attr,
34
rte_flow_attr_t
*out_old_attr);
35
}
rte_osadapter_flow_t
;
36
43
rte_status_t
rte_osadapter_flow_register
(
const
rte_osadapter_flow_t
*adapter);
44
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
/* RTE_OSADAPTER_FLOW_H */
rte_flow_channel_t
rte_flow_channel_t
Message-channel discriminator, matching OCORA PI API Annex A.1's e_fl_channels: a Flow can carry ordi...
Definition
rte_flow.h:97
rte_flow_handle_t
struct rte_flow_impl_s * rte_flow_handle_t
Opaque handle to an opened Flow, returned by rte_flow_open().
Definition
rte_flow.h:71
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_flow.h
OS Abstraction Layer - OCORA PI-API-compatible Flow service.
rte_osadapter_flow_register
rte_status_t rte_osadapter_flow_register(const rte_osadapter_flow_t *adapter)
Registers the OSAdapter Flow implementation.
Definition
rte_flow.c:39
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_flow_attr_t
Flow attributes (OCORA PI API Annex A.1 leaves fl_attr's content as "to be defined" - this is this fr...
Definition
rte_flow.h:109
rte_flow_config_t
Configuration for rte_flow_open().
Definition
rte_flow.h:119
rte_osadapter_flow_t
OSAdapter Flow operations vtable.
Definition
rte_osadapter_flow.h:23
include
rte_osadapter
flow
rte_osadapter_flow.h
Generated by
1.18.0