Struct stm32_metapac::pwr::regs::Cr2
#[repr(transparent)]pub struct Cr2(pub u32);
Expand description
Power control register 2
Tuple Fields§
§0: u32
Implementations§
§impl Cr2
impl Cr2
pub fn set_pvmen1(&mut self, val: bool)
pub fn set_pvmen1(&mut self, val: bool)
Peripheral voltage monitoring 1 enable: VDDA vs. COMP min voltage
pub const fn pvmen2(&self) -> bool
pub const fn pvmen2(&self) -> bool
Peripheral voltage monitoring 2 enable: VDDA vs. Fast DAC min voltage
pub fn set_pvmen2(&mut self, val: bool)
pub fn set_pvmen2(&mut self, val: bool)
Peripheral voltage monitoring 2 enable: VDDA vs. Fast DAC min voltage
pub const fn pvmen3(&self) -> bool
pub const fn pvmen3(&self) -> bool
Peripheral voltage monitoring 3 enable: VDDA vs. ADC min voltage 1.62V
pub fn set_pvmen3(&mut self, val: bool)
pub fn set_pvmen3(&mut self, val: bool)
Peripheral voltage monitoring 3 enable: VDDA vs. ADC min voltage 1.62V
pub const fn pvmen4(&self) -> bool
pub const fn pvmen4(&self) -> bool
Peripheral voltage monitoring 4 enable: VDDA vs. OPAMP/DAC min voltage
pub fn set_pvmen4(&mut self, val: bool)
pub fn set_pvmen4(&mut self, val: bool)
Peripheral voltage monitoring 4 enable: VDDA vs. OPAMP/DAC min voltage
Trait Implementations§
impl Copy for Cr2
impl Eq for Cr2
impl StructuralPartialEq for Cr2
Auto Trait Implementations§
impl Freeze for Cr2
impl RefUnwindSafe for Cr2
impl Send for Cr2
impl Sync for Cr2
impl Unpin for Cr2
impl UnwindSafe for Cr2
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
)