Struct sdio_host::emmc::CardStatus
source · [−]pub struct CardStatus<Ext>(_, _);
Expand description
Card Status (R1)
Error and state information of an executed command
Ref PLSS_v7_10 Section 4.10.1
Implementations
sourceimpl<Ext> CardStatus<Ext>
impl<Ext> CardStatus<Ext>
sourcepub fn out_of_range(&self) -> bool
pub fn out_of_range(&self) -> bool
Command’s argument was out of range
sourcepub fn address_error(&self) -> bool
pub fn address_error(&self) -> bool
Misaligned address
sourcepub fn block_len_error(&self) -> bool
pub fn block_len_error(&self) -> bool
Block len error
sourcepub fn erase_seq_error(&self) -> bool
pub fn erase_seq_error(&self) -> bool
Error in the erase commands sequence
sourcepub fn erase_param(&self) -> bool
pub fn erase_param(&self) -> bool
Invalid selection of blocks for erase
sourcepub fn wp_violation(&self) -> bool
pub fn wp_violation(&self) -> bool
Host attempted to write to protected area
sourcepub fn card_is_locked(&self) -> bool
pub fn card_is_locked(&self) -> bool
Card is locked by the host
sourcepub fn lock_unlock_failed(&self) -> bool
pub fn lock_unlock_failed(&self) -> bool
Password error
sourcepub fn com_crc_error(&self) -> bool
pub fn com_crc_error(&self) -> bool
Crc check of previous command failed
sourcepub fn illegal_command(&self) -> bool
pub fn illegal_command(&self) -> bool
Command is not legal for the card state
sourcepub fn card_ecc_failed(&self) -> bool
pub fn card_ecc_failed(&self) -> bool
Card internal ECC failed
sourcepub fn csd_overwrite(&self) -> bool
pub fn csd_overwrite(&self) -> bool
CSD error
sourcepub fn wp_erase_skip(&self) -> bool
pub fn wp_erase_skip(&self) -> bool
Some blocks where skipped while erasing
sourcepub fn erase_reset(&self) -> bool
pub fn erase_reset(&self) -> bool
Erase sequence was aborted
sourcepub fn state(&self) -> CurrentState
pub fn state(&self) -> CurrentState
Current card state
sourcepub fn ready_for_data(&self) -> bool
pub fn ready_for_data(&self) -> bool
Corresponds to buffer empty signaling on the bus
sourceimpl CardStatus<SD>
impl CardStatus<SD>
sourcepub fn ecc_disabled(&self) -> bool
pub fn ecc_disabled(&self) -> bool
Command was executed without internal ECC
sourcepub fn ake_seq_error(&self) -> bool
pub fn ake_seq_error(&self) -> bool
Authentication sequence error
sourceimpl CardStatus<EMMC>
impl CardStatus<EMMC>
sourcepub fn switch_error(&self) -> bool
pub fn switch_error(&self) -> bool
If set, the Device did not switch to the expected mode as requested by the SWITCH command
sourcepub fn exception_event(&self) -> bool
pub fn exception_event(&self) -> bool
If set, one of the exception bits in field EXCEPTION_EVENTS_STATUS was set to indicate some exception has occurred. Host should check that field to discover the exception that has occurred to understand what further actions are needed in order to clear this bit.
Trait Implementations
sourceimpl<Ext: Clone> Clone for CardStatus<Ext>
impl<Ext: Clone> Clone for CardStatus<Ext>
sourcefn clone(&self) -> CardStatus<Ext>
fn clone(&self) -> CardStatus<Ext>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CardStatus<EMMC>
impl Debug for CardStatus<EMMC>
sourceimpl Debug for CardStatus<SD>
impl Debug for CardStatus<SD>
sourceimpl<Ext> From<u32> for CardStatus<Ext>
impl<Ext> From<u32> for CardStatus<Ext>
impl<Ext: Copy> Copy for CardStatus<Ext>
Auto Trait Implementations
impl<Ext> RefUnwindSafe for CardStatus<Ext> where
Ext: RefUnwindSafe,
impl<Ext> Send for CardStatus<Ext> where
Ext: Send,
impl<Ext> Sync for CardStatus<Ext> where
Ext: Sync,
impl<Ext> Unpin for CardStatus<Ext> where
Ext: Unpin,
impl<Ext> UnwindSafe for CardStatus<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