#[repr(C)]pub struct Flags(/* private fields */);
Expand description
Represents the response flags for the R5 response in SD mode.
Implementations§
Source§impl Flags
impl Flags
Sourcepub const fn crc_error(&self) -> bool
pub const fn crc_error(&self) -> bool
Getter for crc_error field of Flags.
CRC check failed from previous command.
Sourcepub fn set_crc_error(&mut self, val: bool)
pub fn set_crc_error(&mut self, val: bool)
Setter for crc_error field of Flags.
CRC check failed from previous command.
Sourcepub const fn illegal_command(&self) -> bool
pub const fn illegal_command(&self) -> bool
Getter for illegal_command field of Flags.
Command not legal for the card state.
Sourcepub fn set_illegal_command(&mut self, val: bool)
pub fn set_illegal_command(&mut self, val: bool)
Setter for illegal_command field of Flags.
Command not legal for the card state.
Sourcepub const fn error(&self) -> bool
pub const fn error(&self) -> bool
Getter for error field of Flags.
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 Flags.
A general or unknown error occurred.
Sourcepub const fn function_number(&self) -> bool
pub const fn function_number(&self) -> bool
Getter for function_number field of Flags.
An invalid function number requested.
Sourcepub fn set_function_number(&mut self, val: bool)
pub fn set_function_number(&mut self, val: bool)
Setter for function_number field of Flags.
An invalid function number requested.
Sourcepub const fn out_of_range(&self) -> bool
pub const fn out_of_range(&self) -> bool
Getter for out_of_range field of Flags.
Command argument out of range for this card.
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 Flags.
Command argument out of range for this card.
Source§impl Flags
impl Flags
Sourcepub const fn io_current_state(&self) -> Result<IoCurrentState>
pub const fn io_current_state(&self) -> Result<IoCurrentState>
Gets the IO_CURRENT_STATE
field of Flags.
Sourcepub fn set_io_current_state(&mut self, val: IoCurrentState)
pub fn set_io_current_state(&mut self, val: IoCurrentState)
Sets the IO_CURRENT_STATE
field of Flags.