pub trait Flash: NorFlash + ReadNorFlash {
const BLOCK_SIZE: usize;
const ERASE_VALUE: u8 = 255u8;
}
Expand description
Extension of the embedded-storage flash type information with block size and erase value.
Required Associated Constants§
Sourceconst BLOCK_SIZE: usize
const BLOCK_SIZE: usize
The block size that should be used when writing to flash. For most builtin flashes, this is the same as the erase size of the flash, but for external QSPI flash modules, this can be lower.
Provided Associated Constants§
Sourceconst ERASE_VALUE: u8 = 255u8
const ERASE_VALUE: u8 = 255u8
The erase value of the flash. Typically the default of 0xFF is used, but some flashes use a different value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.