Struct stm32f1xx_hal::pac::otg_fs_host::fs_hprt::W
source · pub struct W(_);
Expand description
Register FS_HPRT
writer
Implementations§
source§impl W
impl W
sourcepub fn pcdet(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 1>
pub fn pcdet(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 1>
Bit 1 - Port connect detected
sourcepub fn pena(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 2>
pub fn pena(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 2>
Bit 2 - Port enable
sourcepub fn penchng(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 3>
pub fn penchng(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 3>
Bit 3 - Port enable/disable change
sourcepub fn pocchng(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 5>
pub fn pocchng(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 5>
Bit 5 - Port overcurrent change
sourcepub fn pres(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 6>
pub fn pres(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 6>
Bit 6 - Port resume
sourcepub fn psusp(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 7>
pub fn psusp(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 7>
Bit 7 - Port suspend
sourcepub fn prst(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 8>
pub fn prst(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 8>
Bit 8 - Port reset
sourcepub fn ppwr(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 12>
pub fn ppwr(&mut self) -> BitWriterRaw<'_, u32, FS_HPRT_SPEC, bool, BitM, 12>
Bit 12 - Port power
Methods from Deref<Target = W<FS_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.