Struct stm32f4xx_hal::pac::otg_fs_global::gusbcfg::W
source · pub struct W(/* private fields */);
Expand description
Register GUSBCFG
writer
Implementations§
source§impl W
impl W
sourcepub fn tocal(
&mut self
) -> FieldWriterRaw<'_, u32, GUSBCFG_SPEC, u8, u8, Unsafe, 3, 0>
pub fn tocal( &mut self ) -> FieldWriterRaw<'_, u32, GUSBCFG_SPEC, u8, u8, Unsafe, 3, 0>
Bits 0:2 - FS timeout calibration
sourcepub fn physel(&mut self) -> BitWriterRaw<'_, u32, GUSBCFG_SPEC, bool, BitM, 6>
pub fn physel(&mut self) -> BitWriterRaw<'_, u32, GUSBCFG_SPEC, bool, BitM, 6>
Bit 6 - Full Speed serial transceiver select
sourcepub fn srpcap(&mut self) -> BitWriterRaw<'_, u32, GUSBCFG_SPEC, bool, BitM, 8>
pub fn srpcap(&mut self) -> BitWriterRaw<'_, u32, GUSBCFG_SPEC, bool, BitM, 8>
Bit 8 - SRP-capable
sourcepub fn hnpcap(&mut self) -> BitWriterRaw<'_, u32, GUSBCFG_SPEC, bool, BitM, 9>
pub fn hnpcap(&mut self) -> BitWriterRaw<'_, u32, GUSBCFG_SPEC, bool, BitM, 9>
Bit 9 - HNP-capable
sourcepub fn trdt(
&mut self
) -> FieldWriterRaw<'_, u32, GUSBCFG_SPEC, u8, u8, Unsafe, 4, 10>
pub fn trdt( &mut self ) -> FieldWriterRaw<'_, u32, GUSBCFG_SPEC, u8, u8, Unsafe, 4, 10>
Bits 10:13 - USB turnaround time
sourcepub fn fhmod(&mut self) -> BitWriterRaw<'_, u32, GUSBCFG_SPEC, bool, BitM, 29>
pub fn fhmod(&mut self) -> BitWriterRaw<'_, u32, GUSBCFG_SPEC, bool, BitM, 29>
Bit 29 - Force host mode
sourcepub fn fdmod(&mut self) -> BitWriterRaw<'_, u32, GUSBCFG_SPEC, bool, BitM, 30>
pub fn fdmod(&mut self) -> BitWriterRaw<'_, u32, GUSBCFG_SPEC, bool, BitM, 30>
Bit 30 - Force device mode
sourcepub fn ctxpkt(&mut self) -> BitWriterRaw<'_, u32, GUSBCFG_SPEC, bool, BitM, 31>
pub fn ctxpkt(&mut self) -> BitWriterRaw<'_, u32, GUSBCFG_SPEC, bool, BitM, 31>
Bit 31 - Corrupt Tx packet
Methods from Deref<Target = W<GUSBCFG_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