pub struct SDStatus { /* private fields */ }
Expand description
SD Status
Status bits related to SD Memory Card proprietary features
Ref PLSS_v7_10 Section 4.10.2 SD Status
Implementations
sourceimpl SDStatus
impl SDStatus
sourcepub fn secure_mode(&self) -> bool
pub fn secure_mode(&self) -> bool
Is the card currently in the secured mode
sourcepub fn sd_memory_card_type(&self) -> u16
pub fn sd_memory_card_type(&self) -> u16
SD Memory Card type (ROM, OTP, etc)
sourcepub fn protected_area_size(&self) -> u32
pub fn protected_area_size(&self) -> u32
SDHC / SDXC: Capacity of Protected Area in bytes
sourcepub fn speed_class(&self) -> u8
pub fn speed_class(&self) -> u8
Speed Class
sourcepub fn move_performance(&self) -> u8
pub fn move_performance(&self) -> u8
“Performance Move” indicator in 1 MB/s units
sourcepub fn allocation_unit_size(&self) -> u8
pub fn allocation_unit_size(&self) -> u8
Allocation Unit (AU) size. Lookup in PLSS v7_10 Table 4-47
sourcepub fn erase_size(&self) -> u16
pub fn erase_size(&self) -> u16
Indicates N_Erase, in units of AU
sourcepub fn erase_timeout(&self) -> u8
pub fn erase_timeout(&self) -> u8
Indicates T_Erase / Erase Timeout (s)
sourcepub fn video_speed_class(&self) -> u8
pub fn video_speed_class(&self) -> u8
Video speed class
sourcepub fn app_perf_class(&self) -> u8
pub fn app_perf_class(&self) -> u8
Application Performance Class
sourcepub fn discard_support(&self) -> bool
pub fn discard_support(&self) -> bool
Discard Support
Trait Implementations
impl Copy for SDStatus
Auto Trait Implementations
impl RefUnwindSafe for SDStatus
impl Send for SDStatus
impl Sync for SDStatus
impl Unpin for SDStatus
impl UnwindSafe for SDStatus
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