Struct esp32s2_hal::peripherals::RTC_IO
source · pub struct RTC_IO { /* private fields */ }
Implementations§
source§impl RTC_IO
impl RTC_IO
sourcepub unsafe fn steal() -> RTC_IO
pub unsafe fn steal() -> RTC_IO
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 rtc_gpio_out(&self) -> &Reg<RTC_GPIO_OUT_SPEC>
pub fn rtc_gpio_out(&self) -> &Reg<RTC_GPIO_OUT_SPEC>
0x00 - RTC GPIO output register
sourcepub fn rtc_gpio_out_w1ts(&self) -> &Reg<RTC_GPIO_OUT_W1TS_SPEC>
pub fn rtc_gpio_out_w1ts(&self) -> &Reg<RTC_GPIO_OUT_W1TS_SPEC>
0x04 - RTC GPIO output bit set register
sourcepub fn rtc_gpio_out_w1tc(&self) -> &Reg<RTC_GPIO_OUT_W1TC_SPEC>
pub fn rtc_gpio_out_w1tc(&self) -> &Reg<RTC_GPIO_OUT_W1TC_SPEC>
0x08 - RTC GPIO output bit clear register
sourcepub fn rtc_gpio_enable(&self) -> &Reg<RTC_GPIO_ENABLE_SPEC>
pub fn rtc_gpio_enable(&self) -> &Reg<RTC_GPIO_ENABLE_SPEC>
0x0c - RTC GPIO output enable register
sourcepub fn rtc_gpio_enable_w1ts(&self) -> &Reg<RTC_GPIO_ENABLE_W1TS_SPEC>
pub fn rtc_gpio_enable_w1ts(&self) -> &Reg<RTC_GPIO_ENABLE_W1TS_SPEC>
0x10 - RTC GPIO output enable bit set register
sourcepub fn enable_w1tc(&self) -> &Reg<ENABLE_W1TC_SPEC>
pub fn enable_w1tc(&self) -> &Reg<ENABLE_W1TC_SPEC>
0x14 - RTC GPIO output enable bit clear register
sourcepub fn rtc_gpio_status(&self) -> &Reg<RTC_GPIO_STATUS_SPEC>
pub fn rtc_gpio_status(&self) -> &Reg<RTC_GPIO_STATUS_SPEC>
0x18 - RTC GPIO interrupt status register
sourcepub fn rtc_gpio_status_w1ts(&self) -> &Reg<RTC_GPIO_STATUS_W1TS_SPEC>
pub fn rtc_gpio_status_w1ts(&self) -> &Reg<RTC_GPIO_STATUS_W1TS_SPEC>
0x1c - RTC GPIO interrupt status bit set register
sourcepub fn rtc_gpio_status_w1tc(&self) -> &Reg<RTC_GPIO_STATUS_W1TC_SPEC>
pub fn rtc_gpio_status_w1tc(&self) -> &Reg<RTC_GPIO_STATUS_W1TC_SPEC>
0x20 - RTC GPIO interrupt status bit clear register
sourcepub fn rtc_gpio_in(&self) -> &Reg<RTC_GPIO_IN_SPEC>
pub fn rtc_gpio_in(&self) -> &Reg<RTC_GPIO_IN_SPEC>
0x24 - RTC GPIO input register
sourcepub fn pin_iter(&self) -> impl Iterator<Item = &Reg<PIN_SPEC>>
pub fn pin_iter(&self) -> impl Iterator<Item = &Reg<PIN_SPEC>>
Iterator for array of: 0x28..0x80 - RTC configuration for pin %s
sourcepub fn rtc_debug_sel(&self) -> &Reg<RTC_DEBUG_SEL_SPEC>
pub fn rtc_debug_sel(&self) -> &Reg<RTC_DEBUG_SEL_SPEC>
0x80 - RTC debug select register
sourcepub fn touch_pad(&self, n: usize) -> &Reg<TOUCH_PAD_SPEC>
pub fn touch_pad(&self, n: usize) -> &Reg<TOUCH_PAD_SPEC>
0x84..0xc0 - Touch pad %s configuration register
sourcepub fn touch_pad_iter(&self) -> impl Iterator<Item = &Reg<TOUCH_PAD_SPEC>>
pub fn touch_pad_iter(&self) -> impl Iterator<Item = &Reg<TOUCH_PAD_SPEC>>
Iterator for array of: 0x84..0xc0 - Touch pad %s configuration register
sourcepub fn xtal_32p_pad(&self) -> &Reg<XTAL_32P_PAD_SPEC>
pub fn xtal_32p_pad(&self) -> &Reg<XTAL_32P_PAD_SPEC>
0xc0 - 32KHz crystal P-pad configuration register
sourcepub fn xtal_32n_pad(&self) -> &Reg<XTAL_32N_PAD_SPEC>
pub fn xtal_32n_pad(&self) -> &Reg<XTAL_32N_PAD_SPEC>
0xc4 - 32KHz crystal N-pad configuration register
sourcepub fn pad_dac1(&self) -> &Reg<PAD_DAC1_SPEC>
pub fn pad_dac1(&self) -> &Reg<PAD_DAC1_SPEC>
0xc8 - DAC1 configuration register
sourcepub fn pad_dac2(&self) -> &Reg<PAD_DAC2_SPEC>
pub fn pad_dac2(&self) -> &Reg<PAD_DAC2_SPEC>
0xcc - DAC2 configuration register
sourcepub fn rtc_pad19(&self) -> &Reg<RTC_PAD19_SPEC>
pub fn rtc_pad19(&self) -> &Reg<RTC_PAD19_SPEC>
0xd0 - Touch pad 19 configuration register
sourcepub fn rtc_pad20(&self) -> &Reg<RTC_PAD20_SPEC>
pub fn rtc_pad20(&self) -> &Reg<RTC_PAD20_SPEC>
0xd4 - Touch pad 20 configuration register
sourcepub fn rtc_pad21(&self) -> &Reg<RTC_PAD21_SPEC>
pub fn rtc_pad21(&self) -> &Reg<RTC_PAD21_SPEC>
0xd8 - Touch pad 21 configuration register
sourcepub fn ext_wakeup0(&self) -> &Reg<EXT_WAKEUP0_SPEC>
pub fn ext_wakeup0(&self) -> &Reg<EXT_WAKEUP0_SPEC>
0xdc - External wake up configuration register
sourcepub fn xtl_ext_ctr(&self) -> &Reg<XTL_EXT_CTR_SPEC>
pub fn xtl_ext_ctr(&self) -> &Reg<XTL_EXT_CTR_SPEC>
0xe0 - Crystal power down enable GPIO source
sourcepub fn sar_i2c_io(&self) -> &Reg<SAR_I2C_IO_SPEC>
pub fn sar_i2c_io(&self) -> &Reg<SAR_I2C_IO_SPEC>
0xe4 - RTC I2C pad selection
sourcepub fn rtc_io_touch_ctrl(&self) -> &Reg<RTC_IO_TOUCH_CTRL_SPEC>
pub fn rtc_io_touch_ctrl(&self) -> &Reg<RTC_IO_TOUCH_CTRL_SPEC>
0xe8 - Touch control register
sourcepub fn rtc_io_date(&self) -> &Reg<RTC_IO_DATE_SPEC>
pub fn rtc_io_date(&self) -> &Reg<RTC_IO_DATE_SPEC>
0x1fc - Version control register