[][src]Function imxrt1062_hal::ccm::ticks

pub fn ticks<R: TicksRepr>(
    dur: Duration,
    freq: Frequency,
    div: Divider
) -> Result<Ticks<R>, TicksError>

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.