#[repr(C)]pub struct R2(/* private fields */);
Expand description
Represents the response to the SEND_STATUS
command in SPI mode.
Implementations§
Source§impl R2
impl R2
Sourcepub const fn out_of_range(&self) -> bool
pub const fn out_of_range(&self) -> bool
Getter for out_of_range field of R2.
An out-of-range access was attempted.
Sourcepub fn set_out_of_range(&mut self, val: bool)
pub fn set_out_of_range(&mut self, val: bool)
Setter for out_of_range field of R2.
An out-of-range access was attempted.
Sourcepub const fn erase_param(&self) -> bool
pub const fn erase_param(&self) -> bool
Getter for erase_param field of R2.
An invalid sector for erase.
Sourcepub fn set_erase_param(&mut self, val: bool)
pub fn set_erase_param(&mut self, val: bool)
Setter for erase_param field of R2.
An invalid sector for erase.
Sourcepub const fn wp_violation(&self) -> bool
pub const fn wp_violation(&self) -> bool
Getter for wp_violation field of R2.
An attempt was made to write to a write-protected block.
Sourcepub fn set_wp_violation(&mut self, val: bool)
pub fn set_wp_violation(&mut self, val: bool)
Setter for wp_violation field of R2.
An attempt was made to write to a write-protected block.
Sourcepub const fn card_ecc_failed(&self) -> bool
pub const fn card_ecc_failed(&self) -> bool
Getter for card_ecc_failed field of R2.
Internal card ECC failed to correct data error.
Sourcepub fn set_card_ecc_failed(&mut self, val: bool)
pub fn set_card_ecc_failed(&mut self, val: bool)
Setter for card_ecc_failed field of R2.
Internal card ECC failed to correct data error.
Sourcepub const fn cc_error(&self) -> bool
pub const fn cc_error(&self) -> bool
Getter for cc_error field of R2.
Internal card control error.
Sourcepub fn set_cc_error(&mut self, val: bool)
pub fn set_cc_error(&mut self, val: bool)
Setter for cc_error field of R2.
Internal card control error.
Sourcepub const fn error(&self) -> bool
pub const fn error(&self) -> bool
Getter for error field of R2.
A general or unknown error occurred.
Sourcepub fn set_error(&mut self, val: bool)
pub fn set_error(&mut self, val: bool)
Setter for error field of R2.
A general or unknown error occurred.
Sourcepub const fn lock_failed(&self) -> bool
pub const fn lock_failed(&self) -> bool
Getter for lock_failed field of R2.
Card lock/unlock failed, or write-protect erase skip
Sourcepub fn set_lock_failed(&mut self, val: bool)
pub fn set_lock_failed(&mut self, val: bool)
Setter for lock_failed field of R2.
Card lock/unlock failed, or write-protect erase skip
Sourcepub const fn card_locked(&self) -> bool
pub const fn card_locked(&self) -> bool
Getter for card_locked field of R2.
SD card is locked.
Sourcepub fn set_card_locked(&mut self, val: bool)
pub fn set_card_locked(&mut self, val: bool)
Setter for card_locked field of R2.
SD card is locked.
Source§impl R2
impl R2
Sourcepub const fn response_type(&self) -> ResponseType
pub const fn response_type(&self) -> ResponseType
Gets the response type for the R2.
Sourcepub const fn response_mode(&self) -> ResponseMode
pub const fn response_mode(&self) -> ResponseMode
Gets the response mode for the R2.