pub struct GenericTimerCnt<'a> { /* private fields */ }
Expand description
Driver for the CNTBase timer block.
Implementations§
Source§impl<'a> GenericTimerCnt<'a>
impl<'a> GenericTimerCnt<'a>
Sourcepub fn new(regs: UniqueMmioPointer<'a, CntBase>) -> Self
pub fn new(regs: UniqueMmioPointer<'a, CntBase>) -> 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 el0_access(&self) -> CntEl0Acr
pub fn el0_access(&self) -> CntEl0Acr
Gets second view access rights.
Sourcepub fn set_el0_access(&mut self, value: CntEl0Acr)
pub fn set_el0_access(&mut self, value: CntEl0Acr)
Sets second view access rights.
Sourcepub fn virtual_offset(&self) -> u64
pub fn virtual_offset(&self) -> u64
Gets the 64-bit virtual offset for frame CNTBase.
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 GenericTimerCnt<'a>
impl<'a> RefUnwindSafe for GenericTimerCnt<'a>
impl<'a> Send for GenericTimerCnt<'a>
impl<'a> !Sync for GenericTimerCnt<'a>
impl<'a> Unpin for GenericTimerCnt<'a>
impl<'a> UnwindSafe for GenericTimerCnt<'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