pub trait Timer: Sealed {
    // Required methods
    fn clear_interrupt(&self);
    fn is_interrupt_set(&self) -> bool;
    fn peripheral_interrupt(&self) -> Interrupt;
}Expand description
Functionality provided by any timer peripheral.
Required Methods§
Sourcefn clear_interrupt(&self)
 
fn clear_interrupt(&self)
Clear the timer’s interrupt.
Sourcefn is_interrupt_set(&self) -> bool
 
fn is_interrupt_set(&self) -> bool
Has the timer triggered?
Sourcefn peripheral_interrupt(&self) -> Interrupt
 
fn peripheral_interrupt(&self) -> Interrupt
Returns the interrupt source for the underlying timer