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: u8manufacturer_id: u8device_id_long: u16device_id_short: u8unique_id: u64

Implementations

Look up a manufacturer name from the JEDEC ID.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.