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_ahb_frequency(&self) -> usize
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".