Struct stm32_metapac::pwr::regs::Cr4
#[repr(transparent)]pub struct Cr4(pub u32);
Expand description
Power control register 4
Tuple Fields§
§0: u32
Implementations§
§impl Cr4
impl Cr4
pub fn set_smpsbyp(&mut self, val: bool)
pub fn set_smpsbyp(&mut self, val: bool)
SMPSBYP
pub fn set_extsmpsen(&mut self, val: bool)
pub fn set_extsmpsen(&mut self, val: bool)
EXTSMPSEN
pub fn set_smpsfsten(&mut self, val: bool)
pub fn set_smpsfsten(&mut self, val: bool)
SMPSFSTEN
pub fn set_smpslpen(&mut self, val: bool)
pub fn set_smpslpen(&mut self, val: bool)
SMPSLPEN
Trait Implementations§
impl Copy for Cr4
impl Eq for Cr4
impl StructuralPartialEq for Cr4
Auto Trait Implementations§
impl Freeze for Cr4
impl RefUnwindSafe for Cr4
impl Send for Cr4
impl Sync for Cr4
impl Unpin for Cr4
impl UnwindSafe for Cr4
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
)