pub struct GenericTimerCntEl0<'a> { /* private fields */ }
Expand description
Driver for the CNTEL0Base timer block.
Implementations§
Source§impl<'a> GenericTimerCntEl0<'a>
impl<'a> GenericTimerCntEl0<'a>
Sourcepub fn new(regs: UniqueMmioPointer<'a, CntEl0Base>) -> Self
pub fn new(regs: UniqueMmioPointer<'a, CntEl0Base>) -> Self
Creates new instance.
Sourcepub fn physical_count(&self) -> u64
pub fn physical_count(&self) -> u64
Gets physical count.
Sourcepub fn virtual_count(&self) -> u64
pub fn virtual_count(&self) -> u64
Gets virtual count.
Sourcepub fn physical_timer(&mut self) -> Timer<'_>
pub fn physical_timer(&mut self) -> Timer<'_>
Gets physical timer.
Sourcepub fn virtual_timer(&mut self) -> Timer<'_>
pub fn virtual_timer(&mut self) -> Timer<'_>
Gets virtual timer.
Auto Trait Implementations§
impl<'a> Freeze for GenericTimerCntEl0<'a>
impl<'a> RefUnwindSafe for GenericTimerCntEl0<'a>
impl<'a> Send for GenericTimerCntEl0<'a>
impl<'a> !Sync for GenericTimerCntEl0<'a>
impl<'a> Unpin for GenericTimerCntEl0<'a>
impl<'a> UnwindSafe for GenericTimerCntEl0<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more