pub struct OCR<Ext>(_, _);
Expand description
Operation Conditions Register (OCR)
R3
Implementations
sourceimpl OCR<SD>
impl OCR<SD>
sourcepub fn voltage_window_mv(&self) -> Option<(u16, u16)>
pub fn voltage_window_mv(&self) -> Option<(u16, u16)>
VDD voltage window.
sourcepub fn v18_allowed(&self) -> bool
pub fn v18_allowed(&self) -> bool
Switching to 1.8V Accepted (S18A). Only UHS-I cards support this bit
sourcepub fn uhs2_card_status(&self) -> bool
pub fn uhs2_card_status(&self) -> bool
Indicates whether the card supports UHS-II Interface
sourcepub fn high_capacity(&self) -> bool
pub fn high_capacity(&self) -> bool
Card Capacity Status (CCS)
For SD cards, this is true for SDHC/SDXC/SDUC, false for SDSC
sourceimpl OCR<EMMC>
impl OCR<EMMC>
sourcepub fn is_dual_voltage_card(&self) -> bool
pub fn is_dual_voltage_card(&self) -> bool
OCR [7]. False for High Voltage, true for Dual voltage
sourcepub fn access_mode(&self) -> u8
pub fn access_mode(&self) -> u8
OCR [30:29]. Access mode. Defines the addressing mode used between host and card
0b00: byte mode 0b10: sector mode
Trait Implementations
impl<Ext: Copy> Copy for OCR<Ext>
Auto Trait Implementations
impl<Ext> RefUnwindSafe for OCR<Ext> where
Ext: RefUnwindSafe,
impl<Ext> Send for OCR<Ext> where
Ext: Send,
impl<Ext> Sync for OCR<Ext> where
Ext: Sync,
impl<Ext> Unpin for OCR<Ext> where
Ext: Unpin,
impl<Ext> UnwindSafe for OCR<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