#[repr(C)]pub struct Start(/* private fields */);
Expand description
Represents the starting byte of card responses in SD mode.
Implementations§
Source§impl Start
impl Start
Sourcepub const fn start_bit(&self) -> bool
pub const fn start_bit(&self) -> bool
Getter for start_bit field of Start.
The MSB of the response, should always be 0
.
Sourcepub fn set_start_bit(&mut self, val: bool)
pub fn set_start_bit(&mut self, val: bool)
Setter for start_bit field of Start.
The MSB of the response, should always be 0
.
Sourcepub const fn transmission_bit(&self) -> bool
pub const fn transmission_bit(&self) -> bool
Getter for transmission_bit field of Start.
The transmission bit, should always be 0
.
Sourcepub fn set_transmission_bit(&mut self, val: bool)
pub fn set_transmission_bit(&mut self, val: bool)
Setter for transmission_bit field of Start.
The transmission bit, should always be 0
.
Sourcepub const fn command_index(&self) -> u8
pub const fn command_index(&self) -> u8
Getter for command_index field of Start.
Represents a 6-bit index ranging from 0-63
, indicating the CMD
number for the response.
Sourcepub fn set_command_index(&mut self, val: u8)
pub fn set_command_index(&mut self, val: u8)
Setter for command_index field of Start.
Represents a 6-bit index ranging from 0-63
, indicating the CMD
number for the response.
Trait Implementations§
impl Copy for Start
impl Eq for Start
impl StructuralPartialEq for Start
Auto Trait Implementations§
impl Freeze for Start
impl RefUnwindSafe for Start
impl Send for Start
impl Sync for Start
impl Unpin for Start
impl UnwindSafe for Start
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