pub struct FlashInfo {
pub sector_info: Option<&'static [SectorInfo]>,
pub sector_count: u32,
pub sector_size: u32,
pub page_size: u32,
pub program_unit: u32,
pub erased_value: u8,
}Expand description
Provides information about the flash memory device. It is assumed that this information is static for a given device.
Fields§
§sector_info: Option<&'static [SectorInfo]>A slice containing the sector layout information.
If None, the sectors are of uniform size.
sector_count: u32The total number of sectors.
sector_size: u32The size of a single sector in bytes if the sectors are uniform.
If sector_info is used, this field is typically 0.
page_size: u32The optimal programming page size in bytes.
program_unit: u32The smallest programmable unit in bytes.
erased_value: u8The value of memory after it has been erased (usually 0xFF).
Trait Implementations§
impl Eq for FlashInfo
impl StructuralPartialEq for FlashInfo
Auto Trait Implementations§
impl Freeze for FlashInfo
impl RefUnwindSafe for FlashInfo
impl Send for FlashInfo
impl Sync for FlashInfo
impl Unpin for FlashInfo
impl UnwindSafe for FlashInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more