Struct stm32_hal2::pac::ethernet_mac::mmc_control::W
source · [−]pub struct W(_);Expand description
Register MMC_CONTROL writer
Implementations
sourceimpl W
impl W
sourcepub fn cntrst(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 0>
pub fn cntrst(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 0>
Bit 0 - Counters Reset
sourcepub fn cntstopro(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 1>
pub fn cntstopro(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 1>
Bit 1 - Counter Stop Rollover
sourcepub fn rstonrd(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 2>
pub fn rstonrd(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 2>
Bit 2 - Reset on Read
sourcepub fn cntfreez(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 3>
pub fn cntfreez(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 3>
Bit 3 - MMC Counter Freeze
sourcepub fn cntprst(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 4>
pub fn cntprst(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 4>
Bit 4 - Counters Preset
sourcepub fn cntprstlvl(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 5>
pub fn cntprstlvl(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 5>
Bit 5 - Full-Half Preset
sourcepub fn ucdbc(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 8>
pub fn ucdbc(
&mut self
) -> BitWriterRaw<'_, u32, MMC_CONTROL_SPEC, bool, BitM, 8>
Bit 8 - Update MMC Counters for Dropped Broadcast Packets
Methods from Deref<Target = W<MMC_CONTROL_SPEC>>
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations
sourceimpl From<W<MMC_CONTROL_SPEC>> for W
impl From<W<MMC_CONTROL_SPEC>> for W
sourcefn from(writer: W<MMC_CONTROL_SPEC>) -> W
fn from(writer: W<MMC_CONTROL_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more