pub trait TimerInterface {
// Required methods
fn enable(&mut self);
fn frequency(&self) -> u32;
fn timer_value(&self) -> u32;
}Expand description
Interface for accessing common timer registers.
Required Methods§
Sourcefn timer_value(&self) -> u32
fn timer_value(&self) -> u32
Returns the down-counter value.
Implementors§
impl TimerInterface for El2VirtualTimer
Available on crate feature
el2 only.impl TimerInterface for HypervisorPhysicalTimer
Available on crate feature
el2 only.impl TimerInterface for PhysicalSecureTimer
Available on crate feature
el1 only.impl TimerInterface for PhysicalTimer
impl TimerInterface for SecureEl2PhysicalTimer
Available on crate feature
el2 only.impl TimerInterface for SecureEl2VirtualTimer
Available on crate feature
el2 only.