Wirepas SDK
|
Application persistent library. It wraps the access of the application persistent area if it exists.
This library access the app persistent area in a basic way. It is mainly designed to access in read mode as many time as app want but written only very seldomly. Ideally, memory area is written first on the assembly line. Here are some implementations points:
Definition in file app_persistent.h.
Go to the source code of this file.
Functions | |
app_persistent_res_e | App_Persistent_init (void) |
Initialize app persistent module. More... | |
app_persistent_res_e | App_Persistent_write (uint8_t *data, size_t len) |
Write to persistent. More... | |
app_persistent_res_e | App_Persistent_read (uint8_t *data, size_t len) |
Read from persistent. More... | |
Enumerations | |
enum | app_persistent_res_e { APP_PERSISTENT_RES_OK = 0, APP_PERSISTENT_RES_NO_AREA = 1, APP_PERSISTENT_RES_UNINITIALIZED = 2, APP_PERSISTENT_RES_TOO_BIG = 3, APP_PERSISTENT_RES_INVALID_CONTENT = 4, APP_PERSISTENT_RES_ACCESS_TIMEOUT = 5, APP_PERSISTENT_RES_FLASH_ERROR = 6 } |
List of return code. More... | |
app_persistent_res_e App_Persistent_init | ( | void | ) |
Initialize app persistent module.
app_persistent_res_e App_Persistent_read | ( | uint8_t * | data, |
size_t | len | ||
) |
Read from persistent.
data | Pointer to store read data |
len | Length of data to read |
app_persistent_res_e App_Persistent_write | ( | uint8_t * | data, |
size_t | len | ||
) |
Write to persistent.
data | Pointer to the data to write |
len | Length of data to write |
enum app_persistent_res_e |
List of return code.
Definition at line 35 of file app_persistent.h.