pub struct RTC_IO { /* private fields */ }
Expand description
Low-power Input/Output
Implementations§
Source§impl RTC_IO
impl RTC_IO
Sourcepub const PTR: *const RegisterBlock = {0x3f408400 as *const rtc_io::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3f408400 as *const rtc_io::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 rtc_gpio_out(&self) -> &RTC_GPIO_OUT
pub fn rtc_gpio_out(&self) -> &RTC_GPIO_OUT
0x00 - RTC GPIO output register
Sourcepub fn rtc_gpio_out_w1ts(&self) -> &RTC_GPIO_OUT_W1TS
pub fn rtc_gpio_out_w1ts(&self) -> &RTC_GPIO_OUT_W1TS
0x04 - RTC GPIO output bit set register
Sourcepub fn rtc_gpio_out_w1tc(&self) -> &RTC_GPIO_OUT_W1TC
pub fn rtc_gpio_out_w1tc(&self) -> &RTC_GPIO_OUT_W1TC
0x08 - RTC GPIO output bit clear register
Sourcepub fn rtc_gpio_enable(&self) -> &RTC_GPIO_ENABLE
pub fn rtc_gpio_enable(&self) -> &RTC_GPIO_ENABLE
0x0c - RTC GPIO output enable register
Sourcepub fn rtc_gpio_enable_w1ts(&self) -> &RTC_GPIO_ENABLE_W1TS
pub fn rtc_gpio_enable_w1ts(&self) -> &RTC_GPIO_ENABLE_W1TS
0x10 - RTC GPIO output enable bit set register
Sourcepub fn enable_w1tc(&self) -> &ENABLE_W1TC
pub fn enable_w1tc(&self) -> &ENABLE_W1TC
0x14 - RTC GPIO output enable bit clear register
Sourcepub fn rtc_gpio_status(&self) -> &RTC_GPIO_STATUS
pub fn rtc_gpio_status(&self) -> &RTC_GPIO_STATUS
0x18 - RTC GPIO interrupt status register
Sourcepub fn rtc_gpio_status_w1ts(&self) -> &RTC_GPIO_STATUS_W1TS
pub fn rtc_gpio_status_w1ts(&self) -> &RTC_GPIO_STATUS_W1TS
0x1c - RTC GPIO interrupt status bit set register
Sourcepub fn rtc_gpio_status_w1tc(&self) -> &RTC_GPIO_STATUS_W1TC
pub fn rtc_gpio_status_w1tc(&self) -> &RTC_GPIO_STATUS_W1TC
0x20 - RTC GPIO interrupt status bit clear register
Sourcepub fn rtc_gpio_in(&self) -> &RTC_GPIO_IN
pub fn rtc_gpio_in(&self) -> &RTC_GPIO_IN
0x24 - RTC GPIO input register
Sourcepub fn pin_iter(&self) -> impl Iterator<Item = &PIN>
pub fn pin_iter(&self) -> impl Iterator<Item = &PIN>
Iterator for array of: 0x28..0x80 - RTC configuration for pin %s
Sourcepub fn rtc_debug_sel(&self) -> &RTC_DEBUG_SEL
pub fn rtc_debug_sel(&self) -> &RTC_DEBUG_SEL
0x80 - RTC debug select register
Sourcepub fn touch_pad(&self, n: usize) -> &TOUCH_PAD
pub fn touch_pad(&self, n: usize) -> &TOUCH_PAD
0x84..0xc0 - Touch pad %s configuration register
Sourcepub fn touch_pad_iter(&self) -> impl Iterator<Item = &TOUCH_PAD>
pub fn touch_pad_iter(&self) -> impl Iterator<Item = &TOUCH_PAD>
Iterator for array of: 0x84..0xc0 - Touch pad %s configuration register
Sourcepub fn xtal_32p_pad(&self) -> &XTAL_32P_PAD
pub fn xtal_32p_pad(&self) -> &XTAL_32P_PAD
0xc0 - 32KHz crystal P-pad configuration register
Sourcepub fn xtal_32n_pad(&self) -> &XTAL_32N_PAD
pub fn xtal_32n_pad(&self) -> &XTAL_32N_PAD
0xc4 - 32KHz crystal N-pad configuration register
Sourcepub fn pad_dac(&self, n: usize) -> &PAD_DAC
pub fn pad_dac(&self, n: usize) -> &PAD_DAC
0xc8..0xd0 - DAC%s configuration register
Sourcepub fn pad_dac_iter(&self) -> impl Iterator<Item = &PAD_DAC>
pub fn pad_dac_iter(&self) -> impl Iterator<Item = &PAD_DAC>
Iterator for array of: 0xc8..0xd0 - DAC%s configuration register
Sourcepub fn ext_wakeup0(&self) -> &EXT_WAKEUP0
pub fn ext_wakeup0(&self) -> &EXT_WAKEUP0
0xdc - External wake up configuration register
Sourcepub fn xtl_ext_ctr(&self) -> &XTL_EXT_CTR
pub fn xtl_ext_ctr(&self) -> &XTL_EXT_CTR
0xe0 - Crystal power down enable GPIO source
Sourcepub fn sar_i2c_io(&self) -> &SAR_I2C_IO
pub fn sar_i2c_io(&self) -> &SAR_I2C_IO
0xe4 - RTC I2C pad selection
Sourcepub fn rtc_io_touch_ctrl(&self) -> &RTC_IO_TOUCH_CTRL
pub fn rtc_io_touch_ctrl(&self) -> &RTC_IO_TOUCH_CTRL
0xe8 - Touch control register
Sourcepub fn rtc_io_date(&self) -> &RTC_IO_DATE
pub fn rtc_io_date(&self) -> &RTC_IO_DATE
0x1fc - Version control register