Struct stm32_hal2::pac::otg1_hs_global::grstctl::W
source · [−]pub struct W(_);
Expand description
Register GRSTCTL
writer
Implementations
sourceimpl W
impl W
sourcepub fn csrst(&mut self) -> BitWriterRaw<'_, u32, GRSTCTL_SPEC, bool, BitM, 0>
pub fn csrst(&mut self) -> BitWriterRaw<'_, u32, GRSTCTL_SPEC, bool, BitM, 0>
Bit 0 - Core soft reset
sourcepub fn hsrst(&mut self) -> BitWriterRaw<'_, u32, GRSTCTL_SPEC, bool, BitM, 1>
pub fn hsrst(&mut self) -> BitWriterRaw<'_, u32, GRSTCTL_SPEC, bool, BitM, 1>
Bit 1 - HCLK soft reset
sourcepub fn fcrst(&mut self) -> BitWriterRaw<'_, u32, GRSTCTL_SPEC, bool, BitM, 2>
pub fn fcrst(&mut self) -> BitWriterRaw<'_, u32, GRSTCTL_SPEC, bool, BitM, 2>
Bit 2 - Host frame counter reset
sourcepub fn rxfflsh(&mut self) -> BitWriterRaw<'_, u32, GRSTCTL_SPEC, bool, BitM, 4>
pub fn rxfflsh(&mut self) -> BitWriterRaw<'_, u32, GRSTCTL_SPEC, bool, BitM, 4>
Bit 4 - RxFIFO flush
sourcepub fn txfflsh(&mut self) -> BitWriterRaw<'_, u32, GRSTCTL_SPEC, bool, BitM, 5>
pub fn txfflsh(&mut self) -> BitWriterRaw<'_, u32, GRSTCTL_SPEC, bool, BitM, 5>
Bit 5 - TxFIFO flush
Methods from Deref<Target = W<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.
Trait Implementations
sourceimpl From<W<GRSTCTL_SPEC>> for W
impl From<W<GRSTCTL_SPEC>> for W
sourcefn from(writer: W<GRSTCTL_SPEC>) -> W
fn from(writer: W<GRSTCTL_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more