Struct esp32_hal::peripherals::LPWR

source ·
pub struct LPWR { /* private fields */ }

Implementations§

source§

impl LPWR

source

pub unsafe fn steal() -> LPWR

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_CNTL as Deref>::Target = {0x3ff48000 as *const <esp32::RTC_CNTL as core::ops::Deref>::Target}

Pointer to the register block

source

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

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn options0(&self) -> &Reg<OPTIONS0_SPEC>

0x00 -

source

pub fn slp_timer0(&self) -> &Reg<SLP_TIMER0_SPEC>

0x04 -

source

pub fn slp_timer1(&self) -> &Reg<SLP_TIMER1_SPEC>

0x08 -

source

pub fn time_update(&self) -> &Reg<TIME_UPDATE_SPEC>

0x0c -

source

pub fn time0(&self) -> &Reg<TIME0_SPEC>

0x10 -

source

pub fn time1(&self) -> &Reg<TIME1_SPEC>

0x14 -

source

pub fn state0(&self) -> &Reg<STATE0_SPEC>

0x18 -

source

pub fn timer1(&self) -> &Reg<TIMER1_SPEC>

0x1c -

source

pub fn timer2(&self) -> &Reg<TIMER2_SPEC>

0x20 -

source

pub fn timer3(&self) -> &Reg<TIMER3_SPEC>

0x24 -

source

pub fn timer4(&self) -> &Reg<TIMER4_SPEC>

0x28 -

source

pub fn timer5(&self) -> &Reg<TIMER5_SPEC>

0x2c -

source

pub fn ana_conf(&self) -> &Reg<ANA_CONF_SPEC>

0x30 -

source

pub fn reset_state(&self) -> &Reg<RESET_STATE_SPEC>

0x34 -

source

pub fn wakeup_state(&self) -> &Reg<WAKEUP_STATE_SPEC>

0x38 -

source

pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>

0x3c -

source

pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>

0x40 -

source

pub fn int_st(&self) -> &Reg<INT_ST_SPEC>

0x44 -

source

pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>

0x48 -

source

pub fn store0(&self) -> &Reg<STORE0_SPEC>

0x4c -

source

pub fn store1(&self) -> &Reg<STORE1_SPEC>

0x50 -

source

pub fn store2(&self) -> &Reg<STORE2_SPEC>

0x54 -

source

pub fn store3(&self) -> &Reg<STORE3_SPEC>

0x58 -

source

pub fn ext_xtl_conf(&self) -> &Reg<EXT_XTL_CONF_SPEC>

0x5c -

source

pub fn ext_wakeup_conf(&self) -> &Reg<EXT_WAKEUP_CONF_SPEC>

0x60 -

source

pub fn slp_reject_conf(&self) -> &Reg<SLP_REJECT_CONF_SPEC>

0x64 -

source

pub fn cpu_period_conf(&self) -> &Reg<CPU_PERIOD_CONF_SPEC>

0x68 -

source

pub fn sdio_act_conf(&self) -> &Reg<SDIO_ACT_CONF_SPEC>

0x6c -

source

pub fn clk_conf(&self) -> &Reg<CLK_CONF_SPEC>

0x70 -

source

pub fn sdio_conf(&self) -> &Reg<SDIO_CONF_SPEC>

0x74 -

source

pub fn bias_conf(&self) -> &Reg<BIAS_CONF_SPEC>

0x78 -

source

pub fn reg(&self) -> &Reg<REG_SPEC>

0x7c -

source

pub fn pwc(&self) -> &Reg<PWC_SPEC>

0x80 -

source

pub fn dig_pwc(&self) -> &Reg<DIG_PWC_SPEC>

0x84 -

source

pub fn dig_iso(&self) -> &Reg<DIG_ISO_SPEC>

0x88 -

source

pub fn wdtconfig0(&self) -> &Reg<WDTCONFIG0_SPEC>

0x8c -

source

pub fn wdtconfig1(&self) -> &Reg<WDTCONFIG1_SPEC>

0x90 -

source

pub fn wdtconfig2(&self) -> &Reg<WDTCONFIG2_SPEC>

0x94 -

source

pub fn wdtconfig3(&self) -> &Reg<WDTCONFIG3_SPEC>

0x98 -

source

pub fn wdtconfig4(&self) -> &Reg<WDTCONFIG4_SPEC>

0x9c -

source

pub fn wdtfeed(&self) -> &Reg<WDTFEED_SPEC>

0xa0 -

source

pub fn wdtwprotect(&self) -> &Reg<WDTWPROTECT_SPEC>

0xa4 -

source

pub fn test_mux(&self) -> &Reg<TEST_MUX_SPEC>

0xa8 -

source

pub fn sw_cpu_stall(&self) -> &Reg<SW_CPU_STALL_SPEC>

0xac -

source

pub fn store4(&self) -> &Reg<STORE4_SPEC>

0xb0 -

source

pub fn store5(&self) -> &Reg<STORE5_SPEC>

0xb4 -

source

pub fn store6(&self) -> &Reg<STORE6_SPEC>

0xb8 -

source

pub fn store7(&self) -> &Reg<STORE7_SPEC>

0xbc -

source

pub fn low_power_st(&self) -> &Reg<LOW_POWER_ST_SPEC>

0xc0 -

source

pub fn diag1(&self) -> &Reg<DIAG1_SPEC>

0xc4 -

source

pub fn hold_force(&self) -> &Reg<HOLD_FORCE_SPEC>

0xc8 -

source

pub fn ext_wakeup1(&self) -> &Reg<EXT_WAKEUP1_SPEC>

0xcc -

source

pub fn ext_wakeup1_status(&self) -> &Reg<EXT_WAKEUP1_STATUS_SPEC>

0xd0 -

source

pub fn brown_out(&self) -> &Reg<BROWN_OUT_SPEC>

0xd4 -

source

pub fn date(&self) -> &Reg<DATE_SPEC>

0x13c -

Trait Implementations§

source§

impl Debug for LPWR

source§

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

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

impl Deref for LPWR

§

type Target = <RTC_CNTL as Deref>::Target

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl DerefMut for LPWR

source§

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

Mutably dereferences the value.
source§

impl Peripheral for LPWR

§

type P = LPWR

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut self) -> <LPWR 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§

§

impl RefUnwindSafe for LPWR

§

impl Send for LPWR

§

impl Sync for LPWR

§

impl Unpin for LPWR

§

impl UnwindSafe for LPWR

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.