pub struct FlashID {
pub manufacturer_bank: u8,
pub manufacturer_id: u8,
pub device_id_long: u16,
pub device_id_short: u8,
pub unique_id: u64,
}
Expand description
Store the ID read off an SPI flash memory.
The manufacturer ID and (long, 16-bit) device ID are read using the 0x9F command,
and the number of 0x7F continuation code bytes present before the manufacturer ID
is stored as manufacturer_bank
.
The 64-bit unique ID is read using the 0x4B command.
Fields
manufacturer_bank: u8
manufacturer_id: u8
device_id_long: u16
device_id_short: u8
unique_id: u64
Implementations
Trait Implementations
impl Copy for FlashID
Auto Trait Implementations
impl RefUnwindSafe for FlashID
impl Send for FlashID
impl Sync for FlashID
impl Unpin for FlashID
impl UnwindSafe for FlashID
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more