Wirepas SDK
app_persistent.h
Go to the documentation of this file.
1 /* Copyright 2021 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
26 #ifndef _APP_PERSISTENT_H_
27 #define _APP_PERSISTENT_H_
28 
29 #include <stdlib.h>
30 #include <stdint.h>
31 
35 typedef enum
36 {
52 
58 
67 app_persistent_res_e App_Persistent_write(uint8_t * data, size_t len);
68 
69 
79 app_persistent_res_e App_Persistent_read(uint8_t * data, size_t len);
80 
81 #endif //_APP_PERSISTENT_H_
APP_PERSISTENT_RES_FLASH_ERROR
@ APP_PERSISTENT_RES_FLASH_ERROR
Definition: app_persistent.h:50
App_Persistent_init
app_persistent_res_e App_Persistent_init(void)
Initialize app persistent module.
App_Persistent_write
app_persistent_res_e App_Persistent_write(uint8_t *data, size_t len)
Write to persistent.
APP_PERSISTENT_RES_INVALID_CONTENT
@ APP_PERSISTENT_RES_INVALID_CONTENT
Definition: app_persistent.h:46
APP_PERSISTENT_RES_OK
@ APP_PERSISTENT_RES_OK
Definition: app_persistent.h:38
app_persistent_res_e
app_persistent_res_e
List of return code.
Definition: app_persistent.h:35
APP_PERSISTENT_RES_ACCESS_TIMEOUT
@ APP_PERSISTENT_RES_ACCESS_TIMEOUT
Definition: app_persistent.h:48
APP_PERSISTENT_RES_TOO_BIG
@ APP_PERSISTENT_RES_TOO_BIG
Definition: app_persistent.h:44
APP_PERSISTENT_RES_NO_AREA
@ APP_PERSISTENT_RES_NO_AREA
Definition: app_persistent.h:40
APP_PERSISTENT_RES_UNINITIALIZED
@ APP_PERSISTENT_RES_UNINITIALIZED
Definition: app_persistent.h:42
App_Persistent_read
app_persistent_res_e App_Persistent_read(uint8_t *data, size_t len)
Read from persistent.