Storage::PartitionTable Class Reference
#include <PartitionTable.h>
Collaboration diagram for Storage::PartitionTable:
Public Member Functions | |
PartitionTable (Device &device) | |
Partition | find (const String &name) const |
Find partition by name. More... | |
Partition | find (uint32_t address) const |
Find partition containing the given address. More... | |
Partition | findOta (uint8_t index) |
Find the n'th OTA partition. More... | |
Iterator | begin () const |
Iterator | end () const |
uint8_t | count () const |
Device & | device () const |
Partition | operator[] (unsigned index) const |
Partition search | |
Iterator | find (Partition::Type type=Partition::Type::any, uint8_t subType=Partition::SubType::any) const |
template<typename T > | |
Iterator | find (T subType) const |
Protected Member Functions | |
void | load (const esp_partition_info_t *entry, unsigned count) |
Protected Attributes | |
friend | Device |
Device & | mDevice |
std::unique_ptr< Partition::Info[]> | mEntries |
uint8_t | mCount {0} |
Constructor & Destructor Documentation
◆ PartitionTable()
|
inline |
Member Function Documentation
◆ begin()
|
inline |
◆ count()
|
inline |
◆ device()
|
inline |
◆ end()
|
inline |
◆ find() [1/4]
|
inline |
◆ find() [2/4]
template<typename T >
|
inline |
◆ find() [3/4]
Find partition by name.
- Parameters
-
Name Name to search for, case-sensitive
- Return values
-
Partition Names are unique so at most only one match
◆ find() [4/4]
|
inline |
Find partition containing the given address.
- Parameters
-
address Address to search for
- Return values
-
Partition
◆ findOta()
|
inline |
Find the n'th OTA partition.
◆ load()
|
protected |
◆ operator[]()
|
inline |
Member Data Documentation
◆ Device
|
protected |
◆ mCount
|
protected |
◆ mDevice
|
protected |
◆ mEntries
|
protected |
The documentation for this class was generated from the following file: