#[repr(u32)]pub enum CommandClass0 {
Show 15 variants
GoIdleState = 0,
SendOpCond = 1,
AllSendCID = 2,
SetRelativeAddress = 3,
SetDSR = 4,
Switch = 6,
SelectCard = 7,
SendIFCond = 8,
SendCSD = 9,
SendCID = 10,
VoltageSwitch = 11,
StopTransmission = 12,
SendStatus = 13,
BustestR = 14,
GoInactiveState = 15,
}
Expand description
MMC opcodes for Class 0.
Variants§
GoIdleState = 0
SendOpCond = 1
AllSendCID = 2
SetRelativeAddress = 3
SetDSR = 4
Switch = 6
SelectCard = 7
SendIFCond = 8
SendCSD = 9
SendCID = 10
VoltageSwitch = 11
StopTransmission = 12
SendStatus = 13
BustestR = 14
GoInactiveState = 15
Implementations§
Source§impl CommandClass0
impl CommandClass0
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new CommandClass0.
Sourcepub const fn from_raw_unchecked(val: u32) -> Self
pub const fn from_raw_unchecked(val: u32) -> Self
Sourcepub const fn from_raw(val: u32) -> Result<Self, Error>
pub const fn from_raw(val: u32) -> Result<Self, Error>
Attempts to convert a u32
into a CommandClass0.
Sourcepub const fn into_raw(self) -> u32
pub const fn into_raw(self) -> u32
Converts a CommandClass0 into a u32
.
Trait Implementations§
Source§impl Clone for CommandClass0
impl Clone for CommandClass0
Source§fn clone(&self) -> CommandClass0
fn clone(&self) -> CommandClass0
Returns a copy 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 CommandClass0
impl Debug for CommandClass0
Source§impl Default for CommandClass0
impl Default for CommandClass0
Source§impl From<CommandClass0> for u32
impl From<CommandClass0> for u32
Source§fn from(val: CommandClass0) -> Self
fn from(val: CommandClass0) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommandClass0
impl PartialEq for CommandClass0
Source§impl TryFrom<u32> for CommandClass0
impl TryFrom<u32> for CommandClass0
impl Copy for CommandClass0
impl Eq for CommandClass0
impl StructuralPartialEq for CommandClass0
Auto Trait Implementations§
impl Freeze for CommandClass0
impl RefUnwindSafe for CommandClass0
impl Send for CommandClass0
impl Sync for CommandClass0
impl Unpin for CommandClass0
impl UnwindSafe for CommandClass0
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