Struct stm32_metapac::pwr::regs::Voscr
#[repr(transparent)]pub struct Voscr(pub u32);
Expand description
PWR voltage scaling control register.
Tuple Fields§
§0: u32
Implementations§
§impl Voscr
impl Voscr
pub const fn vos(&self) -> Vos
pub const fn vos(&self) -> Vos
voltage scaling selection according to performance These bits control the V_CORE voltage level and allow to obtain the best trade-off between power consumption and performance: - In bypass mode, these bits must also be set according to the external provided core voltage level and related performance. - When increasing the performance, the voltage scaling must be changed before increasing the system frequency. - When decreasing performance, the system frequency must first be decreased before changing the voltage scaling.
pub fn set_vos(&mut self, val: Vos)
pub fn set_vos(&mut self, val: Vos)
voltage scaling selection according to performance These bits control the V_CORE voltage level and allow to obtain the best trade-off between power consumption and performance: - In bypass mode, these bits must also be set according to the external provided core voltage level and related performance. - When increasing the performance, the voltage scaling must be changed before increasing the system frequency. - When decreasing performance, the system frequency must first be decreased before changing the voltage scaling.