nvs_utilities.h 792 B

12345678910111213141516171819
  1. #pragma once
  2. #include "esp_err.h"
  3. #include "nvs.h"
  4. #include "trace.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. extern const char current_namespace[];
  9. extern const char settings_partition[];
  10. esp_err_t store_nvs_value_len(nvs_type_t type, const char *key, void * data, size_t data_len);
  11. esp_err_t store_nvs_value(nvs_type_t type, const char *key, void * data);
  12. esp_err_t get_nvs_value(nvs_type_t type, const char *key, void*value, const uint8_t buf_size);
  13. void * get_nvs_value_alloc(nvs_type_t type, const char *key);
  14. esp_err_t erase_nvs(const char *key);
  15. void * get_nvs_value_alloc_default(nvs_type_t type, const char *key, void * default_value, size_t blob_size);
  16. void nvs_value_set_default(nvs_type_t type, const char *key, void * default_value, size_t blob_size);
  17. #ifdef __cplusplus
  18. }
  19. #endif