23#define APP_STORAGE_PROP_SETTINGS (1 << 0)
25#define APP_STORAGE_PROP_DATA (1 << 1)
28#define APP_STORAGE_TAG_LEN 4
31#define APP_STORAGE_TAG "NVRA"
34#define APP_STORAGE_HEADER_STRUCT_VERSION 1
37#define APP_STORAGE_SUCCESS 0
38#define APP_STORAGE_ERR_INVALID_ARGUMENT -1
39#define APP_STORAGE_ERR_NO_DATA_AVAILABLE -2
40#define APP_STORAGE_ERR_OVERFLOW -3
41#define APP_STORAGE_ERR_INVALID_HEADER -4
42#define APP_STORAGE_ERR_CORRUPTED -5
45#define APP_STORAGE_INITIAL_APP_DATA_VERSION 1
void app_storage_reset(void)
uint32_t app_storage_get_size(void)
int32_t app_storage_read(void *buf, uint32_t nbyte, uint32_t offset)
void app_storage_set_data_version(uint32_t data_version)
void app_storage_increment_data_version(void)
int32_t app_storage_write(const void *buf, uint32_t nbyte, uint32_t offset)
#define APP_STORAGE_TAG_LEN
Tag value.
uint16_t app_storage_get_properties(void)
uint32_t app_storage_get_data_version(void)
struct app_storage_header_s app_storage_header_t
Structure defining the header of application storage header.