Struct esp32s3_hal::peripherals::TIMG0
source · pub struct TIMG0 { /* private fields */ }
Implementations§
source§impl TIMG0
impl TIMG0
sourcepub unsafe fn steal() -> TIMG0
pub unsafe fn steal() -> TIMG0
Unsafely create an instance of this peripheral out of thin air.
§Safety
You must ensure that you’re only using one instance of this type at a time.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn tconfig(&self, n: usize) -> &Reg<TCONFIG_SPEC>
pub fn tconfig(&self, n: usize) -> &Reg<TCONFIG_SPEC>
0x00..0x08 - Timer %s configuration register
sourcepub fn tconfig_iter(&self) -> impl Iterator<Item = &Reg<TCONFIG_SPEC>>
pub fn tconfig_iter(&self) -> impl Iterator<Item = &Reg<TCONFIG_SPEC>>
Iterator for array of: 0x00..0x08 - Timer %s configuration register
sourcepub fn t0config(&self) -> &Reg<TCONFIG_SPEC>
pub fn t0config(&self) -> &Reg<TCONFIG_SPEC>
0x00 - Timer 0 configuration register
sourcepub fn t1config(&self) -> &Reg<TCONFIG_SPEC>
pub fn t1config(&self) -> &Reg<TCONFIG_SPEC>
0x24 - Timer 1 configuration register
sourcepub fn tlo_iter(&self) -> impl Iterator<Item = &Reg<TLO_SPEC>>
pub fn tlo_iter(&self) -> impl Iterator<Item = &Reg<TLO_SPEC>>
Iterator for array of: 0x04..0x0c - Timer %s current value, low 32 bits
sourcepub fn thi(&self, n: usize) -> &Reg<THI_SPEC>
pub fn thi(&self, n: usize) -> &Reg<THI_SPEC>
0x08..0x10 - Timer %s current value, high 22 bits
sourcepub fn thi_iter(&self) -> impl Iterator<Item = &Reg<THI_SPEC>>
pub fn thi_iter(&self) -> impl Iterator<Item = &Reg<THI_SPEC>>
Iterator for array of: 0x08..0x10 - Timer %s current value, high 22 bits
sourcepub fn tupdate(&self, n: usize) -> &Reg<TUPDATE_SPEC>
pub fn tupdate(&self, n: usize) -> &Reg<TUPDATE_SPEC>
0x0c..0x14 - Write to copy current timer value to TIMGn_T%s_(LO/HI)_REG
sourcepub fn tupdate_iter(&self) -> impl Iterator<Item = &Reg<TUPDATE_SPEC>>
pub fn tupdate_iter(&self) -> impl Iterator<Item = &Reg<TUPDATE_SPEC>>
Iterator for array of: 0x0c..0x14 - Write to copy current timer value to TIMGn_T%s_(LO/HI)_REG
sourcepub fn t0update(&self) -> &Reg<TUPDATE_SPEC>
pub fn t0update(&self) -> &Reg<TUPDATE_SPEC>
0x0c - Write to copy current timer value to TIMGn_T0_(LO/HI)_REG
sourcepub fn t1update(&self) -> &Reg<TUPDATE_SPEC>
pub fn t1update(&self) -> &Reg<TUPDATE_SPEC>
0x30 - Write to copy current timer value to TIMGn_T1_(LO/HI)_REG
sourcepub fn talarmlo(&self, n: usize) -> &Reg<TALARMLO_SPEC>
pub fn talarmlo(&self, n: usize) -> &Reg<TALARMLO_SPEC>
0x10..0x18 - Timer %s alarm value, low 32 bits
sourcepub fn talarmlo_iter(&self) -> impl Iterator<Item = &Reg<TALARMLO_SPEC>>
pub fn talarmlo_iter(&self) -> impl Iterator<Item = &Reg<TALARMLO_SPEC>>
Iterator for array of: 0x10..0x18 - Timer %s alarm value, low 32 bits
sourcepub fn t0alarmlo(&self) -> &Reg<TALARMLO_SPEC>
pub fn t0alarmlo(&self) -> &Reg<TALARMLO_SPEC>
0x10 - Timer 0 alarm value, low 32 bits
sourcepub fn t1alarmlo(&self) -> &Reg<TALARMLO_SPEC>
pub fn t1alarmlo(&self) -> &Reg<TALARMLO_SPEC>
0x34 - Timer 1 alarm value, low 32 bits
sourcepub fn talarmhi(&self, n: usize) -> &Reg<TALARMHI_SPEC>
pub fn talarmhi(&self, n: usize) -> &Reg<TALARMHI_SPEC>
0x14..0x1c - Timer %s alarm value, high bits
sourcepub fn talarmhi_iter(&self) -> impl Iterator<Item = &Reg<TALARMHI_SPEC>>
pub fn talarmhi_iter(&self) -> impl Iterator<Item = &Reg<TALARMHI_SPEC>>
Iterator for array of: 0x14..0x1c - Timer %s alarm value, high bits
sourcepub fn t0alarmhi(&self) -> &Reg<TALARMHI_SPEC>
pub fn t0alarmhi(&self) -> &Reg<TALARMHI_SPEC>
0x14 - Timer 0 alarm value, high bits
sourcepub fn t1alarmhi(&self) -> &Reg<TALARMHI_SPEC>
pub fn t1alarmhi(&self) -> &Reg<TALARMHI_SPEC>
0x38 - Timer 1 alarm value, high bits
sourcepub fn tloadlo(&self, n: usize) -> &Reg<TLOADLO_SPEC>
pub fn tloadlo(&self, n: usize) -> &Reg<TLOADLO_SPEC>
0x18..0x20 - Timer %s reload value, low 32 bits
sourcepub fn tloadlo_iter(&self) -> impl Iterator<Item = &Reg<TLOADLO_SPEC>>
pub fn tloadlo_iter(&self) -> impl Iterator<Item = &Reg<TLOADLO_SPEC>>
Iterator for array of: 0x18..0x20 - Timer %s reload value, low 32 bits
sourcepub fn t0loadlo(&self) -> &Reg<TLOADLO_SPEC>
pub fn t0loadlo(&self) -> &Reg<TLOADLO_SPEC>
0x18 - Timer 0 reload value, low 32 bits
sourcepub fn t1loadlo(&self) -> &Reg<TLOADLO_SPEC>
pub fn t1loadlo(&self) -> &Reg<TLOADLO_SPEC>
0x3c - Timer 1 reload value, low 32 bits
sourcepub fn tloadhi(&self, n: usize) -> &Reg<TLOADHI_SPEC>
pub fn tloadhi(&self, n: usize) -> &Reg<TLOADHI_SPEC>
0x1c..0x24 - Timer %s reload value, high 22 bits
sourcepub fn tloadhi_iter(&self) -> impl Iterator<Item = &Reg<TLOADHI_SPEC>>
pub fn tloadhi_iter(&self) -> impl Iterator<Item = &Reg<TLOADHI_SPEC>>
Iterator for array of: 0x1c..0x24 - Timer %s reload value, high 22 bits
sourcepub fn t0loadhi(&self) -> &Reg<TLOADHI_SPEC>
pub fn t0loadhi(&self) -> &Reg<TLOADHI_SPEC>
0x1c - Timer 0 reload value, high 22 bits
sourcepub fn t1loadhi(&self) -> &Reg<TLOADHI_SPEC>
pub fn t1loadhi(&self) -> &Reg<TLOADHI_SPEC>
0x40 - Timer 1 reload value, high 22 bits
sourcepub fn tload(&self, n: usize) -> &Reg<TLOAD_SPEC>
pub fn tload(&self, n: usize) -> &Reg<TLOAD_SPEC>
0x20..0x28 - Write to reload timer from TIMG_T%s_(LOADLOLOADHI)_REG
sourcepub fn tload_iter(&self) -> impl Iterator<Item = &Reg<TLOAD_SPEC>>
pub fn tload_iter(&self) -> impl Iterator<Item = &Reg<TLOAD_SPEC>>
Iterator for array of: 0x20..0x28 - Write to reload timer from TIMG_T%s_(LOADLOLOADHI)_REG
sourcepub fn t0load(&self) -> &Reg<TLOAD_SPEC>
pub fn t0load(&self) -> &Reg<TLOAD_SPEC>
0x20 - Write to reload timer from TIMG_T0_(LOADLOLOADHI)_REG
sourcepub fn t1load(&self) -> &Reg<TLOAD_SPEC>
pub fn t1load(&self) -> &Reg<TLOAD_SPEC>
0x44 - Write to reload timer from TIMG_T1_(LOADLOLOADHI)_REG
sourcepub fn wdtconfig0(&self) -> &Reg<WDTCONFIG0_SPEC>
pub fn wdtconfig0(&self) -> &Reg<WDTCONFIG0_SPEC>
0x48 - Watchdog timer configuration register
sourcepub fn wdtconfig1(&self) -> &Reg<WDTCONFIG1_SPEC>
pub fn wdtconfig1(&self) -> &Reg<WDTCONFIG1_SPEC>
0x4c - Watchdog timer prescaler register
sourcepub fn wdtconfig2(&self) -> &Reg<WDTCONFIG2_SPEC>
pub fn wdtconfig2(&self) -> &Reg<WDTCONFIG2_SPEC>
0x50 - Watchdog timer stage 0 timeout value
sourcepub fn wdtconfig3(&self) -> &Reg<WDTCONFIG3_SPEC>
pub fn wdtconfig3(&self) -> &Reg<WDTCONFIG3_SPEC>
0x54 - Watchdog timer stage 1 timeout value
sourcepub fn wdtconfig4(&self) -> &Reg<WDTCONFIG4_SPEC>
pub fn wdtconfig4(&self) -> &Reg<WDTCONFIG4_SPEC>
0x58 - Watchdog timer stage 2 timeout value
sourcepub fn wdtconfig5(&self) -> &Reg<WDTCONFIG5_SPEC>
pub fn wdtconfig5(&self) -> &Reg<WDTCONFIG5_SPEC>
0x5c - Watchdog timer stage 3 timeout value
sourcepub fn wdtfeed(&self) -> &Reg<WDTFEED_SPEC>
pub fn wdtfeed(&self) -> &Reg<WDTFEED_SPEC>
0x60 - Write to feed the watchdog timer
sourcepub fn wdtwprotect(&self) -> &Reg<WDTWPROTECT_SPEC>
pub fn wdtwprotect(&self) -> &Reg<WDTWPROTECT_SPEC>
0x64 - Watchdog write protect register
sourcepub fn rtccalicfg(&self) -> &Reg<RTCCALICFG_SPEC>
pub fn rtccalicfg(&self) -> &Reg<RTCCALICFG_SPEC>
0x68 - RTC calibration configure register
sourcepub fn rtccalicfg1(&self) -> &Reg<RTCCALICFG1_SPEC>
pub fn rtccalicfg1(&self) -> &Reg<RTCCALICFG1_SPEC>
0x6c - RTC calibration configure1 register
sourcepub fn int_ena_timers(&self) -> &Reg<INT_ENA_TIMERS_SPEC>
pub fn int_ena_timers(&self) -> &Reg<INT_ENA_TIMERS_SPEC>
0x70 - Interrupt enable bits
sourcepub fn int_raw_timers(&self) -> &Reg<INT_RAW_TIMERS_SPEC>
pub fn int_raw_timers(&self) -> &Reg<INT_RAW_TIMERS_SPEC>
0x74 - Raw interrupt status
sourcepub fn int_st_timers(&self) -> &Reg<INT_ST_TIMERS_SPEC>
pub fn int_st_timers(&self) -> &Reg<INT_ST_TIMERS_SPEC>
0x78 - Masked interrupt status
sourcepub fn int_clr_timers(&self) -> &Reg<INT_CLR_TIMERS_SPEC>
pub fn int_clr_timers(&self) -> &Reg<INT_CLR_TIMERS_SPEC>
0x7c - Interrupt clear bits
sourcepub fn rtccalicfg2(&self) -> &Reg<RTCCALICFG2_SPEC>
pub fn rtccalicfg2(&self) -> &Reg<RTCCALICFG2_SPEC>
0x80 - Timer group calibration register
sourcepub fn ntimers_date(&self) -> &Reg<NTIMERS_DATE_SPEC>
pub fn ntimers_date(&self) -> &Reg<NTIMERS_DATE_SPEC>
0xf8 - Timer version control register
sourcepub fn regclk(&self) -> &Reg<REGCLK_SPEC>
pub fn regclk(&self) -> &Reg<REGCLK_SPEC>
0xfc - Timer group clock gate register