TimerDevice

Trait TimerDevice 

Source
pub trait TimerDevice:
    Sealed
    + Clone
    + Copy
    + 'static {
    const ID: usize;

    // Provided method
    fn get_perif() -> &'static RegisterBlock { ... }
}
Expand description

Trait to handle both underlying devices (TIMER0 and TIMER1)

Required Associated Constants§

Source

const ID: usize

Index of the Timer.

Provided Methods§

Source

fn get_perif() -> &'static RegisterBlock

Get a timer registerblock, pointing at the appropriate 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§