Struct stm32_hal2::pac::otg1_hs_host::hprt::W
source · [−]pub struct W(_);
Expand description
Register HPRT
writer
Implementations
sourceimpl W
impl W
sourcepub fn pcdet(&mut self) -> BitWriterRaw<'_, u32, HPRT_SPEC, bool, BitM, 1>
pub fn pcdet(&mut self) -> BitWriterRaw<'_, u32, HPRT_SPEC, bool, BitM, 1>
Bit 1 - Port connect detected
sourcepub fn penchng(&mut self) -> BitWriterRaw<'_, u32, HPRT_SPEC, bool, BitM, 3>
pub fn penchng(&mut self) -> BitWriterRaw<'_, u32, HPRT_SPEC, bool, BitM, 3>
Bit 3 - Port enable/disable change
sourcepub fn pocchng(&mut self) -> BitWriterRaw<'_, u32, HPRT_SPEC, bool, BitM, 5>
pub fn pocchng(&mut self) -> BitWriterRaw<'_, u32, HPRT_SPEC, bool, BitM, 5>
Bit 5 - Port overcurrent change
sourcepub fn psusp(&mut self) -> BitWriterRaw<'_, u32, HPRT_SPEC, bool, BitM, 7>
pub fn psusp(&mut self) -> BitWriterRaw<'_, u32, HPRT_SPEC, bool, BitM, 7>
Bit 7 - Port suspend
Methods from Deref<Target = W<HPRT_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
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