#[repr(C)]pub struct R7(pub [u8; 5]);
Expand description
Represents the response to the SEND_IF_COND
command (CMD8
) in SPI mode.
Tuple Fields§
§0: [u8; 5]
Implementations§
Source§impl R7
impl R7
Sourcepub const fn command_version(&self) -> u8
pub const fn command_version(&self) -> u8
Getter for command_version
field of R7.
Sourcepub fn set_command_version(&mut self, val: u8)
pub fn set_command_version(&mut self, val: u8)
Setter for command_version
field of R7.
Sourcepub const fn echo_check(&self) -> u8
pub const fn echo_check(&self) -> u8
Getter for echo_check
field of R7.
Sourcepub fn set_echo_check(&mut self, val: u8)
pub fn set_echo_check(&mut self, val: u8)
Setter for echo_check
field of R7.
Source§impl R7
impl R7
Sourcepub const fn response_type(&self) -> ResponseType
pub const fn response_type(&self) -> ResponseType
Gets the response type for the R7.
Sourcepub const fn response_mode(&self) -> ResponseMode
pub const fn response_mode(&self) -> ResponseMode
Gets the response mode for the R7.
Source§impl R7
impl R7
Sourcepub const fn voltage_accepted(&self) -> Result<VoltageAccepted>
pub const fn voltage_accepted(&self) -> Result<VoltageAccepted>
Gets the VoltageAccepted value of the R7 response.
Sourcepub fn set_voltage_accepted(&mut self, voltage_accepted: VoltageAccepted)
pub fn set_voltage_accepted(&mut self, voltage_accepted: VoltageAccepted)
Sets the VoltageAccepted value of the R7 response.
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 R7.
Trait Implementations§
impl Copy for R7
impl Eq for R7
impl StructuralPartialEq for R7
Auto Trait Implementations§
impl Freeze for R7
impl RefUnwindSafe for R7
impl Send for R7
impl Sync for R7
impl Unpin for R7
impl UnwindSafe for R7
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