#[repr(C)]pub struct Acmd53(pub [u8; 6]);
Expand description
Represents the command format for ACMD53
.
Tuple Fields§
§0: [u8; 6]
Implementations§
Source§impl Acmd53
impl Acmd53
Sourcepub const COMMAND_INDEX: u8 = 53u8
pub const COMMAND_INDEX: u8 = 53u8
Represents the command index of the [$cmd].
Sourcepub const fn command_type(&self) -> CommandType
pub const fn command_type(&self) -> CommandType
Gets the command type for the Acmd53.
Sourcepub const fn command_class(&self) -> CommandClass
pub const fn command_class(&self) -> CommandClass
Gets the command class for the Acmd53.
Sourcepub const fn command_index(&self) -> u8
pub const fn command_index(&self) -> u8
Gets the command indnex field of the Acmd53.
Sourcepub const fn argument_bits(&self) -> u32
pub const fn argument_bits(&self) -> u32
Gets the raw argument
field of the Acmd53.
Sourcepub fn set_argument(&mut self, val: Argument)
pub fn set_argument(&mut self, val: Argument)
Sets the argument
field of the Acmd53.
Sourcepub fn calculate_crc(&mut self) -> Crc7
pub fn calculate_crc(&mut self) -> Crc7
Calculates and sets the CRC7
field of the Acmd53.
Sourcepub const fn response_type(&self) -> ResponseType
pub const fn response_type(&self) -> ResponseType
Gets the expected response type for the Acmd53.
Sourcepub const fn try_from_bytes(val: &[u8]) -> Result<Self>
pub const fn try_from_bytes(val: &[u8]) -> Result<Self>
Attempts to convert a byte slice into a Acmd53.
Trait Implementations§
impl Copy for Acmd53
impl Eq for Acmd53
impl StructuralPartialEq for Acmd53
Auto Trait Implementations§
impl Freeze for Acmd53
impl RefUnwindSafe for Acmd53
impl Send for Acmd53
impl Sync for Acmd53
impl Unpin for Acmd53
impl UnwindSafe for Acmd53
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