Struct FlashStorage Copy item path Source pub struct FlashStorage<'d> { }Expand description Flash storage abstraction.
Flash word size in bytes.
Flash sector size in bytes.
Create a new flash storage instance.
§ Panics
Panics if called more than once.
Formats the value using the given formatter.
Read more Errors returned by this NOR flash.
The minumum number of bytes the storage peripheral can write
The minumum number of bytes the storage peripheral can erase
If power is lost during write, the contents of the written words are undefined,
but the rest of the page is guaranteed to be unchanged.
It is not allowed to write to the same word twice.
Read more Erase the given storage range, clearing all data within
[from..to].
The given range will contain all 1s afterwards.
Read more The minumum number of bytes the storage peripheral can read
Read a slice of data from the storage peripheral, starting the read
operation at the given address offset, and reading
bytes.len() bytes.
Read more The capacity of the peripheral in bytes.
The SPI flash size is configured by writing a field in the software
bootloader image header. This is done during flashing in espflash /
esptool.
An enumeration of storage errors
Read a slice of data from the storage peripheral, starting the read
operation at the given address offset, and reading
bytes.len() bytes.
Read more Write a slice of data to the storage peripheral, starting the write
operation at the given address offset (between 0 and
self.capacity()).
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
[From]<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.