pub struct FlashInfo {
pub id: u32,
pub page_size: u16,
pub sector_size: u32,
pub page_count: u32,
pub sector_count: u32,
pub block_size: u32,
pub block_count: u32,
pub capacity_kb: u32,
}Expand description
Information about the flash memory.
Fields§
§id: u32The chip ID.
page_size: u16The page size (and alignment).
sector_size: u32The sector size (and alignment).
page_count: u32The number of pages in a sector.
sector_count: u32The number of sectors in a block.
block_size: u32The size of a block.
block_count: u32The number of blocks in the memory.
capacity_kb: u32The total memory capacity in KiB.
Trait Implementations§
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