pub struct CoreClocks { /* private fields */ }
Expand description

Frozen core clock frequencies

The existence of this value indicates that the core clock configuration can no longer be changed

Implementations§

source§

impl CoreClocks

source

pub fn hclk(&self) -> Hertz

Returns the frequency of AHB1,2,3 busses

source

pub fn aclk(&self) -> Hertz

Returns the frequency of the AXI bus

source

pub fn pclk1(&self) -> Hertz

Returns the frequency of the APBn

source

pub fn ppre1(&self) -> u8

Returns the prescaler of the APBn

source

pub fn pclk2(&self) -> Hertz

Returns the frequency of the APBn

source

pub fn ppre2(&self) -> u8

Returns the prescaler of the APBn

source

pub fn pclk3(&self) -> Hertz

Returns the frequency of the APBn

source

pub fn ppre3(&self) -> u8

Returns the prescaler of the APBn

source

pub fn pclk4(&self) -> Hertz

Returns the frequency of the APBn

source

pub fn ppre4(&self) -> u8

Returns the prescaler of the APBn

source

pub fn csi_ck(&self) -> Option<Hertz>

Returns Some(frequency) if csi_ck is running, otherwise None

source

pub fn hsi_ck(&self) -> Option<Hertz>

Returns Some(frequency) if hsi_ck is running, otherwise None

source

pub fn hsi48_ck(&self) -> Option<Hertz>

Returns Some(frequency) if hsi48_ck is running, otherwise None

source

pub fn per_ck(&self) -> Option<Hertz>

Returns Some(frequency) if per_ck is running, otherwise None

source

pub fn hse_ck(&self) -> Option<Hertz>

Returns Some(frequency) if hse_ck is running, otherwise None

source

pub fn lsi_ck(&self) -> Option<Hertz>

Returns Some(frequency) if lsi_ck is running, otherwise None

source

pub fn mco1_ck(&self) -> Option<Hertz>

Returns Some(frequency) if the MCO1 output is running, otherwise None

source

pub fn mco2_ck(&self) -> Option<Hertz>

Returns Some(frequency) if the MCO2 output is running, otherwise None

source

pub fn pll1_p_ck(&self) -> Option<Hertz>

Returns Some(frequency) if the PLLx output is running, otherwise None

source

pub fn pll1_q_ck(&self) -> Option<Hertz>

Returns Some(frequency) if the PLLx output is running, otherwise None

source

pub fn pll1_r_ck(&self) -> Option<Hertz>

Returns Some(frequency) if the PLLx output is running, otherwise None

source

pub fn pll2_p_ck(&self) -> Option<Hertz>

Returns Some(frequency) if the PLLx output is running, otherwise None

source

pub fn pll2_q_ck(&self) -> Option<Hertz>

Returns Some(frequency) if the PLLx output is running, otherwise None

source

pub fn pll2_r_ck(&self) -> Option<Hertz>

Returns Some(frequency) if the PLLx output is running, otherwise None

source

pub fn pll3_p_ck(&self) -> Option<Hertz>

Returns Some(frequency) if the PLLx output is running, otherwise None

source

pub fn pll3_q_ck(&self) -> Option<Hertz>

Returns Some(frequency) if the PLLx output is running, otherwise None

source

pub fn pll3_r_ck(&self) -> Option<Hertz>

Returns Some(frequency) if the PLLx output is running, otherwise None

source

pub fn sys_ck(&self) -> Hertz

Returns the input frequency to the SCGU

source

pub fn sysclk(&self) -> Hertz

Returns the input frequency to the SCGU - ALIAS

source

pub fn timx_ker_ck(&self) -> Hertz

Returns the CK_INT frequency for timers on APB1

source

pub fn timy_ker_ck(&self) -> Hertz

Returns the CK_INT frequency for timers on APB2

source

pub fn c_ck(&self) -> Hertz

Returns the core frequency

Trait Implementations§

source§

impl Clone for CoreClocks

source§

fn clone(&self) -> CoreClocks

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 Copy for CoreClocks

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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.