pub struct CardStatus<Ext>(/* private fields */);
Expand description

Card Status (R1)

Error and state information of an executed command

Ref PLSS_v7_10 Section 4.10.1

Implementations§

source§

impl<Ext> CardStatus<Ext>

source

pub fn out_of_range(&self) -> bool

Command’s argument was out of range

source

pub fn address_error(&self) -> bool

Misaligned address

source

pub fn block_len_error(&self) -> bool

Block len error

source

pub fn erase_seq_error(&self) -> bool

Error in the erase commands sequence

source

pub fn erase_param(&self) -> bool

Invalid selection of blocks for erase

source

pub fn wp_violation(&self) -> bool

Host attempted to write to protected area

source

pub fn card_is_locked(&self) -> bool

Card is locked by the host

source

pub fn lock_unlock_failed(&self) -> bool

Password error

source

pub fn com_crc_error(&self) -> bool

Crc check of previous command failed

source

pub fn illegal_command(&self) -> bool

Command is not legal for the card state

source

pub fn card_ecc_failed(&self) -> bool

Card internal ECC failed

source

pub fn cc_error(&self) -> bool

Internal controller error

source

pub fn error(&self) -> bool

A General error occurred

source

pub fn csd_overwrite(&self) -> bool

CSD error

source

pub fn wp_erase_skip(&self) -> bool

Some blocks where skipped while erasing

source

pub fn erase_reset(&self) -> bool

Erase sequence was aborted

source

pub fn state(&self) -> CurrentState

Current card state

source

pub fn ready_for_data(&self) -> bool

Corresponds to buffer empty signaling on the bus

source

pub fn app_cmd(&self) -> bool

The card will accept a ACMD

source§

impl CardStatus<SD>

source

pub fn ecc_disabled(&self) -> bool

Command was executed without internal ECC

source

pub fn fx_event(&self) -> bool

Extension function specific status

source

pub fn ake_seq_error(&self) -> bool

Authentication sequence error

source§

impl CardStatus<EMMC>

source

pub fn switch_error(&self) -> bool

If set, the Device did not switch to the expected mode as requested by the SWITCH command

source

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§

source§

impl<Ext> Clone for CardStatus<Ext>
where Ext: Clone,

source§

fn clone(&self) -> CardStatus<Ext>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CardStatus<SD>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<Ext> From<u32> for CardStatus<Ext>

source§

fn from(word: u32) -> CardStatus<Ext>

Converts to this type from the input type.
source§

impl<Ext> Copy for CardStatus<Ext>
where Ext: Copy,

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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.