[][src]Struct imxrt1062_hal::pit::ChainedPIT

pub struct ChainedPIT<C0, C1> { /* fields omitted */ }

Two PIT timers chained together

Methods

impl<C0, C1> ChainedPIT<C0, C1> where
    C1: Channel
[src]

pub fn set_interrupt_enable(&mut self, interrupt: bool)[src]

Control interrupt generation for this chained PIT timer

pub fn interrupt_enable(&self) -> bool[src]

Returns true if interrupts are enabled, else false if interrupts are disabled.

impl ChainedPIT<_0, _1>[src]

The lifetime timer is PIT0 chained to PIT1. It allows us to time over 64 bits with no carry.

pub fn time<F: FnMut() -> R, R>(&mut self, act: F) -> (R, Option<Duration>)[src]

Time the execution duration of act. Returns the time it took to run act, or None if the timer expired.

See the notes on PIT::time. Unlike PIT::time, this time method uses a 64 bit register, which can help measure larger intervals. As with PIT::time, this function will temporarily disable interrupts and reset any currently-running timer.

This method is only available when chaining timer 0 to timer 1.

Trait Implementations

impl<C0, C1> CountDown for ChainedPIT<C0, C1> where
    C0: Channel,
    C1: Channel
[src]

type Time = Duration

The unit of time used by this timer

Auto Trait Implementations

impl<C0, C1> !Send for ChainedPIT<C0, C1>

impl<C0, C1> !Sync for ChainedPIT<C0, C1>

impl<C0, C1> Unpin for ChainedPIT<C0, C1> where
    C0: Unpin,
    C1: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.