Trait stm32f412g::clocks::Stm32f4Clocks

source ·
pub trait Stm32f4Clocks {
    // Required methods
    fn get_rcc(&self) -> &Rcc;
    fn get_ahb_frequency(&self) -> usize;
}
Expand description

Stm32f4Clocks trait

This can be used to control clocks without the need to keep a reference of the chip specific Clocks struct, for instance by peripherals

Required Methods§

source

fn get_rcc(&self) -> &Rcc

Get RCC instance

source

fn get_ahb_frequency(&self) -> usize

Get current AHB clock (HCLK) frequency in Hz

Implementors§

source§

impl<'a, ChipSpecs> Stm32f4Clocks for Clocks<'a, ChipSpecs>
where ChipSpecs: ChipSpecs,