pub struct W(_);
Expand description
Register CFGR
writer
Implementations§
source§impl W
impl W
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
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 ppre1(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, PPRE1_A, Unsafe, 3, 8>
pub fn ppre1(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, PPRE1_A, Unsafe, 3, 8>
Bits 8:10 - APB Low speed prescaler (APB1)
sourcepub fn ppre2(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, PPRE1_A, Unsafe, 3, 11>
pub fn ppre2(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, PPRE1_A, Unsafe, 3, 11>
Bits 11:13 - APB High speed prescaler (APB2)
sourcepub fn adcpre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, ADCPRE_A, Safe, 2, 14>
pub fn adcpre(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, ADCPRE_A, Safe, 2, 14>
Bits 14:15 - ADC prescaler
sourcepub fn pllsrc(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, PLLSRC_A, BitM, 16>
pub fn pllsrc(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, PLLSRC_A, BitM, 16>
Bit 16 - PLL entry clock source
sourcepub fn pllxtpre(
&mut self
) -> BitWriterRaw<'_, u32, CFGR_SPEC, PLLXTPRE_A, BitM, 17>
pub fn pllxtpre(
&mut self
) -> BitWriterRaw<'_, u32, CFGR_SPEC, PLLXTPRE_A, BitM, 17>
Bit 17 - HSE divider for PLL entry
sourcepub fn pllmul(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, PLLMUL_A, Safe, 4, 18>
pub fn pllmul(
&mut self
) -> FieldWriterRaw<'_, u32, CFGR_SPEC, u8, PLLMUL_A, Safe, 4, 18>
Bits 18:21 - PLL Multiplication Factor
sourcepub fn usbpre(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, USBPRE_A, BitM, 22>
pub fn usbpre(&mut self) -> BitWriterRaw<'_, u32, CFGR_SPEC, USBPRE_A, BitM, 22>
Bit 22 - USB 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.