Storage::ProgMem::ProgMemPartitionTable Class Reference

#include <ProgMem.h>

Inheritance diagram for Storage::ProgMem::ProgMemPartitionTable:
Collaboration diagram for Storage::ProgMem::ProgMemPartitionTable:

Public Member Functions

Partition add (const String &name, const void *flashPtr, size_t size, Partition::FullType type)
 Add partition entry for PROGMEM data access. More...
 
Partition add (const String &name, const FSTR::ObjectBase &fstr, Partition::FullType type)
 Add partition entry for FlashString data access. More...
 
- Public Member Functions inherited from Storage::PartitionTable
 PartitionTable (Device &device)
 
 operator bool () const
 
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) const
 Find the n'th OTA partition. More...
 
Iterator begin () const
 
Iterator end () const
 
Devicedevice () const
 
Partition add (const Partition::Info *info)
 Add new partition using given Info. More...
 
template<typename... Args>
Partition add (const String &name, Partition::FullType type, Args... args)
 
void clear ()
 
Iterator find (Partition::Type type=Partition::Type::any, uint8_t subType=Partition::SubType::any) const
 Find partitions based on one or more parameters. More...
 
Iterator find (Partition::FullType fullType) const
 

Additional Inherited Members

- Protected Member Functions inherited from Storage::PartitionTable
void load (const esp_partition_info_t *entry, unsigned count)
 
- Protected Attributes inherited from Storage::PartitionTable
friend Device
 
friend Iterator
 
DevicemDevice
 
Partition::Info::OwnedList mEntries
 

Member Function Documentation

◆ add() [1/2]

Partition Storage::ProgMem::ProgMemPartitionTable::add ( const String name,
const FSTR::ObjectBase fstr,
Partition::FullType  type 
)
inline

Add partition entry for FlashString data access.

◆ add() [2/2]

Partition Storage::ProgMem::ProgMemPartitionTable::add ( const String name,
const void *  flashPtr,
size_t  size,
Partition::FullType  type 
)

Add partition entry for PROGMEM data access.

Parameters
nameName for partition
flashPtrPROGMEM pointer
sizeSize of PROGMEM data
typePartition type and subtype
Return values
PartitionInvalid if data is not progmem

The documentation for this class was generated from the following file: