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 = {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 out(&self) -> &OUT

0x00 - RTC GPIO 0 ~ 21 output data register

Source

pub fn out_w1ts(&self) -> &OUT_W1TS

0x04 - one set RTC GPIO output data

Source

pub fn out_w1tc(&self) -> &OUT_W1TC

0x08 - one clear RTC GPIO output data

Source

pub fn enable(&self) -> &ENABLE

0x0c - Configure RTC GPIO output enable

Source

pub fn enable_w1ts(&self) -> &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 status(&self) -> &STATUS

0x18 - RTC GPIO 0 ~ 21 interrupt status

Source

pub fn status_w1ts(&self) -> &STATUS_W1TS

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

Source

pub fn status_w1tc(&self) -> &STATUS_W1TC

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

Source

pub fn in_(&self) -> &IN

0x24 - RTC GPIO input data

Source

pub fn pin0(&self) -> &PIN0

0x28 - configure RTC GPIO0

Source

pub fn pin1(&self) -> &PIN1

0x2c - configure RTC GPIO1

Source

pub fn pin2(&self) -> &PIN2

0x30 - configure RTC GPIO2

Source

pub fn pin3(&self) -> &PIN3

0x34 - configure RTC GPIO3

Source

pub fn pin4(&self) -> &PIN4

0x38 - configure RTC GPIO4

Source

pub fn pin5(&self) -> &PIN5

0x3c - configure RTC GPIO5

Source

pub fn pin6(&self) -> &PIN6

0x40 - configure RTC GPIO6

Source

pub fn pin7(&self) -> &PIN7

0x44 - configure RTC GPIO7

Source

pub fn pin8(&self) -> &PIN8

0x48 - configure RTC GPIO8

Source

pub fn pin9(&self) -> &PIN9

0x4c - configure RTC GPIO9

Source

pub fn pin10(&self) -> &PIN10

0x50 - configure RTC GPIO10

Source

pub fn pin11(&self) -> &PIN11

0x54 - configure RTC GPIO11

Source

pub fn pin12(&self) -> &PIN12

0x58 - configure RTC GPIO12

Source

pub fn pin13(&self) -> &PIN13

0x5c - configure RTC GPIO13

Source

pub fn pin14(&self) -> &PIN14

0x60 - configure RTC GPIO14

Source

pub fn pin15(&self) -> &PIN15

0x64 - configure RTC GPIO15

Source

pub fn pin16(&self) -> &PIN16

0x68 - configure RTC GPIO16

Source

pub fn pin17(&self) -> &PIN17

0x6c - configure RTC GPIO17

Source

pub fn pin18(&self) -> &PIN18

0x70 - configure RTC GPIO18

Source

pub fn pin19(&self) -> &PIN19

0x74 - configure RTC GPIO19

Source

pub fn pin20(&self) -> &PIN20

0x78 - configure RTC GPIO20

Source

pub fn pin21(&self) -> &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

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.