pub struct Timer3 { /* private fields */ }Expand description
Timer 3
Implementations§
source§impl Timer3
impl Timer3
sourcepub const PTR: *const RegisterBlock = {0xff850060 as *const timer::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xff850060 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 timer_n_load_count0(&self) -> &TimerNLoadCount0
pub fn timer_n_load_count0(&self) -> &TimerNLoadCount0
0x00 - Timer n higher Load Count Register
sourcepub fn timer_n_load_count1(&self) -> &TimerNLoadCount1
pub fn timer_n_load_count1(&self) -> &TimerNLoadCount1
0x04 - Timer n higher Load Count Register
sourcepub fn timer_n_current_value0(&self) -> &TimerNCurrentValue0
pub fn timer_n_current_value0(&self) -> &TimerNCurrentValue0
0x08 - Timer n Current Value Register
sourcepub fn timer_n_current_value1(&self) -> &TimerNCurrentValue1
pub fn timer_n_current_value1(&self) -> &TimerNCurrentValue1
0x0c - Timer n Current Value Register
sourcepub fn timer_n_load_count2(&self) -> &TimerNLoadCount2
pub fn timer_n_load_count2(&self) -> &TimerNLoadCount2
0x10 - Timer n lower Load Count Register
sourcepub fn timer_n_load_count3(&self) -> &TimerNLoadCount3
pub fn timer_n_load_count3(&self) -> &TimerNLoadCount3
0x14 - Timer n lower Load Count Register
sourcepub fn timer_n_intstatus(&self) -> &TimerNIntstatus
pub fn timer_n_intstatus(&self) -> &TimerNIntstatus
0x18 - Timer Interrupt Stauts Register
sourcepub fn timer_n_controlreg(&self) -> &TimerNControlreg
pub fn timer_n_controlreg(&self) -> &TimerNControlreg
0x1c - Timer n Control Register