Wirepas SDK
wms_storage.h
Go to the documentation of this file.
1 /* Copyright 2017 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
18 #ifndef APP_LIB_STORAGE_H_
19 #define APP_LIB_STORAGE_H_
20 
21 #include <stdlib.h>
22 #include <stdint.h>
23 #include <stdbool.h>
24 
25 #include "wms_app.h"
26 
28 #define APP_LIB_STORAGE_NAME 0x7713d6af
29 
30 
31 #define APP_LIB_STORAGE_VERSION 0x200
32 
46 typedef app_res_e
47  (*app_lib_storage_write_persistent_f)(const void * bytes,
48  size_t num_bytes);
49 
59 typedef app_res_e
61  size_t num_bytes);
62 
71 typedef size_t
73 
77 typedef struct
78 {
83 
84 #endif /* APP_LIB_STORAGE_H_ */
app_lib_storage_t::getPersistentMaxSize
app_lib_storage_get_persistent_max_size_f getPersistentMaxSize
Definition: wms_storage.h:81
app_lib_storage_read_persistent_f
app_res_e(* app_lib_storage_read_persistent_f)(void *bytes, size_t num_bytes)
Read data written to persistent storage.
Definition: wms_storage.h:60
app_res_e
app_res_e
Definition: wms_app.h:201
wms_app.h
app_lib_storage_t::readPersistent
app_lib_storage_read_persistent_f readPersistent
Definition: wms_storage.h:80
app_lib_storage_write_persistent_f
app_res_e(* app_lib_storage_write_persistent_f)(const void *bytes, size_t num_bytes)
Write data to persistent storage.
Definition: wms_storage.h:47
app_lib_storage_get_persistent_max_size_f
size_t(* app_lib_storage_get_persistent_max_size_f)(void)
Get persistent maximum size.
Definition: wms_storage.h:72
app_lib_storage_t
Definition: wms_storage.h:77
app_lib_storage_t::writePersistent
app_lib_storage_write_persistent_f writePersistent
Definition: wms_storage.h:79