Function imxrt_hal::ccm::ticks[][src]

pub fn ticks<R: TicksRepr>(
    dur: Duration,
    freq: u32,
    div: u32
) -> Result<R, TicksError>
Expand description

Computes the number of clock ticks that span the provide duration, given the clock frequency and clock divider. If there is no divider, use Divider::default() to specify an unused divider. Returns Ok(ticks) when the computation of clock ticks succeeds, or an error.