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