[−][src]Struct spi_flash::id::FlashID
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: u8manufacturer_id: u8device_id_long: u16device_id_short: u8unique_id: u64Implementations
impl FlashID[src]
pub fn manufacturer_name(&self) -> Option<&'static str>[src]
Look up a manufacturer name from the JEDEC ID.
Trait Implementations
impl Clone for FlashID[src]
impl Copy for FlashID[src]
impl Debug for FlashID[src]
impl Display for FlashID[src]
Auto Trait Implementations
impl RefUnwindSafe for FlashID[src]
impl Send for FlashID[src]
impl Sync for FlashID[src]
impl Unpin for FlashID[src]
impl UnwindSafe for FlashID[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,