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 = {0xa400 as *const rtc_io::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xa400 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 enable_w1ts(&self) -> &ENABLE_W1TS
pub fn enable_w1ts(&self) -> &ENABLE_W1TS
0x10 - one set RTC GPIO output enable
Sourcepub fn enable_w1tc(&self) -> &ENABLE_W1TC
pub fn enable_w1tc(&self) -> &ENABLE_W1TC
0x14 - one clear RTC GPIO output enable
Sourcepub fn status_w1ts(&self) -> &STATUS_W1TS
pub fn status_w1ts(&self) -> &STATUS_W1TS
0x1c - One set RTC GPIO 0 ~ 21 interrupt status
Sourcepub fn status_w1tc(&self) -> &STATUS_W1TC
pub fn status_w1tc(&self) -> &STATUS_W1TC
0x20 - One clear RTC GPIO 0 ~ 21 interrupt status
Sourcepub fn rtc_debug_sel(&self) -> &RTC_DEBUG_SEL
pub fn rtc_debug_sel(&self) -> &RTC_DEBUG_SEL
0x80 - configure rtc debug
Sourcepub fn touch_pad0(&self) -> &TOUCH_PAD0
pub fn touch_pad0(&self) -> &TOUCH_PAD0
0x84 - configure RTC PAD0
Sourcepub fn touch_pad1(&self) -> &TOUCH_PAD1
pub fn touch_pad1(&self) -> &TOUCH_PAD1
0x88 - configure RTC PAD1
Sourcepub fn touch_pad2(&self) -> &TOUCH_PAD2
pub fn touch_pad2(&self) -> &TOUCH_PAD2
0x8c - configure RTC PAD2
Sourcepub fn touch_pad3(&self) -> &TOUCH_PAD3
pub fn touch_pad3(&self) -> &TOUCH_PAD3
0x90 - configure RTC PAD3
Sourcepub fn touch_pad4(&self) -> &TOUCH_PAD4
pub fn touch_pad4(&self) -> &TOUCH_PAD4
0x94 - configure RTC PAD4
Sourcepub fn touch_pad5(&self) -> &TOUCH_PAD5
pub fn touch_pad5(&self) -> &TOUCH_PAD5
0x98 - configure RTC PAD5
Sourcepub fn touch_pad6(&self) -> &TOUCH_PAD6
pub fn touch_pad6(&self) -> &TOUCH_PAD6
0x9c - configure RTC PAD6
Sourcepub fn touch_pad7(&self) -> &TOUCH_PAD7
pub fn touch_pad7(&self) -> &TOUCH_PAD7
0xa0 - configure RTC PAD7
Sourcepub fn touch_pad8(&self) -> &TOUCH_PAD8
pub fn touch_pad8(&self) -> &TOUCH_PAD8
0xa4 - configure RTC PAD8
Sourcepub fn touch_pad9(&self) -> &TOUCH_PAD9
pub fn touch_pad9(&self) -> &TOUCH_PAD9
0xa8 - configure RTC PAD9
Sourcepub fn touch_pad10(&self) -> &TOUCH_PAD10
pub fn touch_pad10(&self) -> &TOUCH_PAD10
0xac - configure RTC PAD10
Sourcepub fn touch_pad11(&self) -> &TOUCH_PAD11
pub fn touch_pad11(&self) -> &TOUCH_PAD11
0xb0 - configure RTC PAD11
Sourcepub fn touch_pad12(&self) -> &TOUCH_PAD12
pub fn touch_pad12(&self) -> &TOUCH_PAD12
0xb4 - configure RTC PAD12
Sourcepub fn touch_pad13(&self) -> &TOUCH_PAD13
pub fn touch_pad13(&self) -> &TOUCH_PAD13
0xb8 - configure RTC PAD13
Sourcepub fn touch_pad14(&self) -> &TOUCH_PAD14
pub fn touch_pad14(&self) -> &TOUCH_PAD14
0xbc - configure RTC PAD14
Sourcepub fn xtal_32p_pad(&self) -> &XTAL_32P_PAD
pub fn xtal_32p_pad(&self) -> &XTAL_32P_PAD
0xc0 - configure RTC PAD15
Sourcepub fn xtal_32n_pad(&self) -> &XTAL_32N_PAD
pub fn xtal_32n_pad(&self) -> &XTAL_32N_PAD
0xc4 - configure RTC PAD16
Sourcepub fn ext_wakeup0(&self) -> &EXT_WAKEUP0
pub fn ext_wakeup0(&self) -> &EXT_WAKEUP0
0xdc - configure EXT0 wakeup
Sourcepub fn xtl_ext_ctr(&self) -> &XTL_EXT_CTR
pub fn xtl_ext_ctr(&self) -> &XTL_EXT_CTR
0xe0 - configure gpio pd XTAL
Sourcepub fn sar_i2c_io(&self) -> &SAR_I2C_IO
pub fn sar_i2c_io(&self) -> &SAR_I2C_IO
0xe4 - configure rtc i2c mux
Sourcepub fn touch_ctrl(&self) -> &TOUCH_CTRL
pub fn touch_ctrl(&self) -> &TOUCH_CTRL
0xe8 - configure touch pad bufmode