Struct stm32f4xx_hal::pac::otg_fs_global::gccfg::W
source · [−]pub struct W(_);
Expand description
Register GCCFG
writer
Implementations
sourceimpl 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 vbusasen(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 18>
pub fn vbusasen(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 18>
Bit 18 - Enable the VBUS sensing device
sourcepub fn vbusbsen(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 19>
pub fn vbusbsen(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 19>
Bit 19 - Enable the VBUS sensing device
sourcepub fn sofouten(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 20>
pub fn sofouten(&mut self) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 20>
Bit 20 - SOF output enable
sourcepub fn novbussens(
&mut self
) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 21>
pub fn novbussens(
&mut self
) -> BitWriterRaw<'_, u32, GCCFG_SPEC, bool, BitM, 21>
Bit 21 - Vbus sensing disable option
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
sourceimpl From<W<GCCFG_SPEC>> for W
impl From<W<GCCFG_SPEC>> for W
sourcefn from(writer: W<GCCFG_SPEC>) -> W
fn from(writer: W<GCCFG_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