#[repr(C)]pub struct R4(pub [u8; 5]);
Expand description
Represents the response to the IO_SEND_OP_COND
command in SPI mode.
Tuple Fields§
§0: [u8; 5]
Implementations§
Source§impl R4
impl R4
Sourcepub const fn response_type(&self) -> ResponseType
pub const fn response_type(&self) -> ResponseType
Gets the response type for the R4.
Sourcepub const fn response_mode(&self) -> ResponseMode
pub const fn response_mode(&self) -> ResponseMode
Gets the response mode for the R4.
Source§impl R4
impl R4
Sourcepub const fn is_card_ready(&self) -> bool
pub const fn is_card_ready(&self) -> bool
Gets whether the card is ready to operate after initialization.
Sourcepub fn set_is_card_ready(&mut self, val: bool)
pub fn set_is_card_ready(&mut self, val: bool)
Sets whether the card is ready to operate after initialization.
Sourcepub const fn is_memory_present(&self) -> bool
pub const fn is_memory_present(&self) -> bool
Gets whether the SD card has memory, or is I/O only.
Sourcepub fn set_is_memory_present(&mut self, val: bool)
pub fn set_is_memory_present(&mut self, val: bool)
Sets whether the SD card has memory, or is I/O only.
Sourcepub const fn num_io_functions(&self) -> usize
pub const fn num_io_functions(&self) -> usize
Gets the number of I/O functions supported by the card.
Sourcepub fn set_num_io_functions(&mut self, val: usize)
pub fn set_num_io_functions(&mut self, val: usize)
Sets the number of I/O functions supported by the card.
NOTE: valid range is 0-7
, only values in this range will be set.
Sourcepub fn set_io_ocr(&mut self, io_ocr: IoOcr)
pub fn set_io_ocr(&mut self, io_ocr: IoOcr)
Sourcepub const fn try_from_bytes(val: &[u8]) -> Result<Self>
pub const fn try_from_bytes(val: &[u8]) -> Result<Self>
Attempts to convert a byte slice into a R4.
Trait Implementations§
impl Copy for R4
impl Eq for R4
impl StructuralPartialEq for R4
Auto Trait Implementations§
impl Freeze for R4
impl RefUnwindSafe for R4
impl Send for R4
impl Sync for R4
impl Unpin for R4
impl UnwindSafe for R4
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more