SpiFlash.h
Go to the documentation of this file.
bool write(uint32_t address, const void *src, size_t size) override
Write data to the storage device.
Type
Storage type.
Definition: Components/Storage/src/include/Storage/Device.h:41
SpiFlash * spiFlash
Represents a storage device (e.g. flash memory)
Definition: Components/Storage/src/include/Storage/Device.h:32
Type getType() const override
Obtain device type.
Definition: SpiFlash.h:28
size_t getBlockSize() const override
Obtain smallest allocation unit for erase operations.
bool read(uint32_t address, void *dst, size_t size) override
Read data from the storage device.
Definition: FileDevice.h:23
bool erase_range(uint32_t address, size_t size) override
Erase a region of storage in preparation for writing.