Struct 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 = {0x60008400 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 enable_w1tc(&self) -> &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 pin(&self, n: usize) -> &PIN

0x28..0x80 - configure RTC GPIO%s

Source

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

Iterator for array of: 0x28..0x80 - configure RTC GPIO%s

Source

pub fn rtc_debug_sel(&self) -> &RTC_DEBUG_SEL

0x80 - configure rtc debug

Source

pub fn touch_pad(&self, n: usize) -> &TOUCH_PAD

0x84..0xc0 - configure RTC PAD%s

Source

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

Iterator for array of: 0x84..0xc0 - configure RTC PAD%s

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

Source§

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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

Source§

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.