Struct stm32_hal2::pac::otg1_hs_global::gccfg::W
source · pub struct W(/* private fields */);
Expand description
Register GCCFG
writer
Implementations§
source§impl W
impl W
sourcepub fn pwrdwn(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 16>
pub fn pwrdwn(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 16>
Bit 16 - Power down
sourcepub fn bcden(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 17>
pub fn bcden(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 17>
Bit 17 - Battery charging detector (BCD) enable
sourcepub fn dcden(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 18>
pub fn dcden(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 18>
Bit 18 - Data contact detection (DCD) mode enable
sourcepub fn pden(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 19>
pub fn pden(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 19>
Bit 19 - Primary detection (PD) mode enable
sourcepub fn sden(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 20>
pub fn sden(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 20>
Bit 20 - Secondary detection (SD) mode enable
sourcepub fn vbden(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 21>
pub fn vbden(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 21>
Bit 21 - USB VBUS detection enable
sourcepub fn dcdet(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 0>
pub fn dcdet(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 0>
Bit 0 - Data contact detection (DCD) status
sourcepub fn pdet(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 1>
pub fn pdet(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 1>
Bit 1 - Primary detection (PD) status
sourcepub fn sdet(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 2>
pub fn sdet(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 2>
Bit 2 - Secondary detection (SD) status
sourcepub fn ps2det(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 3>
pub fn ps2det(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 3>
Bit 3 - DM pull-up detection status
Methods from Deref<Target = W<GCCFG_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§
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
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