#[repr(u8)]
pub enum HPRE_A {
Show 14 variants Div1 = 0, Div3 = 1, Div5 = 2, Div6 = 5, Div10 = 6, Div32 = 7, Div2 = 8, Div4 = 9, Div8 = 10, Div16 = 11, Div64 = 12, Div128 = 13, Div256 = 14, Div512 = 15,
}
Available on crate feature stm32wl5x_cm4 only.
Expand description

HCLK1 prescaler (CPU1, AHB1, AHB2, and SRAM1.)

Value on reset: 0

Variants§

§

Div1 = 0

0: SYSCLK not divided

§

Div3 = 1

1: SYSCLK divided by 3

§

Div5 = 2

2: SYSCLK divided by 5

§

Div6 = 5

5: SYSCLK divided by 6

§

Div10 = 6

6: SYSCLK divided by 10

§

Div32 = 7

7: SYSCLK divided by 32

§

Div2 = 8

8: SYSCLK divided by 2

§

Div4 = 9

9: SYSCLK divided by 4

§

Div8 = 10

10: SYSCLK divided by 8

§

Div16 = 11

11: SYSCLK divided by 16

§

Div64 = 12

12: SYSCLK divided by 64

§

Div128 = 13

13: SYSCLK divided by 128

§

Div256 = 14

14: SYSCLK divided by 128

§

Div512 = 15

15: SYSCLK divided by 512

Trait Implementations§

§

impl Clone for HPRE_A

§

fn clone(&self) -> HPRE_A

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
§

impl Debug for HPRE_A

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for HPRE_A

§

fn eq(&self, other: &HPRE_A) -> 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.
§

impl Copy for HPRE_A

§

impl StructuralPartialEq for HPRE_A

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,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

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.
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.
source§

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

Performs the conversion.