#[non_exhaustive]pub struct ChipInfo {
pub chip_id: u32,
pub capacity: usize,
pub sector_size: u32,
pub block_size: u32,
pub page_size: u32,
}Available on crate feature
unstable only.Expand description
Flash chip identification and geometry.
chip_id contains the manufacturer ID in bits 23:16. Geometry is fixed at
256-byte pages, 4096-byte sectors, and 64 KiB blocks; it is not probed from
the chip.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.chip_id: u32JEDEC ID with manufacturer ID in bits 23:16.
capacity: usizeJEDEC-decoded physical capacity in bytes.
See Flash::capacity.
sector_size: u32Erase sector size in bytes.
block_size: u32Erase block size in bytes.
page_size: u32Program page size in bytes.
Trait Implementations§
impl Copy for ChipInfo
impl Eq for ChipInfo
impl StructuralPartialEq for ChipInfo
Auto Trait Implementations§
impl Freeze for ChipInfo
impl RefUnwindSafe for ChipInfo
impl Send for ChipInfo
impl Sync for ChipInfo
impl Unpin for ChipInfo
impl UnsafeUnpin for ChipInfo
impl UnwindSafe for ChipInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)