Struct imxrt_hal::pit::PIT [−][src]
pub struct PIT<Chan> { /* fields omitted */ }
Expand description
A periodic interrupt timer (PIT)
Implementations
Returns the period of the clock ticks. This is the inverse of the clock frequency
Measure the execution duration of act
with this timer. Returns the duration
of the action, or None
if the timer expired before the action completed.
time
will measure the difference of counts in a 32 bit register. The counter
changes every clock period. The clock accuracy is based on our ability to round
integers. Consider choosing the input clock frequency and prescalars to define
a clock that can accurately measure your workloads.
The method will disable any interrupts that this timer has enabled. It will also reset the timer to execute this measurement.
If you need a 64 bit timer, use the chain
function to combine timer 0 and
timer 1. The two can crate the ‘lifetime’ timer, which is capable of measuring
larger intervals.
Enable the timer to trigger an interrupt when the timer expires
Returns true
if the timer will trigger an interrupt when
it expires.