Struct esp32s3_ulp::RTC_IO
source · 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 rtc_gpio_out(&self) -> &RTC_GPIO_OUT
pub fn rtc_gpio_out(&self) -> &RTC_GPIO_OUT
0x00 - RTC GPIO 0 ~ 21 output data register
sourcepub fn rtc_gpio_out_w1ts(&self) -> &RTC_GPIO_OUT_W1TS
pub fn rtc_gpio_out_w1ts(&self) -> &RTC_GPIO_OUT_W1TS
0x04 - one set RTC GPIO output data
sourcepub fn rtc_gpio_out_w1tc(&self) -> &RTC_GPIO_OUT_W1TC
pub fn rtc_gpio_out_w1tc(&self) -> &RTC_GPIO_OUT_W1TC
0x08 - one clear RTC GPIO output data
sourcepub fn rtc_gpio_enable(&self) -> &RTC_GPIO_ENABLE
pub fn rtc_gpio_enable(&self) -> &RTC_GPIO_ENABLE
0x0c - Configure RTC GPIO output enable
sourcepub fn rtc_gpio_enable_w1ts(&self) -> &RTC_GPIO_ENABLE_W1TS
pub fn rtc_gpio_enable_w1ts(&self) -> &RTC_GPIO_ENABLE_W1TS
0x10 - one set RTC GPIO output enable
sourcepub fn rtc_gpio_enable_w1tc(&self) -> &RTC_GPIO_ENABLE_W1TC
pub fn rtc_gpio_enable_w1tc(&self) -> &RTC_GPIO_ENABLE_W1TC
0x14 - one clear RTC GPIO output enable
sourcepub fn rtc_gpio_status(&self) -> &RTC_GPIO_STATUS
pub fn rtc_gpio_status(&self) -> &RTC_GPIO_STATUS
0x18 - RTC GPIO 0 ~ 21 interrupt status
sourcepub fn rtc_gpio_status_w1ts(&self) -> &RTC_GPIO_STATUS_W1TS
pub fn rtc_gpio_status_w1ts(&self) -> &RTC_GPIO_STATUS_W1TS
0x1c - One set RTC GPIO 0 ~ 21 interrupt status
sourcepub fn rtc_gpio_status_w1tc(&self) -> &RTC_GPIO_STATUS_W1TC
pub fn rtc_gpio_status_w1tc(&self) -> &RTC_GPIO_STATUS_W1TC
0x20 - One clear RTC GPIO 0 ~ 21 interrupt status
sourcepub fn rtc_gpio_in(&self) -> &RTC_GPIO_IN
pub fn rtc_gpio_in(&self) -> &RTC_GPIO_IN
0x24 - RTC GPIO input data
sourcepub fn rtc_gpio_pin0(&self) -> &RTC_GPIO_PIN0
pub fn rtc_gpio_pin0(&self) -> &RTC_GPIO_PIN0
0x28 - configure RTC GPIO0
sourcepub fn rtc_gpio_pin1(&self) -> &RTC_GPIO_PIN1
pub fn rtc_gpio_pin1(&self) -> &RTC_GPIO_PIN1
0x2c - configure RTC GPIO1
sourcepub fn rtc_gpio_pin2(&self) -> &RTC_GPIO_PIN2
pub fn rtc_gpio_pin2(&self) -> &RTC_GPIO_PIN2
0x30 - configure RTC GPIO2
sourcepub fn rtc_gpio_pin3(&self) -> &RTC_GPIO_PIN3
pub fn rtc_gpio_pin3(&self) -> &RTC_GPIO_PIN3
0x34 - configure RTC GPIO3
sourcepub fn rtc_gpio_pin4(&self) -> &RTC_GPIO_PIN4
pub fn rtc_gpio_pin4(&self) -> &RTC_GPIO_PIN4
0x38 - configure RTC GPIO4
sourcepub fn rtc_gpio_pin5(&self) -> &RTC_GPIO_PIN5
pub fn rtc_gpio_pin5(&self) -> &RTC_GPIO_PIN5
0x3c - configure RTC GPIO5
sourcepub fn rtc_gpio_pin6(&self) -> &RTC_GPIO_PIN6
pub fn rtc_gpio_pin6(&self) -> &RTC_GPIO_PIN6
0x40 - configure RTC GPIO6
sourcepub fn rtc_gpio_pin7(&self) -> &RTC_GPIO_PIN7
pub fn rtc_gpio_pin7(&self) -> &RTC_GPIO_PIN7
0x44 - configure RTC GPIO7
sourcepub fn rtc_gpio_pin8(&self) -> &RTC_GPIO_PIN8
pub fn rtc_gpio_pin8(&self) -> &RTC_GPIO_PIN8
0x48 - configure RTC GPIO8
sourcepub fn rtc_gpio_pin9(&self) -> &RTC_GPIO_PIN9
pub fn rtc_gpio_pin9(&self) -> &RTC_GPIO_PIN9
0x4c - configure RTC GPIO9
sourcepub fn rtc_gpio_pin10(&self) -> &RTC_GPIO_PIN10
pub fn rtc_gpio_pin10(&self) -> &RTC_GPIO_PIN10
0x50 - configure RTC GPIO10
sourcepub fn rtc_gpio_pin11(&self) -> &RTC_GPIO_PIN11
pub fn rtc_gpio_pin11(&self) -> &RTC_GPIO_PIN11
0x54 - configure RTC GPIO11
sourcepub fn rtc_gpio_pin12(&self) -> &RTC_GPIO_PIN12
pub fn rtc_gpio_pin12(&self) -> &RTC_GPIO_PIN12
0x58 - configure RTC GPIO12
sourcepub fn rtc_gpio_pin13(&self) -> &RTC_GPIO_PIN13
pub fn rtc_gpio_pin13(&self) -> &RTC_GPIO_PIN13
0x5c - configure RTC GPIO13
sourcepub fn rtc_gpio_pin14(&self) -> &RTC_GPIO_PIN14
pub fn rtc_gpio_pin14(&self) -> &RTC_GPIO_PIN14
0x60 - configure RTC GPIO14
sourcepub fn rtc_gpio_pin15(&self) -> &RTC_GPIO_PIN15
pub fn rtc_gpio_pin15(&self) -> &RTC_GPIO_PIN15
0x64 - configure RTC GPIO15
sourcepub fn rtc_gpio_pin16(&self) -> &RTC_GPIO_PIN16
pub fn rtc_gpio_pin16(&self) -> &RTC_GPIO_PIN16
0x68 - configure RTC GPIO16
sourcepub fn rtc_gpio_pin17(&self) -> &RTC_GPIO_PIN17
pub fn rtc_gpio_pin17(&self) -> &RTC_GPIO_PIN17
0x6c - configure RTC GPIO17
sourcepub fn rtc_gpio_pin18(&self) -> &RTC_GPIO_PIN18
pub fn rtc_gpio_pin18(&self) -> &RTC_GPIO_PIN18
0x70 - configure RTC GPIO18
sourcepub fn rtc_gpio_pin19(&self) -> &RTC_GPIO_PIN19
pub fn rtc_gpio_pin19(&self) -> &RTC_GPIO_PIN19
0x74 - configure RTC GPIO19
sourcepub fn rtc_gpio_pin20(&self) -> &RTC_GPIO_PIN20
pub fn rtc_gpio_pin20(&self) -> &RTC_GPIO_PIN20
0x78 - configure RTC GPIO20
sourcepub fn rtc_gpio_pin21(&self) -> &RTC_GPIO_PIN21
pub fn rtc_gpio_pin21(&self) -> &RTC_GPIO_PIN21
0x7c - configure RTC GPIO21
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