ESP-IDF
Select one of the symbols to view example projects that use it.
Symbol previews are coming soon...
Outline
#define NVS_PARTITION_MANAGER_HPP_
#include "nvs_handle_simple.hpp"
#include "nvs_storage.hpp"
#include "nvs_partition.hpp"
#include "nvs_memory_management.hpp"
#include "nvs_flash.h"
nvs
NVSPartitionManager
public:
~NVSPartitionManager()
get_instance()
init_partition(const char *)
init_custom(Partition *, uint32_t, uint32_t)
secure_init_partition(const char *, nvs_sec_cfg_t *)
deinit_partition(const char *)
lookup_storage_from_name(const char *)
open_handle(const char *, const char *, nvs_open_mode_t, NVSHandleSimple **)
close_handle(NVSHandleSimple *)
open_handles_size()
protected:
NVSPartitionManager()
instance
nvs_handles
nvs_storage_list
nvs_partition_list
Files
loading...
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
components/nvs_flash/src/nvs_partition_manager.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* ... */
#ifndef
NVS_PARTITION_MANAGER_HPP_
#define
NVS_PARTITION_MANAGER_HPP_
#include
"
nvs_handle_simple.hpp"
#include
"
nvs_storage.hpp"
#include
"
nvs_partition.hpp"
#include
"
nvs_memory_management.hpp"
#include
"
nvs_flash.h"
5 includes
namespace
nvs
{
class
NVSPartitionManager
:
public
ExceptionlessAllocatable
{
public
:
virtual
~
NVSPartitionManager
(
)
{
}
static
NVSPartitionManager
*
get_instance
(
)
;
esp_err_t
init_partition
(
const
char
*
partition_label
)
;
esp_err_t
init_custom
(
Partition
*
partition
,
uint32_t
baseSector
,
uint32_t
sectorCount
)
;
esp_err_t
secure_init_partition
(
const
char
*
part_name
,
nvs_sec_cfg_t
*
cfg
)
;
esp_err_t
deinit_partition
(
const
char
*
partition_label
)
;
Storage
*
lookup_storage_from_name
(
const
char
*
name
)
;
esp_err_t
open_handle
(
const
char
*
part_name
,
const
char
*
ns_name
,
nvs_open_mode_t
open_mode
,
NVSHandleSimple
*
*
handle
)
;
esp_err_t
close_handle
(
NVSHandleSimple
*
handle
)
;
size_t
open_handles_size
(
)
;
...
protected
:
NVSPartitionManager
(
)
{
}
static
NVSPartitionManager
*
instance
;
intrusive_list
<
NVSHandleSimple
>
nvs_handles
;
intrusive_list
<
nvs
::
Storage
>
nvs_storage_list
;
intrusive_list
<
nvs
::
NVSPartition
>
nvs_partition_list
;
...
}
{...}
;
}
{...}
// nvs
/* ... */
#endif
// NVS_PARTITION_MANAGER_HPP_
Details
Show:
from
Types:
Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.
nvs::NVSPartitionManager::get_instance()
nvs::NVSPartitionManager::lookup_storage_from_name()
nvs::NVSPartitionManager::open_handle()
nvs::NVSPartitionManager::init_custom()
nvs::NVSPartitionManager::init_partition()
nvs::NVSPartitionManager::secure_init_partition()
nvs::NVSPartitionManager::deinit_partition()
nvs::NVSPartitionManager::close_handle()
nvs::NVSPartitionManager::~NVSPartitionManager()
nvs::NVSPartitionManager::open_handles_size()
nvs::NVSPartitionManager::NVSPartitionManager()
esp_err_t
nvs::NVSHandleSimple
intrusive_list
nvs::Storage
nvs::NVSPartition
nvs::NVSPartitionManager
nvs::Partition
ExceptionlessAllocatable
nvs::NVSPartitionManager::secure_init_partition()::part_name
nvs::NVSPartitionManager::init_partition()::partition_label
nvs::NVSPartitionManager::secure_init_partition()::cfg
nvs::NVSPartitionManager::open_handle()::open_mode
nvs::NVSPartitionManager::open_handle()::handle
nvs::NVSPartitionManager::instance
nvs::NVSPartitionManager::init_custom()::partition
nvs::NVSPartitionManager::init_custom()::baseSector
nvs::NVSPartitionManager::init_custom()::sectorCount
nvs::NVSPartitionManager::deinit_partition()::partition_label
nvs::NVSPartitionManager::open_handle()::part_name
nvs::NVSPartitionManager::open_handle()::ns_name
nvs::NVSPartitionManager::lookup_storage_from_name()::name
nvs::NVSPartitionManager::close_handle()::handle
NVS_PARTITION_MANAGER_HPP_
nvs::NVSPartitionManager::nvs_handles
nvs::NVSPartitionManager::nvs_storage_list
nvs::NVSPartitionManager::nvs_partition_list
nvs_sec_cfg_t
nvs_open_mode_t