Struct rk3399_pac::Timer10
source · pub struct Timer10 { /* private fields */ }
Expand description
Timer 10 Registers
Implementations§
source§impl Timer10
impl Timer10
sourcepub const PTR: *const RegisterBlock = {0xff858080 as *const timer::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xff858080 as *const timer::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn n_load_count0(&self) -> &NLoadCount0
pub fn n_load_count0(&self) -> &NLoadCount0
0x00 - Timer n higher Load Count Register
sourcepub fn n_load_count1(&self) -> &NLoadCount1
pub fn n_load_count1(&self) -> &NLoadCount1
0x04 - Timer n higher Load Count Register
sourcepub fn n_current_value0(&self) -> &NCurrentValue0
pub fn n_current_value0(&self) -> &NCurrentValue0
0x08 - Timer n Current Value Register
sourcepub fn n_current_value1(&self) -> &NCurrentValue1
pub fn n_current_value1(&self) -> &NCurrentValue1
0x0c - Timer n Current Value Register
sourcepub fn n_load_count2(&self) -> &NLoadCount2
pub fn n_load_count2(&self) -> &NLoadCount2
0x10 - Timer n lower Load Count Register
sourcepub fn n_load_count3(&self) -> &NLoadCount3
pub fn n_load_count3(&self) -> &NLoadCount3
0x14 - Timer n lower Load Count Register
sourcepub fn n_intstatus(&self) -> &NIntstatus
pub fn n_intstatus(&self) -> &NIntstatus
0x18 - Timer Interrupt Stauts Register
sourcepub fn n_controlreg(&self) -> &NControlreg
pub fn n_controlreg(&self) -> &NControlreg
0x1c - Timer n Control Register