#[repr(transparent)]pub struct Rcmd(pub u32);
Expand description
Command constants used for reads from memory address window 1. The reset value of the M1_RCMD register is configured to support a basic 03h serial read transfer with no additional configuration.
Tuple Fields§
§0: u32
Implementations§
source§impl Rcmd
impl Rcmd
sourcepub const fn prefix(&self) -> u8
pub const fn prefix(&self) -> u8
The command prefix bits to prepend on each new transfer, if Mx_RFMT_PREFIX_LEN is nonzero.
sourcepub fn set_prefix(&mut self, val: u8)
pub fn set_prefix(&mut self, val: u8)
The command prefix bits to prepend on each new transfer, if Mx_RFMT_PREFIX_LEN is nonzero.
sourcepub const fn suffix(&self) -> u8
pub const fn suffix(&self) -> u8
The command suffix bits following the address, if Mx_RFMT_SUFFIX_LEN is nonzero.
sourcepub fn set_suffix(&mut self, val: u8)
pub fn set_suffix(&mut self, val: u8)
The command suffix bits following the address, if Mx_RFMT_SUFFIX_LEN is nonzero.
Trait Implementations§
impl Copy for Rcmd
impl Eq for Rcmd
impl StructuralPartialEq for Rcmd
Auto Trait Implementations§
impl Freeze for Rcmd
impl RefUnwindSafe for Rcmd
impl Send for Rcmd
impl Sync for Rcmd
impl Unpin for Rcmd
impl UnwindSafe for Rcmd
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)