Trait Timer

Source
pub trait Timer:
    Into<AnyTimer>
    + 'static
    + Sealed {
    // Required methods
    fn clear_interrupt(&self);
    fn is_interrupt_set(&self) -> bool;
    fn peripheral_interrupt(&self) -> Interrupt;
}
Available on crate feature unstable only.
Expand description

Functionality provided by any timer peripheral.

Required Methods§

Source

fn clear_interrupt(&self)

Clear the timer’s interrupt.

Source

fn is_interrupt_set(&self) -> bool

Has the timer triggered?

Source

fn peripheral_interrupt(&self) -> Interrupt

Returns the interrupt source for the underlying timer

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§