pub trait StandardBitTiming {
    fn bit_timing_for_bitrate(
        clock_rate: u32,
        bitrate: u32
    ) -> Result<BitTiming, ErrorCode>; }
Expand description

The StandardBitTiming trait is used to calculate the optimum timing parameters for a given bitrate and the clock’s frequency.

Required Methods

Implementors

The default implementation for the bit_timing_for_bitrate method. This algorithm is inspired by the Zephyr CAN driver available at <https://github.com/zephyrproject-rtos/zephyr/tree/main/drivers/can>