1 #include "esp_err.h" 2 #include "nvs_partition.hpp" 3 #include "nvs_flash.h" 4 5 #ifndef NVS_PARTITION_LOOKUP_HPP_ 6 #define NVS_PARTITION_LOOKUP_HPP_ 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