[][src]Struct spi_flash::id::FlashID

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,
}

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: u64

Implementations

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.