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_nvm.h
Go to the documentation of this file.
1
7#ifndef RTE_OSADAPTER_NVM_H
8#define RTE_OSADAPTER_NVM_H
9
10#include "rte/oal/nvm/rte_nvm.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
20typedef struct rte_osadapter_nvm_s
21{
22 rte_status_t (*open)(rte_nvm_storage_t *storage,
23 const rte_nvm_config_t *config,
24 rte_nvm_handle_t *out_handle);
25 rte_status_t (*read)(rte_nvm_handle_t handle, size_t offset,
26 void *out_buffer, size_t buffer_size);
27 rte_status_t (*write)(rte_nvm_handle_t handle, size_t offset,
28 const void *buffer, size_t buffer_size);
29 rte_status_t (*sync)(rte_nvm_handle_t handle);
30 rte_status_t (*close)(rte_nvm_handle_t handle);
32
43
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* RTE_OSADAPTER_NVM_H */
struct rte_nvm_impl_s * rte_nvm_handle_t
Opaque handle to an open NVM region, returned by rte_nvm_open().
Definition rte_nvm.h:30
rte_status_t
Common result/status codes.
Definition rte_status.h:27
OS Abstraction Layer - Non-Volatile Memory service.
rte_status_t rte_osadapter_nvm_register(const rte_osadapter_nvm_t *adapter)
Registers the OSAdapter NVM implementation.
Definition rte_nvm.c:25
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
Configuration for rte_nvm_open().
Definition rte_nvm.h:34
OSAdapter NVM operations vtable.