SysMem.h
Go to the documentation of this file.
78 Partition createPartition(const String& name, const FSTR::ObjectBase& fstr, Partition::Type type, uint8_t subtype);
80 template <typename T> Partition createPartition(const String& name, const FSTR::ObjectBase& fstr, T subType)
Partition createPartition(const String &name, const FSTR::ObjectBase &fstr, T subType)
Definition: SysMem.h:80
#define isFlashPtr(ptr)
Simple check to determine if a pointer refers to flash memory.
Definition: Arch/Esp8266/Components/libc/include/sys/pgmspace.h:27
String getName() const override
Obtain unique device name.
Definition: SysMem.h:23
bool read(uint32_t address, void *buffer, size_t len) override
Read data from the storage device.
Definition: SysMem.h:43
size_t getBlockSize() const override
Obtain smallest allocation unit for erase operations.
Definition: SysMem.h:28
Partition createPartition(const String &name, const FSTR::ObjectBase &fstr, Partition::Type type, uint8_t subtype)
Create partition for FlashString data access.
Type
Storage type.
Definition: Components/Storage/src/include/Storage/Device.h:41
SysMem sysMem
#define F(string_literal)
Wrap a string literal stored in flash and access it using a String object.
Definition: WString.h:113
bool erase_range(uint32_t address, size_t len) override
Erase a region of storage in preparation for writing.
Definition: SysMem.h:63
void * memcpy_P(void *dest, const void *src_P, size_t length)
Partition createPartition(const Partition::Info &info)
size_t getSize() const override
Obtain addressable size of this device.
Definition: SysMem.h:33
bool write(uint32_t address, const void *data, size_t len) override
Write data to the storage device.
Definition: SysMem.h:53
Definition: FileDevice.h:23