#[repr(C)]pub struct R6(pub [u8; 6]);
Expand description
Represents the Published RCA response in SD mode.
Tuple Fields§
§0: [u8; 6]
Implementations§
Source§impl R6
impl R6
Sourcepub const fn response_type(&self) -> ResponseType
pub const fn response_type(&self) -> ResponseType
Gets the response type for the R6.
Sourcepub const fn response_mode(&self) -> ResponseMode
pub const fn response_mode(&self) -> ResponseMode
Gets the response mode for the R6.
Source§impl R6
impl R6
pub const DEFAULT: [u8; 6]
Sourcepub const fn command_index(&self) -> u8
pub const fn command_index(&self) -> u8
Gets the command index field of the R6.
Should always be COMMAND_INDEX.
Sourcepub const fn card_status(&self) -> Result<CardStatus>
pub const fn card_status(&self) -> Result<CardStatus>
Gets the CardStatus for the R6.
Sourcepub fn set_card_status(&mut self, val: CardStatus)
pub fn set_card_status(&mut self, val: CardStatus)
Sets the CardStatus for the R6.
Sourcepub fn calculate_crc(&mut self) -> Crc7
pub fn calculate_crc(&mut self) -> Crc7
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 R6.
Trait Implementations§
impl Copy for R6
impl Eq for R6
impl StructuralPartialEq for R6
Auto Trait Implementations§
impl Freeze for R6
impl RefUnwindSafe for R6
impl Send for R6
impl Sync for R6
impl Unpin for R6
impl UnwindSafe for R6
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