#[repr(C)]pub enum ResponseType {
None = 0,
R1 = 1,
R1b = 2,
R2 = 3,
R3 = 4,
R4 = 5,
R5 = 6,
R6 = 7,
R7 = 8,
}Expand description
Represents the response types used in the SD/MMC protocol.
Variants§
None = 0
No response type.
R1 = 1
The standard response sent for most command types.
R1b = 2
The same as the R1 response, but drives a BUSY signal on the DAT line(s).
R2 = 3
136-bit response that includes the contents of the card CID or CSD register.
R3 = 4
Returns the contents of the card OCR register.
R4 = 5
SDIO response to the IO_SEND_OP_COND command.
Returns the card IO_OCR register contents, and other operating conditions.
R5 = 6
SDIO response to the IO_RW_DIRECT commands.
R6 = 7
Response containing the published RCA information.
R7 = 8
Response containing the card interface condition.
Implementations§
Source§impl ResponseType
impl ResponseType
Sourcepub const LEN_136BIT: usize = 17
pub const LEN_136BIT: usize = 17
Represents the byte length for an 136-bit response.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new ResponseType.
Sourcepub const fn len(&self, mode: ResponseMode) -> usize
pub const fn len(&self, mode: ResponseMode) -> usize
Gets the byte length of the ResponseType based on the operation mode.
Sourcepub const fn has_crc(&self, mode: ResponseMode) -> bool
pub const fn has_crc(&self, mode: ResponseMode) -> bool
Gets whether the response type includes a CRC-7 checksum field.
Trait Implementations§
Source§impl Clone for ResponseType
impl Clone for ResponseType
Source§fn clone(&self) -> ResponseType
fn clone(&self) -> ResponseType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more