embassy-stm32

Crates

git

Versions

stm32h7r3a8

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