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