Struct stm32f1xx_hal::pac::otg_fs_global::fs_grstctl::W
source · pub struct W(_);
Expand description
Register FS_GRSTCTL
writer
Implementations§
source§impl W
impl W
sourcepub fn csrst(&mut self) -> BitWriterRaw<'_, u32, FS_GRSTCTL_SPEC, bool, BitM, 0>
pub fn csrst(&mut self) -> BitWriterRaw<'_, u32, FS_GRSTCTL_SPEC, bool, BitM, 0>
Bit 0 - Core soft reset
sourcepub fn hsrst(&mut self) -> BitWriterRaw<'_, u32, FS_GRSTCTL_SPEC, bool, BitM, 1>
pub fn hsrst(&mut self) -> BitWriterRaw<'_, u32, FS_GRSTCTL_SPEC, bool, BitM, 1>
Bit 1 - HCLK soft reset
sourcepub fn fcrst(&mut self) -> BitWriterRaw<'_, u32, FS_GRSTCTL_SPEC, bool, BitM, 2>
pub fn fcrst(&mut self) -> BitWriterRaw<'_, u32, FS_GRSTCTL_SPEC, bool, BitM, 2>
Bit 2 - Host frame counter reset
sourcepub fn rxfflsh(
&mut self
) -> BitWriterRaw<'_, u32, FS_GRSTCTL_SPEC, bool, BitM, 4>
pub fn rxfflsh(
&mut self
) -> BitWriterRaw<'_, u32, FS_GRSTCTL_SPEC, bool, BitM, 4>
Bit 4 - RxFIFO flush
sourcepub fn txfflsh(
&mut self
) -> BitWriterRaw<'_, u32, FS_GRSTCTL_SPEC, bool, BitM, 5>
pub fn txfflsh(
&mut self
) -> BitWriterRaw<'_, u32, FS_GRSTCTL_SPEC, bool, BitM, 5>
Bit 5 - TxFIFO flush
Methods from Deref<Target = W<FS_GRSTCTL_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.