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.
Trait Implementations§
impl Copy for Voscr
impl Eq for Voscr
impl StructuralPartialEq for Voscr
Auto Trait Implementations§
impl Freeze for Voscr
impl RefUnwindSafe for Voscr
impl Send for Voscr
impl Sync for Voscr
impl Unpin for Voscr
impl UnwindSafe for Voscr
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
)