pub struct W(_);
Expand description
Register CFGR
writer
Implementations
sourceimpl W
impl W
sourcepub fn sw(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, SW_A, Unsafe, 3, 0>
pub fn sw(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, SW_A, Unsafe, 3, 0>
Bits 0:2 - System clock switch
sourcepub fn sws(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, SWS_A, Unsafe, 3, 3>
pub fn sws(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, SWS_A, Unsafe, 3, 3>
Bits 3:5 - System clock switch status
sourcepub fn stopwuck(
&mut self
) -> BitWriterRaw<'_, u32, CFGR_SPEC, STOPWUCK_A, BitM, 6>
pub fn stopwuck(
&mut self
) -> BitWriterRaw<'_, u32, CFGR_SPEC, STOPWUCK_A, BitM, 6>
Bit 6 - System clock selection after a wake up from system Stop
sourcepub fn stopkerwuck(
&mut self
) -> BitWriterRaw<'_, u32, CFGR_SPEC, STOPWUCK_A, BitM, 7>
pub fn stopkerwuck(
&mut self
) -> BitWriterRaw<'_, u32, CFGR_SPEC, STOPWUCK_A, BitM, 7>
Bit 7 - Kernel clock selection after a wake up from system Stop
sourcepub fn rtcpre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, u8, Safe, 6, 8>
pub fn rtcpre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, u8, Safe, 6, 8>
Bits 8:13 - HSE division factor for RTC clock
sourcepub fn hrtimsel(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, bool, BitM, 14>
pub fn hrtimsel(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, bool, BitM, 14>
Bit 14 - High Resolution Timer clock prescaler selection
sourcepub fn timpre(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, TIMPRE_A, BitM, 15>
pub fn timpre(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, TIMPRE_A, BitM, 15>
Bit 15 - Timers clocks prescaler selection
sourcepub fn mco1pre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, u8, Safe, 4, 18>
pub fn mco1pre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, u8, Safe, 4, 18>
Bits 18:21 - MCO1 prescaler
sourcepub fn mco1(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, MCO1_A, Unsafe, 3, 22>
pub fn mco1(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, MCO1_A, Unsafe, 3, 22>
Bits 22:24 - Micro-controller clock output 1
sourcepub fn mco2pre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, u8, Safe, 4, 25>
pub fn mco2pre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, u8, Safe, 4, 25>
Bits 25:28 - MCO2 prescaler
Methods from Deref<Target = W<CFGR_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
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