ProgMem.h
Go to the documentation of this file.
65 Partition createPartition(const String& name, const void* flashPtr, size_t size, Partition::Type type,
68 template <typename T> Partition createPartition(const String& name, const void* flashPtr, size_t size, T subType)
70 return createPartition(name, flashPtr, size, Partition::Type(T::partitionType), uint8_t(subType));
76 Partition createPartition(const String& name, const FSTR::ObjectBase& fstr, Partition::Type type, uint8_t subtype)
81 template <typename T> Partition createPartition(const String& name, const FSTR::ObjectBase& fstr, T subType)
Partition createPartition(const String &name, const void *flashPtr, size_t size, Partition::Type type, uint8_t subtype)
Create partition for PROGMEM data access.
size_t getSize() const override
Obtain addressable size of this device.
Definition: ProgMem.h:32
Partition createPartition(const String &name, const FSTR::ObjectBase &fstr, Partition::Type type, uint8_t subtype)
Create partition for FlashString data access.
Definition: ProgMem.h:76
Type
Storage type.
Definition: Components/Storage/src/include/Storage/Device.h:41
#define F(string_literal)
Wrap a string literal stored in flash and access it using a String object.
Definition: WString.h:113
Partition createPartition(const String &name, const FSTR::ObjectBase &fstr, T subType)
Definition: ProgMem.h:81
size_t getBlockSize() const override
Obtain smallest allocation unit for erase operations.
Definition: ProgMem.h:27
Partition createPartition(const String &name, const void *flashPtr, size_t size, T subType)
Definition: ProgMem.h:68
bool read(uint32_t address, void *dst, size_t size) override
Read data from the storage device.
bool write(uint32_t address, const void *src, size_t size) override
Write data to the storage device.
Definition: ProgMem.h:44
Partition createPartition(const Partition::Info &info)
ProgMem progMem
String getName() const override
Obtain unique device name.
Definition: ProgMem.h:22
bool erase_range(uint32_t address, size_t size) override
Erase a region of storage in preparation for writing.
Definition: ProgMem.h:49
Definition: FileDevice.h:23
size_t size() const
Get the object data size in bytes.
Definition: ObjectBase.hpp:44