pub struct W(/* private fields */);Expand description
Register OTG_FS_HPRT writer
Implementations§
Source§impl W
impl W
Sourcepub fn pcdet(
&mut self,
) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 1>
pub fn pcdet( &mut self, ) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 1>
Bit 1 - Port connect detected
Sourcepub fn pena(&mut self) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 2>
pub fn pena(&mut self) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 2>
Bit 2 - Port enable
Sourcepub fn penchng(
&mut self,
) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 3>
pub fn penchng( &mut self, ) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 3>
Bit 3 - Port enable/disable change
Sourcepub fn pocchng(
&mut self,
) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 5>
pub fn pocchng( &mut self, ) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 5>
Bit 5 - Port overcurrent change
Sourcepub fn pres(&mut self) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 6>
pub fn pres(&mut self) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 6>
Bit 6 - Port resume
Sourcepub fn psusp(
&mut self,
) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 7>
pub fn psusp( &mut self, ) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 7>
Bit 7 - Port suspend
Sourcepub fn prst(&mut self) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 8>
pub fn prst(&mut self) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 8>
Bit 8 - Port reset
Sourcepub fn ppwr(
&mut self,
) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 12>
pub fn ppwr( &mut self, ) -> BitWriterRaw<'_, u32, OTG_FS_HPRT_SPEC, bool, BitM, 12>
Bit 12 - Port power
Methods from Deref<Target = W<OTG_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.
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