Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
sapi_nvm_backend_t Struct Reference

Backend vtable: an integrator's implementation of the NVM service for a specific storage medium (ADR-005). Any slot may be NULL if unsupported by the backend (-> SAPI_STATUS_NOT_SUPPORTED). More...

#include <sapi_nvm_backend.h>

Data Fields

sapi_status_t(*) open (sapi_nvm_storage_t *storage, const sapi_nvm_config_t *config, sapi_nvm_handle_t *out_handle)
 Backend implementation of sapi_nvm_open(). May be NULL.
sapi_status_t(*) read (sapi_nvm_handle_t handle, size_t offset, void *out_buffer, size_t buffer_size)
 Backend implementation of sapi_nvm_read(). May be NULL.
sapi_status_t(*) write (sapi_nvm_handle_t handle, size_t offset, const void *buffer, size_t buffer_size)
 Backend implementation of sapi_nvm_write(). May be NULL.
sapi_status_t(*) sync (sapi_nvm_handle_t handle)
 Backend implementation of sapi_nvm_sync(). May be NULL.
sapi_status_t(*) close (sapi_nvm_handle_t handle)
 Backend implementation of sapi_nvm_close(). May be NULL.

Detailed Description

Backend vtable: an integrator's implementation of the NVM service for a specific storage medium (ADR-005). Any slot may be NULL if unsupported by the backend (-> SAPI_STATUS_NOT_SUPPORTED).

Definition at line 30 of file sapi_nvm_backend.h.

Field Documentation

◆ open

sapi_status_t(*) sapi_nvm_backend_t::open(sapi_nvm_storage_t *storage, const sapi_nvm_config_t *config, sapi_nvm_handle_t *out_handle)

Backend implementation of sapi_nvm_open(). May be NULL.

Definition at line 33 of file sapi_nvm_backend.h.

◆ read

sapi_status_t(*) sapi_nvm_backend_t::read(sapi_nvm_handle_t handle, size_t offset, void *out_buffer, size_t buffer_size)

Backend implementation of sapi_nvm_read(). May be NULL.

Definition at line 37 of file sapi_nvm_backend.h.

◆ write

sapi_status_t(*) sapi_nvm_backend_t::write(sapi_nvm_handle_t handle, size_t offset, const void *buffer, size_t buffer_size)

Backend implementation of sapi_nvm_write(). May be NULL.

Definition at line 40 of file sapi_nvm_backend.h.

◆ sync

sapi_status_t(*) sapi_nvm_backend_t::sync(sapi_nvm_handle_t handle)

Backend implementation of sapi_nvm_sync(). May be NULL.

Definition at line 43 of file sapi_nvm_backend.h.

◆ close

sapi_status_t(*) sapi_nvm_backend_t::close(sapi_nvm_handle_t handle)

Backend implementation of sapi_nvm_close(). May be NULL.

Definition at line 45 of file sapi_nvm_backend.h.


The documentation for this struct was generated from the following file: