Trait 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,