Skip to main content

Stm32f4Clocks

Trait Stm32f4Clocks 

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§

fn get_rcc(&self) -> &Rcc

Get RCC instance

fn get_ahb_frequency(&self) -> usize

Get current AHB clock (HCLK) frequency in Hz

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

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