Struct esp32s3_ulp::RTC_IO

source ·
pub struct RTC_IO { /* private fields */ }
Expand description

Low-power Input/Output

Implementations§

source§

impl RTC_IO

source

pub const PTR: *const RegisterBlock = {0xa400 as *const rtc_io::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

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>§

source

pub fn rtc_gpio_out(&self) -> &RTC_GPIO_OUT

0x00 - RTC GPIO 0 ~ 21 output data register

source

pub fn rtc_gpio_out_w1ts(&self) -> &RTC_GPIO_OUT_W1TS

0x04 - one set RTC GPIO output data

source

pub fn rtc_gpio_out_w1tc(&self) -> &RTC_GPIO_OUT_W1TC

0x08 - one clear RTC GPIO output data

source

pub fn rtc_gpio_enable(&self) -> &RTC_GPIO_ENABLE

0x0c - Configure RTC GPIO output enable

source

pub fn rtc_gpio_enable_w1ts(&self) -> &RTC_GPIO_ENABLE_W1TS

0x10 - one set RTC GPIO output enable

source

pub fn rtc_gpio_enable_w1tc(&self) -> &RTC_GPIO_ENABLE_W1TC

0x14 - one clear RTC GPIO output enable

source

pub fn rtc_gpio_status(&self) -> &RTC_GPIO_STATUS

0x18 - RTC GPIO 0 ~ 21 interrupt status

source

pub fn rtc_gpio_status_w1ts(&self) -> &RTC_GPIO_STATUS_W1TS

0x1c - One set RTC GPIO 0 ~ 21 interrupt status

source

pub fn rtc_gpio_status_w1tc(&self) -> &RTC_GPIO_STATUS_W1TC

0x20 - One clear RTC GPIO 0 ~ 21 interrupt status

source

pub fn rtc_gpio_in(&self) -> &RTC_GPIO_IN

0x24 - RTC GPIO input data

source

pub fn rtc_gpio_pin0(&self) -> &RTC_GPIO_PIN0

0x28 - configure RTC GPIO0

source

pub fn rtc_gpio_pin1(&self) -> &RTC_GPIO_PIN1

0x2c - configure RTC GPIO1

source

pub fn rtc_gpio_pin2(&self) -> &RTC_GPIO_PIN2

0x30 - configure RTC GPIO2

source

pub fn rtc_gpio_pin3(&self) -> &RTC_GPIO_PIN3

0x34 - configure RTC GPIO3

source

pub fn rtc_gpio_pin4(&self) -> &RTC_GPIO_PIN4

0x38 - configure RTC GPIO4

source

pub fn rtc_gpio_pin5(&self) -> &RTC_GPIO_PIN5

0x3c - configure RTC GPIO5

source

pub fn rtc_gpio_pin6(&self) -> &RTC_GPIO_PIN6

0x40 - configure RTC GPIO6

source

pub fn rtc_gpio_pin7(&self) -> &RTC_GPIO_PIN7

0x44 - configure RTC GPIO7

source

pub fn rtc_gpio_pin8(&self) -> &RTC_GPIO_PIN8

0x48 - configure RTC GPIO8

source

pub fn rtc_gpio_pin9(&self) -> &RTC_GPIO_PIN9

0x4c - configure RTC GPIO9

source

pub fn rtc_gpio_pin10(&self) -> &RTC_GPIO_PIN10

0x50 - configure RTC GPIO10

source

pub fn rtc_gpio_pin11(&self) -> &RTC_GPIO_PIN11

0x54 - configure RTC GPIO11

source

pub fn rtc_gpio_pin12(&self) -> &RTC_GPIO_PIN12

0x58 - configure RTC GPIO12

source

pub fn rtc_gpio_pin13(&self) -> &RTC_GPIO_PIN13

0x5c - configure RTC GPIO13

source

pub fn rtc_gpio_pin14(&self) -> &RTC_GPIO_PIN14

0x60 - configure RTC GPIO14

source

pub fn rtc_gpio_pin15(&self) -> &RTC_GPIO_PIN15

0x64 - configure RTC GPIO15

source

pub fn rtc_gpio_pin16(&self) -> &RTC_GPIO_PIN16

0x68 - configure RTC GPIO16

source

pub fn rtc_gpio_pin17(&self) -> &RTC_GPIO_PIN17

0x6c - configure RTC GPIO17

source

pub fn rtc_gpio_pin18(&self) -> &RTC_GPIO_PIN18

0x70 - configure RTC GPIO18

source

pub fn rtc_gpio_pin19(&self) -> &RTC_GPIO_PIN19

0x74 - configure RTC GPIO19

source

pub fn rtc_gpio_pin20(&self) -> &RTC_GPIO_PIN20

0x78 - configure RTC GPIO20

source

pub fn rtc_gpio_pin21(&self) -> &RTC_GPIO_PIN21

0x7c - configure RTC GPIO21

source

pub fn rtc_debug_sel(&self) -> &RTC_DEBUG_SEL

0x80 - configure rtc debug

source

pub fn touch_pad0(&self) -> &TOUCH_PAD0

0x84 - configure RTC PAD0

source

pub fn touch_pad1(&self) -> &TOUCH_PAD1

0x88 - configure RTC PAD1

source

pub fn touch_pad2(&self) -> &TOUCH_PAD2

0x8c - configure RTC PAD2

source

pub fn touch_pad3(&self) -> &TOUCH_PAD3

0x90 - configure RTC PAD3

source

pub fn touch_pad4(&self) -> &TOUCH_PAD4

0x94 - configure RTC PAD4

source

pub fn touch_pad5(&self) -> &TOUCH_PAD5

0x98 - configure RTC PAD5

source

pub fn touch_pad6(&self) -> &TOUCH_PAD6

0x9c - configure RTC PAD6

source

pub fn touch_pad7(&self) -> &TOUCH_PAD7

0xa0 - configure RTC PAD7

source

pub fn touch_pad8(&self) -> &TOUCH_PAD8

0xa4 - configure RTC PAD8

source

pub fn touch_pad9(&self) -> &TOUCH_PAD9

0xa8 - configure RTC PAD9

source

pub fn touch_pad10(&self) -> &TOUCH_PAD10

0xac - configure RTC PAD10

source

pub fn touch_pad11(&self) -> &TOUCH_PAD11

0xb0 - configure RTC PAD11

source

pub fn touch_pad12(&self) -> &TOUCH_PAD12

0xb4 - configure RTC PAD12

source

pub fn touch_pad13(&self) -> &TOUCH_PAD13

0xb8 - configure RTC PAD13

source

pub fn touch_pad14(&self) -> &TOUCH_PAD14

0xbc - configure RTC PAD14

source

pub fn xtal_32p_pad(&self) -> &XTAL_32P_PAD

0xc0 - configure RTC PAD15

source

pub fn xtal_32n_pad(&self) -> &XTAL_32N_PAD

0xc4 - configure RTC PAD16

source

pub fn pad_dac1(&self) -> &PAD_DAC1

0xc8 - configure RTC PAD17

source

pub fn pad_dac2(&self) -> &PAD_DAC2

0xcc - configure RTC PAD18

source

pub fn rtc_pad19(&self) -> &RTC_PAD19

0xd0 - configure RTC PAD19

source

pub fn rtc_pad20(&self) -> &RTC_PAD20

0xd4 - configure RTC PAD20

source

pub fn rtc_pad21(&self) -> &RTC_PAD21

0xd8 - configure RTC PAD21

source

pub fn ext_wakeup0(&self) -> &EXT_WAKEUP0

0xdc - configure EXT0 wakeup

source

pub fn xtl_ext_ctr(&self) -> &XTL_EXT_CTR

0xe0 - configure gpio pd XTAL

source

pub fn sar_i2c_io(&self) -> &SAR_I2C_IO

0xe4 - configure rtc i2c mux

source

pub fn touch_ctrl(&self) -> &TOUCH_CTRL

0xe8 - configure touch pad bufmode

source

pub fn date(&self) -> &DATE

0x1fc - version

Trait Implementations§

source§

impl Debug for RTC_IO

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for RTC_IO

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for RTC_IO

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.