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.