pub struct W(/* private fields */);
Expand description
Register CFGR
writer
Implementations§
Source§impl 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§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more