Struct stm32f1xx_hal::pac::otg_fs_global::fs_gotgctl::W
source · pub struct W(_);
Expand description
Register FS_GOTGCTL
writer
Implementations§
source§impl W
impl W
sourcepub fn srq(&mut self) -> BitWriterRaw<'_, u32, FS_GOTGCTL_SPEC, bool, BitM, 1>
pub fn srq(&mut self) -> BitWriterRaw<'_, u32, FS_GOTGCTL_SPEC, bool, BitM, 1>
Bit 1 - Session request
sourcepub fn hnprq(&mut self) -> BitWriterRaw<'_, u32, FS_GOTGCTL_SPEC, bool, BitM, 9>
pub fn hnprq(&mut self) -> BitWriterRaw<'_, u32, FS_GOTGCTL_SPEC, bool, BitM, 9>
Bit 9 - HNP request
sourcepub fn hshnpen(
&mut self
) -> BitWriterRaw<'_, u32, FS_GOTGCTL_SPEC, bool, BitM, 10>
pub fn hshnpen(
&mut self
) -> BitWriterRaw<'_, u32, FS_GOTGCTL_SPEC, bool, BitM, 10>
Bit 10 - Host set HNP enable
sourcepub fn dhnpen(
&mut self
) -> BitWriterRaw<'_, u32, FS_GOTGCTL_SPEC, bool, BitM, 11>
pub fn dhnpen(
&mut self
) -> BitWriterRaw<'_, u32, FS_GOTGCTL_SPEC, bool, BitM, 11>
Bit 11 - Device HNP enabled
Methods from Deref<Target = W<FS_GOTGCTL_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.