Struct stm32_metapac::pwr::regs::Sccr
#[repr(transparent)]pub struct Sccr(pub u32);
Expand description
PWR supply configuration control register.
Tuple Fields§
§0: u32
Implementations§
§impl Sccr
impl Sccr
pub fn set_bypass(&mut self, val: bool)
pub fn set_bypass(&mut self, val: bool)
power management unit bypass.
pub const fn ldoen(&self) -> bool
pub const fn ldoen(&self) -> bool
LDO enable The value is set by hardware when the package uses the LDO regulator.
pub fn set_ldoen(&mut self, val: bool)
pub fn set_ldoen(&mut self, val: bool)
LDO enable The value is set by hardware when the package uses the LDO regulator.
pub const fn smpsen(&self) -> bool
pub const fn smpsen(&self) -> bool
SMPS enable The value is set by hardware when the package uses the SMPS regulator.
pub fn set_smpsen(&mut self, val: bool)
pub fn set_smpsen(&mut self, val: bool)
SMPS enable The value is set by hardware when the package uses the SMPS regulator.
Trait Implementations§
impl Copy for Sccr
impl Eq for Sccr
impl StructuralPartialEq for Sccr
Auto Trait Implementations§
impl Freeze for Sccr
impl RefUnwindSafe for Sccr
impl Send for Sccr
impl Sync for Sccr
impl Unpin for Sccr
impl UnwindSafe for Sccr
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)