RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn out(&self) -> &OUT

0x00 - RTC GPIO output register

Source

pub const fn out_w1ts(&self) -> &OUT_W1TS

0x04 - RTC GPIO output bit set register

Source

pub const fn out_w1tc(&self) -> &OUT_W1TC

0x08 - RTC GPIO output bit clear register

Source

pub const fn enable(&self) -> &ENABLE

0x0c - RTC GPIO output enable register

Source

pub const fn enable_w1ts(&self) -> &ENABLE_W1TS

0x10 - RTC GPIO output enable bit set register

Source

pub const fn enable_w1tc(&self) -> &ENABLE_W1TC

0x14 - RTC GPIO output enable bit clear register

Source

pub const fn status(&self) -> &STATUS

0x18 - RTC GPIO interrupt status register

Source

pub const fn status_w1ts(&self) -> &STATUS_W1TS

0x1c - RTC GPIO interrupt status bit set register

Source

pub const fn status_w1tc(&self) -> &STATUS_W1TC

0x20 - RTC GPIO interrupt status bit clear register

Source

pub const fn in_(&self) -> &IN

0x24 - RTC GPIO input register

Source

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

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

Source

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

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

Source

pub const fn rtc_debug_sel(&self) -> &RTC_DEBUG_SEL

0x80 - RTC debug select register

Source

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

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

Source

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

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

Source

pub const fn xtal_32p_pad(&self) -> &XTAL_32P_PAD

0xc0 - 32KHz crystal P-pad configuration register

Source

pub const fn xtal_32n_pad(&self) -> &XTAL_32N_PAD

0xc4 - 32KHz crystal N-pad configuration register

Source

pub const fn pad_dac1(&self) -> &PAD_DAC1

0xc8 - DAC1 configuration register

Source

pub const fn pad_dac2(&self) -> &PAD_DAC2

0xcc - DAC2 configuration register

Source

pub const fn rtc_pad19(&self) -> &RTC_PAD19

0xd0 - Touch pad 19 configuration register

Source

pub const fn rtc_pad20(&self) -> &RTC_PAD20

0xd4 - Touch pad 20 configuration register

Source

pub const fn rtc_pad21(&self) -> &RTC_PAD21

0xd8 - Touch pad 21 configuration register

Source

pub const fn ext_wakeup0(&self) -> &EXT_WAKEUP0

0xdc - External wake up configuration register

Source

pub const fn xtl_ext_ctr(&self) -> &XTL_EXT_CTR

0xe0 - Crystal power down enable GPIO source

Source

pub const fn sar_i2c_io(&self) -> &SAR_I2C_IO

0xe4 - RTC I2C pad selection

Source

pub const fn rtc_io_touch_ctrl(&self) -> &RTC_IO_TOUCH_CTRL

0xe8 - Touch control register

Source

pub const fn rtc_io_date(&self) -> &RTC_IO_DATE

0x1fc - Version control register

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

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.