#[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§

source§

impl VosRange

source

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§

source§

impl Clone for VosRange

source§

fn clone(&self) -> VosRange

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PartialEq<VosRange> for VosRange

source§

fn eq(&self, other: &VosRange) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for VosRange

source§

impl StructuralPartialEq for VosRange

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere
T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere
U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.