SysMem.h
Go to the documentation of this file.
#define isFlashPtr(ptr)
Simple check to determine if a pointer refers to flash memory.
Definition: Arch/Esp32/Components/libc/src/include/sys/pgmspace.h:24
void * memcpy_P(void *dest, PGM_VOID_P src_P, size_t length)
#define F(string_literal)
Wrap a string literal stored in flash and access it using a String object.
Definition: WString.h:113
constexpr const size_t size() const
Get the object data size in bytes.
Definition: ObjectBase.hpp:54
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:193
Type
Storage type.
Definition: Components/Storage/src/include/Storage/Device.h:42
Definition: PartitionTable.h:19
Partition add(const Partition::Info *info)
Add new partition using given Info.
Definition: PartitionTable.h:106
Definition: SysMem.h:74
Partition add(const String &name, const FSTR::ObjectBase &fstr, Partition::FullType type)
Add partition entry for FlashString data access.
Definition: SysMem.h:81
SysMemPartitionTable & editablePartitions()
Definition: SysMem.h:88
bool write(storage_size_t address, const void *data, size_t len) override
Write data to the storage device.
Definition: SysMem.h:53
size_t getBlockSize() const override
Obtain smallest allocation unit for erase operations.
Definition: SysMem.h:28
storage_size_t getSize() const override
Obtain addressable size of this device.
Definition: SysMem.h:33
String getName() const override
Obtain unique device name.
Definition: SysMem.h:23
bool read(storage_size_t address, void *buffer, size_t len) override
Read data from the storage device.
Definition: SysMem.h:43
bool erase_range(storage_size_t address, storage_size_t len) override
Erase a region of storage in preparation for writing.
Definition: SysMem.h:63
Definition: FileDevice.h:26
SysMem sysMem
Express both partition type and subtype together.
Definition: Partition.h:139