pub struct RTC_IO { /* private fields */ }

Implementations§

source§

impl RTC_IO

source

pub unsafe fn steal() -> RTC_IO

Unsafely create an instance of this peripheral out of thin air.

§Safety

You must ensure that you’re only using one instance of this type at a time.

source

pub const PTR: *const <RTC_IO as Deref>::Target = {0x3f408400 as *const <esp32s2::RTC_IO as core::ops::Deref>::Target}

Pointer to the register block

source

pub const fn ptr() -> *const <RTC_IO as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn rtc_gpio_out(&self) -> &Reg<RTC_GPIO_OUT_SPEC>

0x00 - RTC GPIO output register

source

pub fn rtc_gpio_out_w1ts(&self) -> &Reg<RTC_GPIO_OUT_W1TS_SPEC>

0x04 - RTC GPIO output bit set register

source

pub fn rtc_gpio_out_w1tc(&self) -> &Reg<RTC_GPIO_OUT_W1TC_SPEC>

0x08 - RTC GPIO output bit clear register

source

pub fn rtc_gpio_enable(&self) -> &Reg<RTC_GPIO_ENABLE_SPEC>

0x0c - RTC GPIO output enable register

source

pub fn rtc_gpio_enable_w1ts(&self) -> &Reg<RTC_GPIO_ENABLE_W1TS_SPEC>

0x10 - RTC GPIO output enable bit set register

source

pub fn enable_w1tc(&self) -> &Reg<ENABLE_W1TC_SPEC>

0x14 - RTC GPIO output enable bit clear register

source

pub fn rtc_gpio_status(&self) -> &Reg<RTC_GPIO_STATUS_SPEC>

0x18 - RTC GPIO interrupt status register

source

pub fn rtc_gpio_status_w1ts(&self) -> &Reg<RTC_GPIO_STATUS_W1TS_SPEC>

0x1c - RTC GPIO interrupt status bit set register

source

pub fn rtc_gpio_status_w1tc(&self) -> &Reg<RTC_GPIO_STATUS_W1TC_SPEC>

0x20 - RTC GPIO interrupt status bit clear register

source

pub fn rtc_gpio_in(&self) -> &Reg<RTC_GPIO_IN_SPEC>

0x24 - RTC GPIO input register

source

pub fn pin(&self, n: usize) -> &Reg<PIN_SPEC>

0x28..0x80 - RTC configuration for pin %s

source

pub fn pin_iter(&self) -> impl Iterator<Item = &Reg<PIN_SPEC>>

Iterator for array of: 0x28..0x80 - RTC configuration for pin %s

source

pub fn rtc_debug_sel(&self) -> &Reg<RTC_DEBUG_SEL_SPEC>

0x80 - RTC debug select register

source

pub fn touch_pad(&self, n: usize) -> &Reg<TOUCH_PAD_SPEC>

0x84..0xc0 - Touch pad %s configuration register

source

pub fn touch_pad_iter(&self) -> impl Iterator<Item = &Reg<TOUCH_PAD_SPEC>>

Iterator for array of: 0x84..0xc0 - Touch pad %s configuration register

source

pub fn xtal_32p_pad(&self) -> &Reg<XTAL_32P_PAD_SPEC>

0xc0 - 32KHz crystal P-pad configuration register

source

pub fn xtal_32n_pad(&self) -> &Reg<XTAL_32N_PAD_SPEC>

0xc4 - 32KHz crystal N-pad configuration register

source

pub fn pad_dac1(&self) -> &Reg<PAD_DAC1_SPEC>

0xc8 - DAC1 configuration register

source

pub fn pad_dac2(&self) -> &Reg<PAD_DAC2_SPEC>

0xcc - DAC2 configuration register

source

pub fn rtc_pad19(&self) -> &Reg<RTC_PAD19_SPEC>

0xd0 - Touch pad 19 configuration register

source

pub fn rtc_pad20(&self) -> &Reg<RTC_PAD20_SPEC>

0xd4 - Touch pad 20 configuration register

source

pub fn rtc_pad21(&self) -> &Reg<RTC_PAD21_SPEC>

0xd8 - Touch pad 21 configuration register

source

pub fn ext_wakeup0(&self) -> &Reg<EXT_WAKEUP0_SPEC>

0xdc - External wake up configuration register

source

pub fn xtl_ext_ctr(&self) -> &Reg<XTL_EXT_CTR_SPEC>

0xe0 - Crystal power down enable GPIO source

source

pub fn sar_i2c_io(&self) -> &Reg<SAR_I2C_IO_SPEC>

0xe4 - RTC I2C pad selection

source

pub fn rtc_io_touch_ctrl(&self) -> &Reg<RTC_IO_TOUCH_CTRL_SPEC>

0xe8 - Touch control register

source

pub fn rtc_io_date(&self) -> &Reg<RTC_IO_DATE_SPEC>

0x1fc - Version control register

Trait Implementations§

source§

impl Debug for RTC_IO

source§

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

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

impl Deref for RTC_IO

§

type Target = <RTC_IO as Deref>::Target

The resulting type after dereferencing.
source§

fn deref(&self) -> &<RTC_IO as Deref>::Target

Dereferences the value.
source§

impl DerefMut for RTC_IO

source§

fn deref_mut(&mut self) -> &mut <RTC_IO as Deref>::Target

Mutably dereferences the value.
source§

impl Peripheral for RTC_IO

§

type P = RTC_IO

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut self) -> <RTC_IO as Peripheral>::P

Unsafely clone (duplicate) a peripheral singleton. Read more
source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>
where Self: 'a,

Convert a value into a PeripheralRef. Read more

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.