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
impl Copy for MmcControl
impl Eq for MmcControl
impl StructuralPartialEq for MmcControl
Auto Trait Implementations§
impl Freeze for MmcControl
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
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
)