Struct stm32_metapac::pwr::regs::Svmcr
#[repr(transparent)]pub struct Svmcr(pub u32);
Expand description
supply voltage monitoring control register
Tuple Fields§
§0: u32
Implementations§
§impl Svmcr
impl Svmcr
pub const fn pvdls(&self) -> Pvdls
pub const fn pvdls(&self) -> Pvdls
Power voltage detector level selection These bits select the voltage threshold detected by the power voltage detector:
pub fn set_pvdls(&mut self, val: Pvdls)
pub fn set_pvdls(&mut self, val: Pvdls)
Power voltage detector level selection These bits select the voltage threshold detected by the power voltage detector:
pub fn set_io2vmen(&mut self, val: bool)
pub fn set_io2vmen(&mut self, val: bool)
VDDIO2 independent I/Os voltage monitor enable
pub const fn avm1en(&self) -> bool
pub const fn avm1en(&self) -> bool
VDDA independent analog supply voltage monitor 1 enable (1.6V threshold)
pub fn set_avm1en(&mut self, val: bool)
pub fn set_avm1en(&mut self, val: bool)
VDDA independent analog supply voltage monitor 1 enable (1.6V threshold)
pub const fn avm2en(&self) -> bool
pub const fn avm2en(&self) -> bool
VDDA independent analog supply voltage monitor 2 enable (1.8V threshold)
pub fn set_avm2en(&mut self, val: bool)
pub fn set_avm2en(&mut self, val: bool)
VDDA independent analog supply voltage monitor 2 enable (1.8V threshold)
pub const fn io2sv(&self) -> bool
pub const fn io2sv(&self) -> bool
VDDIO2 independent I/Os supply valid This bit is used to validate the VDDIO2 supply for electrical and logical isolation purpose. Setting this bit is mandatory to use PG[15:2]. If VDDIO2 is not always present in the application, the VDDIO2 voltage monitor can be used to determine whether this supply is ready or not.
pub fn set_io2sv(&mut self, val: bool)
pub fn set_io2sv(&mut self, val: bool)
VDDIO2 independent I/Os supply valid This bit is used to validate the VDDIO2 supply for electrical and logical isolation purpose. Setting this bit is mandatory to use PG[15:2]. If VDDIO2 is not always present in the application, the VDDIO2 voltage monitor can be used to determine whether this supply is ready or not.
Trait Implementations§
impl Copy for Svmcr
impl Eq for Svmcr
impl StructuralPartialEq for Svmcr
Auto Trait Implementations§
impl Freeze for Svmcr
impl RefUnwindSafe for Svmcr
impl Send for Svmcr
impl Sync for Svmcr
impl Unpin for Svmcr
impl UnwindSafe for Svmcr
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
)