#[repr(transparent)]pub struct Wcmd(pub u32);
Expand description
Command constants used for writes to memory address window 0. The reset value of the M0_WCMD register is configured to support a basic 02h serial write transfer with no additional configuration.
Tuple Fields§
§0: u32
Implementations§
Source§impl Wcmd
impl Wcmd
Sourcepub const fn prefix(&self) -> u8
pub const fn prefix(&self) -> u8
The command prefix bits to prepend on each new transfer, if Mx_WFMT_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_WFMT_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_WFMT_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_WFMT_SUFFIX_LEN is nonzero.
Trait Implementations§
impl Copy for Wcmd
impl Eq for Wcmd
impl StructuralPartialEq for Wcmd
Auto Trait Implementations§
impl Freeze for Wcmd
impl RefUnwindSafe for Wcmd
impl Send for Wcmd
impl Sync for Wcmd
impl Unpin for Wcmd
impl UnwindSafe for Wcmd
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