Struct stm32_metapac::eth::regs::MmcControl
#[repr(transparent)]pub struct MmcControl(pub u32);
Expand description
MMC control register
Tuple Fieldsยง
ยง0: u32
Implementationsยง
ยงimpl MmcControl
impl MmcControl
pub fn set_cntrst(&mut self, val: bool)
pub fn set_cntrst(&mut self, val: bool)
Counters Reset
pub fn set_cntstopro(&mut self, val: bool)
pub fn set_cntstopro(&mut self, val: bool)
Counter Stop Rollover
pub fn set_rstonrd(&mut self, val: bool)
pub fn set_rstonrd(&mut self, val: bool)
Reset on Read
pub fn set_cntfreez(&mut self, val: bool)
pub fn set_cntfreez(&mut self, val: bool)
MMC Counter Freeze
pub fn set_cntprst(&mut self, val: bool)
pub fn set_cntprst(&mut self, val: bool)
Counters Preset
pub const fn cntprstlvl(&self) -> bool
pub const fn cntprstlvl(&self) -> bool
Full-Half Preset
pub fn set_cntprstlvl(&mut self, val: bool)
pub fn set_cntprstlvl(&mut self, val: bool)
Full-Half Preset
Trait Implementationsยง
ยงimpl Clone for MmcControl
impl Clone for MmcControl
ยงfn clone(&self) -> MmcControl
fn clone(&self) -> MmcControl
Returns a copy of the value. Read more
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreยงimpl Default for MmcControl
impl Default for MmcControl
ยงfn default() -> MmcControl
fn default() -> MmcControl
Returns the โdefault valueโ for a type. Read more
ยงimpl PartialEq for MmcControl
impl PartialEq for MmcControl
ยงfn eq(&self, other: &MmcControl) -> bool
fn eq(&self, other: &MmcControl) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MmcControl
impl Eq for MmcControl
impl StructuralEq for MmcControl
impl StructuralPartialEq for MmcControl
Auto Trait Implementationsยง
impl RefUnwindSafe for MmcControl
impl Send for MmcControl
impl Sync for MmcControl
impl Unpin for MmcControl
impl UnwindSafe for MmcControl
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