pub struct CID<Ext> { /* private fields */ }
Expand description
Card Identification Register (CID)
R2
Implementations
sourceimpl<Ext> CID<Ext>
impl<Ext> CID<Ext>
sourcepub fn manufacturer_id(&self) -> u8
pub fn manufacturer_id(&self) -> u8
Manufacturer ID
sourceimpl CID<EMMC>
impl CID<EMMC>
sourcepub fn device_type(&self) -> DeviceType
pub fn device_type(&self) -> DeviceType
CBX field, indicating device type.
sourcepub fn oem_application_id(&self) -> u8
pub fn oem_application_id(&self) -> u8
OID field, indicating OEM/Application ID.
The OID number is controlled, defined and allocated to an eMMC manufacturer by JEDEC.
sourcepub fn product_name(&self) -> &str
pub fn product_name(&self) -> &str
PNM field, indicating product name.
sourcepub fn product_revision(&self) -> (u8, u8)
pub fn product_revision(&self) -> (u8, u8)
PRV field, indicating product revision.
The return value is a (major, minor) version tuple.
sourcepub fn manufacturing_date(&self) -> (u8, u8)
pub fn manufacturing_date(&self) -> (u8, u8)
MDT field, indicating manufacturing date.
The return value is a (month, year) tuple where the month code has 1 = January and the year
is an offset from either 1997 or 2013 depending on the value of EXT_CSD_REV
.
Trait Implementations
impl<Ext: Copy> Copy for CID<Ext>
Auto Trait Implementations
impl<Ext> RefUnwindSafe for CID<Ext> where
Ext: RefUnwindSafe,
impl<Ext> Send for CID<Ext> where
Ext: Send,
impl<Ext> Sync for CID<Ext> where
Ext: Sync,
impl<Ext> Unpin for CID<Ext> where
Ext: Unpin,
impl<Ext> UnwindSafe for CID<Ext> where
Ext: UnwindSafe,
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