#[repr(u8)]pub enum IoCurrentState {
Disabled = 0,
Command = 1,
Transfer = 2,
}
Expand description
Current state of the SD I/O card.
Variants§
Disabled = 0
Initialize, Standby, and Inactive States.
Command = 1
DAT lines free.
Transfer = 2
Command executing with data lines (DAT[0]
or DAT[3:0]
).
Implementations§
Source§impl IoCurrentState
impl IoCurrentState
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new IoCurrentState.
Sourcepub const fn from_raw_unchecked(val: u8) -> Self
pub const fn from_raw_unchecked(val: u8) -> Self
Sourcepub const fn from_raw(val: u8) -> Result<Self, Error>
pub const fn from_raw(val: u8) -> Result<Self, Error>
Attempts to convert a u8
into a IoCurrentState.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a IoCurrentState into a u8
.
Trait Implementations§
Source§impl Clone for IoCurrentState
impl Clone for IoCurrentState
Source§fn clone(&self) -> IoCurrentState
fn clone(&self) -> IoCurrentState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IoCurrentState
impl Debug for IoCurrentState
Source§impl Default for IoCurrentState
impl Default for IoCurrentState
Source§impl From<IoCurrentState> for u8
impl From<IoCurrentState> for u8
Source§fn from(val: IoCurrentState) -> Self
fn from(val: IoCurrentState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IoCurrentState
impl PartialEq for IoCurrentState
Source§impl TryFrom<u8> for IoCurrentState
impl TryFrom<u8> for IoCurrentState
impl Copy for IoCurrentState
impl Eq for IoCurrentState
impl StructuralPartialEq for IoCurrentState
Auto Trait Implementations§
impl Freeze for IoCurrentState
impl RefUnwindSafe for IoCurrentState
impl Send for IoCurrentState
impl Sync for IoCurrentState
impl Unpin for IoCurrentState
impl UnwindSafe for IoCurrentState
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