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§
Provided Methods§
Sourcefn get_perif() -> &'static RegisterBlock
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.