Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
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>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
22typedef 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);
36
44
45
46#ifdef __cplusplus
47}
48#endif
49
50#endif /* RTE_OSADAPTER_FLOW_H */
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
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
Common result/status codes.
Definition rte_status.h:27
uint32_t rte_duration_ms_t
Definition rte_types.h:27
OS Abstraction Layer - OCORA PI-API-compatible Flow service.
rte_status_t rte_osadapter_flow_register(const rte_osadapter_flow_t *adapter)
Registers the OSAdapter Flow implementation.
Definition rte_flow.c:39
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
Common fixed-width types and the caller-owned-storage handle pattern used by every OAL service (see A...
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
Configuration for rte_flow_open().
Definition rte_flow.h:119
OSAdapter Flow operations vtable.