pub struct W(_);
Expand description
Register CR1
writer
Implementations
sourceimpl W
impl W
sourcepub fn lpds(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, bool, BitM, 0>
pub fn lpds(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, bool, BitM, 0>
Bit 0 - Low-power Deepsleep with SVOS3 (SVOS4 and SVOS5 always use low-power, regardless of the setting of this bit)
sourcepub fn pvde(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, bool, BitM, 4>
pub fn pvde(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, bool, BitM, 4>
Bit 4 - Programmable voltage detector enable
sourcepub fn pls(&mut self) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, u8, Unsafe, 3, 5>
pub fn pls(&mut self) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, u8, Unsafe, 3, 5>
Bits 5:7 - Programmable voltage detector level selection These bits select the voltage threshold detected by the PVD. Note: Refer to Section Electrical characteristics of the product datasheet for more details.
sourcepub fn dbp(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, bool, BitM, 8>
pub fn dbp(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, bool, BitM, 8>
Bit 8 - Disable backup domain write protection In reset state, the RCC_BDCR register, the RTC registers (including the backup registers), BREN and MOEN bits in PWR_CR2 register, are protected against parasitic write access. This bit must be set to enable write access to these registers.
sourcepub fn flps(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, bool, BitM, 9>
pub fn flps(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, bool, BitM, 9>
Bit 9 - Flash low-power mode in DStop mode This bit allows to obtain the best trade-off between low-power consumption and restart time when exiting from DStop mode. When it is set, the Flash memory enters low-power mode when D1 domain is in DStop mode.
sourcepub fn svos(
&mut self
) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, u8, Unsafe, 2, 14>
pub fn svos(
&mut self
) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, u8, Unsafe, 2, 14>
Bits 14:15 - System Stop mode voltage scaling selection These bits control the VCORE voltage level in system Stop mode, to obtain the best trade-off between power consumption and performance.
sourcepub fn avden(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, bool, BitM, 16>
pub fn avden(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, bool, BitM, 16>
Bit 16 - Peripheral voltage monitor on VDDA enable
Methods from Deref<Target = W<CR1_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.