• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef NVS_PARTITION_LOOKUP_HPP_
2 #define NVS_PARTITION_LOOKUP_HPP_
3 
4 #include "esp_err.h"
5 #include "nvs_partition.hpp"
6 #include "nvs_flash.h"
7 
8 namespace nvs {
9 
10 namespace partition_lookup {
11 
12 esp_err_t lookup_nvs_partition(const char* label, NVSPartition **p);
13 
14 #ifdef CONFIG_NVS_ENCRYPTION
15 esp_err_t lookup_nvs_encrypted_partition(const char* label, nvs_sec_cfg_t* cfg, NVSPartition **p);
16 #endif // CONFIG_NVS_ENCRYPTION
17 
18 } // partition_lookup
19 
20 } // nvs
21 
22 #endif // NVS_PARTITION_LOOKUP_HPP_
23