embassy-stm32

Crates

git

Versions

stm32h7a3zi

Flavors

embassy_stm32::can::util

Function calc_can_timings

Source
pub fn calc_can_timings(
    periph_clock: Hertz,
    can_bitrate: u32,
) -> Option<NominalBitTiming>
Expand description

Calculate nominal CAN bit timing based on CAN bitrate and periphial clock frequency