[−][src]Struct imxrt_hal::pit::ChainedPIT
Two PIT timers chained together
Implementations
impl<C0, C1> ChainedPIT<C0, C1> where
C1: Channel,
[src]
C1: Channel,
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]
C0: Channel,
C1: Channel,
Auto Trait Implementations
impl<C0, C1> Send for ChainedPIT<C0, C1> where
C0: Send,
C1: Send,
C0: Send,
C1: Send,
impl<C0, C1> Sync for ChainedPIT<C0, C1> where
C0: Sync,
C1: Sync,
C0: Sync,
C1: Sync,
impl<C0, C1> Unpin for ChainedPIT<C0, C1> where
C0: Unpin,
C1: Unpin,
C0: Unpin,
C1: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,