pub struct TIMER { /* private fields */ }Expand description
Timer Module, includes timer0, timer1, watchdog and audio video synchronization
Implementations§
Source§impl TIMER
impl TIMER
Sourcepub const PTR: *const RegisterBlock = {0x2050000 as *const timer::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x2050000 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 tmr_irq_en(&self) -> &TMR_IRQ_EN
pub fn tmr_irq_en(&self) -> &TMR_IRQ_EN
0x00 - Timer IRQ Enable Register
Sourcepub fn tmr_irq_sta(&self) -> &TMR_IRQ_STA
pub fn tmr_irq_sta(&self) -> &TMR_IRQ_STA
0x04 - Timer Status Register
Sourcepub fn tmr_intv_value(&self, n: usize) -> &TMR_INTV_VALUE
pub fn tmr_intv_value(&self, n: usize) -> &TMR_INTV_VALUE
0x14..0x1c - Timer Interval Value Register
Sourcepub fn tmr0_intv_value(&self) -> &TMR_INTV_VALUE
pub fn tmr0_intv_value(&self) -> &TMR_INTV_VALUE
0x14 - Timer Interval Value Register
Sourcepub fn tmr1_intv_value(&self) -> &TMR_INTV_VALUE
pub fn tmr1_intv_value(&self) -> &TMR_INTV_VALUE
0x24 - Timer Interval Value Register
Sourcepub fn tmr_cur_value(&self, n: usize) -> &TMR_CUR_VALUE
pub fn tmr_cur_value(&self, n: usize) -> &TMR_CUR_VALUE
0x18..0x20 - Timer Current Value Register
Sourcepub fn tmr0_cur_value(&self) -> &TMR_CUR_VALUE
pub fn tmr0_cur_value(&self) -> &TMR_CUR_VALUE
0x18 - Timer Current Value Register
Sourcepub fn tmr1_cur_value(&self) -> &TMR_CUR_VALUE
pub fn tmr1_cur_value(&self) -> &TMR_CUR_VALUE
0x28 - Timer Current Value Register
Sourcepub fn wdog_irq_en(&self) -> &WDOG_IRQ_EN
pub fn wdog_irq_en(&self) -> &WDOG_IRQ_EN
0xa0 - Watchdog IRQ Enable Register
Sourcepub fn wdog_irq_sta(&self) -> &WDOG_IRQ_STA
pub fn wdog_irq_sta(&self) -> &WDOG_IRQ_STA
0xa4 - Watchdog Status Register
Sourcepub fn wdog_soft_rst(&self) -> &WDOG_SOFT_RST
pub fn wdog_soft_rst(&self) -> &WDOG_SOFT_RST
0xa8 - Watchdog Software Reset Register
Sourcepub fn wdog_output_cfg(&self) -> &WDOG_OUTPUT_CFG
pub fn wdog_output_cfg(&self) -> &WDOG_OUTPUT_CFG
0xbc - Watchdog Output Configuration Register
Sourcepub fn avs_cnt_ctl(&self) -> &AVS_CNT_CTL
pub fn avs_cnt_ctl(&self) -> &AVS_CNT_CTL
0xc0 - AVS Counter Control Register
Sourcepub fn avs_cnt_div(&self) -> &AVS_CNT_DIV
pub fn avs_cnt_div(&self) -> &AVS_CNT_DIV
0xcc - AVS Counter Divisor Register