Struct stm32_metapac::pwr::regs::Cr3
#[repr(transparent)]pub struct Cr3(pub u32);
Expand description
Reset only by POR only, not reset by wakeup from Standby mode and RESET pad. The lower byte of this register is written once after POR and shall be written before changing VOS level or ck_sys clock frequency. No limitation applies to the upper bytes.Programming data corresponding to an invalid combination of SDLEVEL, SDEXTHP, SDEN, LDOEN and BYPASS bits (see Table9) will be ignored: data will not be written, the written-once mechanism will lock the register and any further write access will be ignored. The default supply configuration will be kept and the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) will go on indicating invalid voltage levels. The system shall be power cycled before writing a new value.
Tuple Fields§
§0: u32
Implementations§
§impl Cr3
impl Cr3
pub fn set_bypass(&mut self, val: bool)
pub fn set_bypass(&mut self, val: bool)
Power management unit bypass
pub fn set_sdexthp(&mut self, val: bool)
pub fn set_sdexthp(&mut self, val: bool)
Step-down converter forced ON and in High Power MR mode
pub fn set_sdlevel(&mut self, val: u8)
pub fn set_sdlevel(&mut self, val: u8)
Step-down converter voltage output level selection
pub fn set_sdextrdy(&mut self, val: bool)
pub fn set_sdextrdy(&mut self, val: bool)
SMPS step-down converter external supply ready
pub fn set_usb33den(&mut self, val: bool)
pub fn set_usb33den(&mut self, val: bool)
VDD33USB voltage level detector enable.
pub fn set_usbregen(&mut self, val: bool)
pub fn set_usbregen(&mut self, val: bool)
USB regulator enable.
pub fn set_usb33rdy(&mut self, val: bool)
pub fn set_usb33rdy(&mut self, val: bool)
USB supply ready.
Trait Implementations§
impl Copy for Cr3
impl Eq for Cr3
impl StructuralPartialEq for Cr3
Auto Trait Implementations§
impl Freeze for Cr3
impl RefUnwindSafe for Cr3
impl Send for Cr3
impl Sync for Cr3
impl Unpin for Cr3
impl UnwindSafe for Cr3
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)