pub struct Identification { /* private fields */ }
Expand description
3-Byte JEDEC manufacturer and device identification.
Implementations§
Source§impl Identification
impl Identification
Sourcepub fn from_jedec_id(buf: &[u8]) -> Identification
pub fn from_jedec_id(buf: &[u8]) -> Identification
Build an Identification from JEDEC ID bytes.
Sourcepub fn continuation_count(&self) -> u8
pub fn continuation_count(&self) -> u8
Number of continuation codes in this chip ID.
For example the ARM Ltd identifier is 7F 7F 7F 7F 3B
(5 bytes), so
the continuation count is 4.
Trait Implementations§
Source§impl Debug for Identification
impl Debug for Identification
Auto Trait Implementations§
impl Freeze for Identification
impl RefUnwindSafe for Identification
impl Send for Identification
impl Sync for Identification
impl Unpin for Identification
impl UnwindSafe for Identification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more