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 = {0x3ff48400 as *const rtc_io::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3ff48400 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 -
sourcepub fn enable_w1tc(&self) -> &ENABLE_W1TC
pub fn enable_w1tc(&self) -> &ENABLE_W1TC
0x14 -
sourcepub fn status_w1ts(&self) -> &STATUS_W1TS
pub fn status_w1ts(&self) -> &STATUS_W1TS
0x1c -
sourcepub fn status_w1tc(&self) -> &STATUS_W1TC
pub fn status_w1tc(&self) -> &STATUS_W1TC
0x20 -
sourcepub fn rtc_debug_sel(&self) -> &RTC_DEBUG_SEL
pub fn rtc_debug_sel(&self) -> &RTC_DEBUG_SEL
0x70 -
sourcepub fn dig_pad_hold(&self) -> &DIG_PAD_HOLD
pub fn dig_pad_hold(&self) -> &DIG_PAD_HOLD
0x74 -
sourcepub fn sensor_pads(&self) -> &SENSOR_PADS
pub fn sensor_pads(&self) -> &SENSOR_PADS
0x7c -
sourcepub fn xtal_32k_pad(&self) -> &XTAL_32K_PAD
pub fn xtal_32k_pad(&self) -> &XTAL_32K_PAD
0x8c -
sourcepub fn touch_pad0(&self) -> &TOUCH_PAD0
pub fn touch_pad0(&self) -> &TOUCH_PAD0
0x94 -
sourcepub fn touch_pad1(&self) -> &TOUCH_PAD1
pub fn touch_pad1(&self) -> &TOUCH_PAD1
0x98 -
sourcepub fn touch_pad2(&self) -> &TOUCH_PAD2
pub fn touch_pad2(&self) -> &TOUCH_PAD2
0x9c -
sourcepub fn touch_pad3(&self) -> &TOUCH_PAD3
pub fn touch_pad3(&self) -> &TOUCH_PAD3
0xa0 -
sourcepub fn touch_pad4(&self) -> &TOUCH_PAD4
pub fn touch_pad4(&self) -> &TOUCH_PAD4
0xa4 -
sourcepub fn touch_pad5(&self) -> &TOUCH_PAD5
pub fn touch_pad5(&self) -> &TOUCH_PAD5
0xa8 -
sourcepub fn touch_pad6(&self) -> &TOUCH_PAD6
pub fn touch_pad6(&self) -> &TOUCH_PAD6
0xac -
sourcepub fn touch_pad7(&self) -> &TOUCH_PAD7
pub fn touch_pad7(&self) -> &TOUCH_PAD7
0xb0 -
sourcepub fn touch_pad8(&self) -> &TOUCH_PAD8
pub fn touch_pad8(&self) -> &TOUCH_PAD8
0xb4 -
sourcepub fn touch_pad9(&self) -> &TOUCH_PAD9
pub fn touch_pad9(&self) -> &TOUCH_PAD9
0xb8 -
sourcepub fn ext_wakeup0(&self) -> &EXT_WAKEUP0
pub fn ext_wakeup0(&self) -> &EXT_WAKEUP0
0xbc -
sourcepub fn xtl_ext_ctr(&self) -> &XTL_EXT_CTR
pub fn xtl_ext_ctr(&self) -> &XTL_EXT_CTR
0xc0 -
sourcepub fn sar_i2c_io(&self) -> &SAR_I2C_IO
pub fn sar_i2c_io(&self) -> &SAR_I2C_IO
0xc4 -
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for RTC_IO
impl !Sync for RTC_IO
impl Unpin for RTC_IO
impl UnwindSafe for RTC_IO
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more