pub struct W(_);
Expand description
Register CFGR
writer
Implementations
sourceimpl W
impl W
sourcepub fn mco2(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, MCO2_A, Safe, 2, 30>
pub fn mco2(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, MCO2_A, Safe, 2, 30>
Bits 30:31 - Microcontroller clock output 2
sourcepub fn mco2pre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, MCO1PRE_A, Unsafe, 3, 27>
pub fn mco2pre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, MCO1PRE_A, Unsafe, 3, 27>
Bits 27:29 - MCO2 prescaler
sourcepub fn mco1pre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, MCO1PRE_A, Unsafe, 3, 24>
pub fn mco1pre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, MCO1PRE_A, Unsafe, 3, 24>
Bits 24:26 - MCO1 prescaler
sourcepub fn i2ssrc(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, I2SSRC_A, BitM, 23>
pub fn i2ssrc(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, I2SSRC_A, BitM, 23>
Bit 23 - I2S clock selection
sourcepub fn mco1(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, MCO1_A, Safe, 2, 21>
pub fn mco1(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, MCO1_A, Safe, 2, 21>
Bits 21:22 - Microcontroller clock output 1
sourcepub fn rtcpre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, u8, Safe, 5, 16>
pub fn rtcpre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, u8, Safe, 5, 16>
Bits 16:20 - HSE division factor for RTC clock
sourcepub fn ppre2(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, PPRE1_A, Unsafe, 3, 13>
pub fn ppre2(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, PPRE1_A, Unsafe, 3, 13>
Bits 13:15 - APB high-speed prescaler (APB2)
sourcepub fn ppre1(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, PPRE1_A, Unsafe, 3, 10>
pub fn ppre1(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, PPRE1_A, Unsafe, 3, 10>
Bits 10:12 - APB Low speed prescaler (APB1)
sourcepub fn hpre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, HPRE_A, Unsafe, 4, 4>
pub fn hpre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, HPRE_A, Unsafe, 4, 4>
Bits 4:7 - AHB prescaler
sourcepub fn sw(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, SW_A, Unsafe, 2, 0>
pub fn sw(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, SW_A, Unsafe, 2, 0>
Bits 0:1 - System clock switch
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