|
VSF Documented
|
#include "../vsf_espidf_cfg.h"#include <stdint.h>#include <stdbool.h>#include <string.h>#include <stdlib.h>#include "hal/vsf_hal.h"#include "service/heap/vsf_heap.h"#include "../include/esp_err.h"#include "../include/esp_partition.h"#include "../include/nvs.h"#include "../include/nvs_flash.h"Data Structures | |
| struct | __nvs_disk_header_t |
| struct | __nvs_disk_entry_t |
| struct | __nvs_kv_t |
| struct | __nvs_store_t |
| struct | __nvs_handle_ctx_t |
| struct | nvs_opaque_iterator_t |
Macros | |
| #define | __NVS_MAX_STORES 4 |
| #define | __NVS_MAX_HANDLES 16 |
| #define | __NVS_MAX_SERIAL_SIZE (64u * 1024u) |
| #define | __NVS_MAGIC 0x3153564Eu |
| #define | __NVS_VERSION 1u |
| #define | __NVS_HEADER_SIZE 20u |
| #define | __NVS_DEF_SET_INT(__suffix, __ctype, __nvs_type) |
| #define | __NVS_DEF_GET_INT(__suffix, __ctype, __nvs_type) |
Typedefs | |
| typedef struct __nvs_disk_header_t | __nvs_disk_header_t |
| typedef struct __nvs_disk_entry_t | __nvs_disk_entry_t |
| typedef struct __nvs_kv_t | __nvs_kv_t |
| typedef struct __nvs_store_t | __nvs_store_t |
| typedef struct __nvs_handle_ctx_t | __nvs_handle_ctx_t |
| typedef struct nvs_opaque_iterator_t | nvs_opaque_iterator_t |
Functions | |
| esp_err_t | nvs_flash_init (void) |
| Initialize the default NVS partition (label "nvs"). | |
| esp_err_t | nvs_flash_init_partition (const char *partition_label) |
| Initialize NVS storage for a named partition. | |
| esp_err_t | nvs_flash_init_partition_ptr (const esp_partition_t *partition) |
| Initialize NVS storage from an esp_partition_t pointer. | |
| esp_err_t | nvs_flash_deinit (void) |
| Deinitialize the default NVS partition. | |
| esp_err_t | nvs_flash_deinit_partition (const char *partition_label) |
| Deinitialize NVS storage for a named partition. | |
| esp_err_t | nvs_flash_erase (void) |
| Erase the default NVS partition (label "nvs"). | |
| esp_err_t | nvs_flash_erase_partition (const char *part_name) |
| Erase a named NVS partition. | |
| esp_err_t | nvs_flash_erase_partition_ptr (const esp_partition_t *partition) |
| Erase a partition identified by pointer. | |
| esp_err_t | nvs_open (const char *namespace_name, nvs_open_mode_t open_mode, nvs_handle_t *out_handle) |
| esp_err_t | nvs_open_from_partition (const char *part_name, const char *namespace_name, nvs_open_mode_t open_mode, nvs_handle_t *out_handle) |
| void | nvs_close (nvs_handle_t handle) |
| esp_err_t | nvs_commit (nvs_handle_t handle) |
| esp_err_t | nvs_set_str (nvs_handle_t handle, const char *key, const char *value) |
| esp_err_t | nvs_set_blob (nvs_handle_t handle, const char *key, const void *value, size_t length) |
| esp_err_t | nvs_get_str (nvs_handle_t handle, const char *key, char *out_value, size_t *length) |
| esp_err_t | nvs_get_blob (nvs_handle_t handle, const char *key, void *out_value, size_t *length) |
| esp_err_t | nvs_erase_key (nvs_handle_t handle, const char *key) |
| esp_err_t | nvs_erase_all (nvs_handle_t handle) |
| esp_err_t | nvs_get_stats (const char *part_name, nvs_stats_t *nvs_stats) |
| esp_err_t | nvs_get_used_entry_count (nvs_handle_t handle, size_t *used_entries) |
| esp_err_t | nvs_entry_find (const char *part_name, const char *namespace_name, nvs_type_t type, nvs_iterator_t *output_iterator) |
| esp_err_t | nvs_entry_next (nvs_iterator_t *iterator) |
| esp_err_t | nvs_entry_info (const nvs_iterator_t iterator, nvs_entry_info_t *out_info) |
| void | nvs_release_iterator (nvs_iterator_t iterator) |
| #define __NVS_MAX_STORES 4 |
| #define __NVS_MAX_HANDLES 16 |
| #define __NVS_MAGIC 0x3153564Eu |
| #define __NVS_VERSION 1u |
| #define __NVS_HEADER_SIZE 20u |
| #define __NVS_DEF_SET_INT | ( | __suffix, | |
| __ctype, | |||
| __nvs_type | |||
| ) |
| #define __NVS_DEF_GET_INT | ( | __suffix, | |
| __ctype, | |||
| __nvs_type | |||
| ) |
| typedef struct __nvs_disk_header_t __nvs_disk_header_t |
| typedef struct __nvs_disk_entry_t __nvs_disk_entry_t |
| typedef struct __nvs_kv_t __nvs_kv_t |
| typedef struct __nvs_store_t __nvs_store_t |
| typedef struct __nvs_handle_ctx_t __nvs_handle_ctx_t |
| typedef struct nvs_opaque_iterator_t nvs_opaque_iterator_t |
| esp_err_t nvs_flash_init | ( | void | ) |
Initialize the default NVS partition (label "nvs").
| esp_err_t nvs_flash_init_partition | ( | const char * | partition_label | ) |
Initialize NVS storage for a named partition.
| partition_label | Label of the partition (max 16 chars). |
| esp_err_t nvs_flash_init_partition_ptr | ( | const esp_partition_t * | partition | ) |
Initialize NVS storage from an esp_partition_t pointer.
| partition | Partition descriptor obtained from esp_partition API. |
| esp_err_t nvs_flash_deinit | ( | void | ) |
Deinitialize the default NVS partition.
| esp_err_t nvs_flash_deinit_partition | ( | const char * | partition_label | ) |
Deinitialize NVS storage for a named partition.
| esp_err_t nvs_flash_erase | ( | void | ) |
Erase the default NVS partition (label "nvs").
If the partition is initialised, it is first deinitialised.
| esp_err_t nvs_flash_erase_partition | ( | const char * | part_name | ) |
Erase a named NVS partition.
If the partition is initialised, it is first deinitialised.
| esp_err_t nvs_flash_erase_partition_ptr | ( | const esp_partition_t * | partition | ) |
Erase a partition identified by pointer.
If the partition is initialised, it is first deinitialised.
| esp_err_t nvs_open | ( | const char * | namespace_name, |
| nvs_open_mode_t | open_mode, | ||
| nvs_handle_t * | out_handle | ||
| ) |
| esp_err_t nvs_open_from_partition | ( | const char * | part_name, |
| const char * | namespace_name, | ||
| nvs_open_mode_t | open_mode, | ||
| nvs_handle_t * | out_handle | ||
| ) |
| void nvs_close | ( | nvs_handle_t | handle | ) |
| esp_err_t nvs_commit | ( | nvs_handle_t | handle | ) |
| esp_err_t nvs_set_str | ( | nvs_handle_t | handle, |
| const char * | key, | ||
| const char * | value | ||
| ) |
| esp_err_t nvs_set_blob | ( | nvs_handle_t | handle, |
| const char * | key, | ||
| const void * | value, | ||
| size_t | length | ||
| ) |
| esp_err_t nvs_get_str | ( | nvs_handle_t | handle, |
| const char * | key, | ||
| char * | out_value, | ||
| size_t * | length | ||
| ) |
| esp_err_t nvs_get_blob | ( | nvs_handle_t | handle, |
| const char * | key, | ||
| void * | out_value, | ||
| size_t * | length | ||
| ) |
| esp_err_t nvs_erase_key | ( | nvs_handle_t | handle, |
| const char * | key | ||
| ) |
| esp_err_t nvs_erase_all | ( | nvs_handle_t | handle | ) |
| esp_err_t nvs_get_stats | ( | const char * | part_name, |
| nvs_stats_t * | nvs_stats | ||
| ) |
| esp_err_t nvs_get_used_entry_count | ( | nvs_handle_t | handle, |
| size_t * | used_entries | ||
| ) |
| esp_err_t nvs_entry_find | ( | const char * | part_name, |
| const char * | namespace_name, | ||
| nvs_type_t | type, | ||
| nvs_iterator_t * | output_iterator | ||
| ) |
| esp_err_t nvs_entry_next | ( | nvs_iterator_t * | iterator | ) |
| esp_err_t nvs_entry_info | ( | const nvs_iterator_t | iterator, |
| nvs_entry_info_t * | out_info | ||
| ) |
| void nvs_release_iterator | ( | nvs_iterator_t | iterator | ) |