Struct stm32_hal2::pac::otg1_hs_global::glpmcfg::W
source · [−]pub struct W(_);
Expand description
Register GLPMCFG
writer
Implementations
sourceimpl W
impl W
sourcepub fn lpmen(&mut self) -> BitWriterRaw<'_, u32, GLPMCFG_SPEC, bool, BitM, 0>
pub fn lpmen(&mut self) -> BitWriterRaw<'_, u32, GLPMCFG_SPEC, bool, BitM, 0>
Bit 0 - LPM support enable
sourcepub fn lpmack(&mut self) -> BitWriterRaw<'_, u32, GLPMCFG_SPEC, bool, BitM, 1>
pub fn lpmack(&mut self) -> BitWriterRaw<'_, u32, GLPMCFG_SPEC, bool, BitM, 1>
Bit 1 - LPM token acknowledge enable
sourcepub fn l1ssen(&mut self) -> BitWriterRaw<'_, u32, GLPMCFG_SPEC, bool, BitM, 7>
pub fn l1ssen(&mut self) -> BitWriterRaw<'_, u32, GLPMCFG_SPEC, bool, BitM, 7>
Bit 7 - L1 Shallow Sleep enable
sourcepub fn beslthrs(
&mut self
) -> FieldWriterRaw<'_, u32, GLPMCFG_SPEC, u8, u8, Unsafe, 4, 8>
pub fn beslthrs(
&mut self
) -> FieldWriterRaw<'_, u32, GLPMCFG_SPEC, u8, u8, Unsafe, 4, 8>
Bits 8:11 - BESL threshold
sourcepub fn l1dsen(&mut self) -> BitWriterRaw<'_, u32, GLPMCFG_SPEC, bool, BitM, 12>
pub fn l1dsen(&mut self) -> BitWriterRaw<'_, u32, GLPMCFG_SPEC, bool, BitM, 12>
Bit 12 - L1 deep sleep enable
sourcepub fn lpmchidx(
&mut self
) -> FieldWriterRaw<'_, u32, GLPMCFG_SPEC, u8, u8, Unsafe, 4, 17>
pub fn lpmchidx(
&mut self
) -> FieldWriterRaw<'_, u32, GLPMCFG_SPEC, u8, u8, Unsafe, 4, 17>
Bits 17:20 - LPM Channel Index
sourcepub fn lpmrcnt(
&mut self
) -> FieldWriterRaw<'_, u32, GLPMCFG_SPEC, u8, u8, Unsafe, 3, 21>
pub fn lpmrcnt(
&mut self
) -> FieldWriterRaw<'_, u32, GLPMCFG_SPEC, u8, u8, Unsafe, 3, 21>
Bits 21:23 - LPM retry count
sourcepub fn sndlpm(&mut self) -> BitWriterRaw<'_, u32, GLPMCFG_SPEC, bool, BitM, 24>
pub fn sndlpm(&mut self) -> BitWriterRaw<'_, u32, GLPMCFG_SPEC, bool, BitM, 24>
Bit 24 - Send LPM transaction
sourcepub fn enbesl(&mut self) -> BitWriterRaw<'_, u32, GLPMCFG_SPEC, bool, BitM, 28>
pub fn enbesl(&mut self) -> BitWriterRaw<'_, u32, GLPMCFG_SPEC, bool, BitM, 28>
Bit 28 - Enable best effort service latency
Methods from Deref<Target = W<GLPMCFG_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<GLPMCFG_SPEC>> for W
impl From<W<GLPMCFG_SPEC>> for W
sourcefn from(writer: W<GLPMCFG_SPEC>) -> W
fn from(writer: W<GLPMCFG_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