pub trait FlashParameters {
const PAGE_SIZE: usize;
const SECTOR_SIZE: usize;
const BLOCK_SIZE: usize;
const CHIP_SIZE: usize;
}
Expand description
Trait for defining the size of a flash.
Required Associated Constants§
Sourceconst SECTOR_SIZE: usize
const SECTOR_SIZE: usize
The sector erase size in bytes.
Sourceconst BLOCK_SIZE: usize
const BLOCK_SIZE: usize
The block erase size in bytes.
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.