Enum stm32_hal2::clocks::VosRange
source · [−]#[repr(u8)]
pub enum VosRange {
VOS0,
VOS1,
VOS2,
VOS3,
}
Expand description
Range for the VOS. See H743 RM, section 6.8.6: PWR D3 domain control register. Sets PWR_D3CR,
VOS
field.
Variants
VOS0
1.26 V - 1.40 V
VOS1
1.15 V - 1.26 V
VOS2
1.05 V - 1.15 V
VOS3
0.95 V - 1.05 V
Implementations
sourceimpl VosRange
impl VosRange
sourcepub fn wait_states(&self, hclk: u32) -> (u8, u8)
pub fn wait_states(&self, hclk: u32) -> (u8, u8)
Power regulator voltage scale. Choose the wait states based on VSO range and hclk frequency.. See H743 RM, Table 17: FLASH, or RM0468, table 16. recommended number of wait states and programming delay. Returns a tuple of (number of wait states, programming delay) (FLASH ACR_LATENCY, WRHIGHFREQ) values respectively.
Trait Implementations
impl Copy for VosRange
impl StructuralPartialEq for VosRange
Auto Trait Implementations
impl RefUnwindSafe for VosRange
impl Send for VosRange
impl Sync for VosRange
impl Unpin for VosRange
impl UnwindSafe for VosRange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more