#[repr(C)]pub enum CardState {
Inactive = 0,
Idle = 1,
Ready = 2,
Identification = 3,
Standby = 4,
Transfer = 5,
SendingData = 6,
ReceivingData = 7,
Programming = 8,
Disconnect = 9,
}
Expand description
Represents the card states of an SD card.
Variants§
Inactive = 0
Idle = 1
Ready = 2
Identification = 3
Standby = 4
Transfer = 5
SendingData = 6
ReceivingData = 7
Programming = 8
Disconnect = 9
Implementations§
Source§impl CardState
impl CardState
Sourcepub const fn operation_mode(&self) -> OperationMode
pub const fn operation_mode(&self) -> OperationMode
Gets the OperationMode associated with the CardState.
For details, see Table 4-1
of Part1 Physical Layer SD specification.
Trait Implementations§
impl Copy for CardState
impl Eq for CardState
impl StructuralPartialEq for CardState
Auto Trait Implementations§
impl Freeze for CardState
impl RefUnwindSafe for CardState
impl Send for CardState
impl Sync for CardState
impl Unpin for CardState
impl UnwindSafe for CardState
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