#[repr(u8)]pub enum AccessMode {
Sdr12 = 0,
Sdr25 = 1,
Sdr50 = 2,
Sdr104 = 3,
Ddr50 = 4,
}
Expand description
Represents access modes (Group 1) for CMD6
.
Variants§
Sdr12 = 0
Default speed: 12.5 MB/s.
Sdr25 = 1
High speed: 25 MB/s.
Sdr50 = 2
UHS-I: 50 MB/s.
Sdr104 = 3
UHS-I: 104 MB/s.
Ddr50 = 4
UHS-I: 50 MB/s.
Implementations§
Source§impl AccessMode
impl AccessMode
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new AccessMode.
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 AccessMode.
Sourcepub const fn into_raw(self) -> u8
pub const fn into_raw(self) -> u8
Converts a AccessMode into a u8
.
Trait Implementations§
Source§impl Clone for AccessMode
impl Clone for AccessMode
Source§fn clone(&self) -> AccessMode
fn clone(&self) -> AccessMode
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 AccessMode
impl Debug for AccessMode
Source§impl Default for AccessMode
impl Default for AccessMode
Source§impl From<AccessMode> for u8
impl From<AccessMode> for u8
Source§fn from(val: AccessMode) -> Self
fn from(val: AccessMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AccessMode
impl PartialEq for AccessMode
Source§impl TryFrom<u8> for AccessMode
impl TryFrom<u8> for AccessMode
impl Copy for AccessMode
impl Eq for AccessMode
impl StructuralPartialEq for AccessMode
Auto Trait Implementations§
impl Freeze for AccessMode
impl RefUnwindSafe for AccessMode
impl Send for AccessMode
impl Sync for AccessMode
impl Unpin for AccessMode
impl UnwindSafe for AccessMode
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