#[repr(u8)]
pub enum VcoreRange {
    Range1,
    Range2,
    Range3,
}
Expand description

Voltage range selection for internal voltage regulator

Used as an argument for PWR::switch_vcore_range.

Variants

Range1

Range 1 (1.8 V)

Range2

Range 2 (1.5 V)

Range3

Range 3 (1.2 V)

Implementations

Creates a VcoreRange instance from a bit pattern

Panics

Panics, if an invalid value is passed. See STM32L0x2 reference manual, section 6.4.1 (documentation of VOS field) for valid values.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.