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.

Trait Implementations

The unit of time used by this timer

Starts a new count down

Non-blockingly “waits” until the count down finishes Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.