Struct esp32::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 = {0x3ff48400 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 out(&self) -> &OUT

0x00 -

source

pub fn out_w1ts(&self) -> &OUT_W1TS

0x04 -

source

pub fn out_w1tc(&self) -> &OUT_W1TC

0x08 -

source

pub fn enable(&self) -> &ENABLE

0x0c -

source

pub fn enable_w1ts(&self) -> &ENABLE_W1TS

0x10 -

source

pub fn enable_w1tc(&self) -> &ENABLE_W1TC

0x14 -

source

pub fn status(&self) -> &STATUS

0x18 -

source

pub fn status_w1ts(&self) -> &STATUS_W1TS

0x1c -

source

pub fn status_w1tc(&self) -> &STATUS_W1TC

0x20 -

source

pub fn in_(&self) -> &IN

0x24 -

source

pub fn pin(&self, n: usize) -> &PIN

0x28..0x70 -

source

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

Iterator for array of: 0x28..0x70 -

source

pub fn rtc_debug_sel(&self) -> &RTC_DEBUG_SEL

0x70 -

source

pub fn dig_pad_hold(&self) -> &DIG_PAD_HOLD

0x74 -

source

pub fn hall_sens(&self) -> &HALL_SENS

0x78 -

source

pub fn sensor_pads(&self) -> &SENSOR_PADS

0x7c -

source

pub fn adc_pad(&self) -> &ADC_PAD

0x80 -

source

pub fn pad_dac1(&self) -> &PAD_DAC1

0x84 -

source

pub fn pad_dac2(&self) -> &PAD_DAC2

0x88 -

source

pub fn xtal_32k_pad(&self) -> &XTAL_32K_PAD

0x8c -

source

pub fn touch_cfg(&self) -> &TOUCH_CFG

0x90 -

source

pub fn touch_pad0(&self) -> &TOUCH_PAD0

0x94 -

source

pub fn touch_pad1(&self) -> &TOUCH_PAD1

0x98 -

source

pub fn touch_pad2(&self) -> &TOUCH_PAD2

0x9c -

source

pub fn touch_pad3(&self) -> &TOUCH_PAD3

0xa0 -

source

pub fn touch_pad4(&self) -> &TOUCH_PAD4

0xa4 -

source

pub fn touch_pad5(&self) -> &TOUCH_PAD5

0xa8 -

source

pub fn touch_pad6(&self) -> &TOUCH_PAD6

0xac -

source

pub fn touch_pad7(&self) -> &TOUCH_PAD7

0xb0 -

source

pub fn touch_pad8(&self) -> &TOUCH_PAD8

0xb4 -

source

pub fn touch_pad9(&self) -> &TOUCH_PAD9

0xb8 -

source

pub fn ext_wakeup0(&self) -> &EXT_WAKEUP0

0xbc -

source

pub fn xtl_ext_ctr(&self) -> &XTL_EXT_CTR

0xc0 -

source

pub fn sar_i2c_io(&self) -> &SAR_I2C_IO

0xc4 -

source

pub fn date(&self) -> &DATE

0xc8 -

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.