Function stm32wlxx_hal::rcc::hclk3_hz

source ·
pub fn hclk3_hz(rcc: &RCC) -> u32
Expand description

Calculate the current hclk3 frequency in hertz

Fractional frequencies will be rounded down.

Example

use stm32wlxx_hal::{pac, rcc::hclk3_hz};

let dp: pac::Peripherals = pac::Peripherals::take().unwrap();

// without any initialization hclk3 will be 4MHz
assert_eq!(hclk3_hz(&dp.RCC), 4_000_000);