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
52
58
67app_persistent_res_e App_Persistent_write(uint8_t * data, size_t len);
68
69
79app_persistent_res_e App_Persistent_read(uint8_t * data, size_t len);
80
81#endif //_APP_PERSISTENT_H_
app_persistent_res_e App_Persistent_read(uint8_t *data, size_t len)
Read from persistent.
app_persistent_res_e App_Persistent_init(void)
Initialize app persistent module.
app_persistent_res_e
List of return code.
@ APP_PERSISTENT_RES_NO_AREA
@ APP_PERSISTENT_RES_FLASH_ERROR
@ APP_PERSISTENT_RES_ACCESS_TIMEOUT
@ APP_PERSISTENT_RES_OK
@ APP_PERSISTENT_RES_TOO_BIG
@ APP_PERSISTENT_RES_UNINITIALIZED
@ APP_PERSISTENT_RES_INVALID_CONTENT
app_persistent_res_e App_Persistent_write(uint8_t *data, size_t len)
Write to persistent.