ProgMem.h
Go to the documentation of this file.
#define F(string_literal)
Wrap a string literal stored in flash and access it using a String object.
Definition: WString.h:113
size_t size() const
Get the object data size in bytes.
Definition: ObjectBase.hpp:44
Represents a storage device (e.g. flash memory)
Definition: Components/Storage/src/include/Storage/Device.h:34
PartitionTable mPartitions
Definition: Components/Storage/src/include/Storage/Device.h:188
Type
Storage type.
Definition: Components/Storage/src/include/Storage/Device.h:42
Definition: PartitionTable.h:19
Definition: ProgMem.h:55
Partition add(const String &name, const void *flashPtr, size_t size, Partition::FullType type)
Add partition entry for PROGMEM data access.
Partition add(const String &name, const FSTR::ObjectBase &fstr, Partition::FullType type)
Add partition entry for FlashString data access.
Definition: ProgMem.h:70
storage_size_t getSize() const override
Obtain addressable size of this device.
Definition: ProgMem.h:32
size_t getBlockSize() const override
Obtain smallest allocation unit for erase operations.
Definition: ProgMem.h:27
String getName() const override
Obtain unique device name.
Definition: ProgMem.h:22
bool erase_range(storage_size_t address, storage_size_t size) override
Erase a region of storage in preparation for writing.
Definition: ProgMem.h:49
ProgMemPartitionTable & editablePartitions()
Definition: ProgMem.h:76
bool write(storage_size_t address, const void *src, size_t size) override
Write data to the storage device.
Definition: ProgMem.h:44
bool read(storage_size_t address, void *dst, size_t size) override
Read data from the storage device.
Definition: FileDevice.h:26
ProgMem progMem
Express both partition type and subtype together.
Definition: Partition.h:139