Struct TIMG1

Source
pub struct TIMG1 { /* private fields */ }

Implementations§

Source§

impl TIMG1

Source

pub const PTR: *const <TIMG1 as Deref>::Target = {0x6000a000 as *const <esp32h2::TIMG1 as core::ops::Deref>::Target}

Pointer to the register block

Source

pub unsafe fn steal() -> TIMG1

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 fn ptr() -> *const <TIMG1 as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

pub fn t0config(&self) -> &Reg<T0CONFIG_SPEC>

0x00 - Timer %s configuration register

Source

pub fn t0lo(&self) -> &Reg<T0LO_SPEC>

0x04 - Timer %s current value, low 32 bits

Source

pub fn t0hi(&self) -> &Reg<T0HI_SPEC>

0x08 - Timer %s current value, high 22 bits

Source

pub fn t0update(&self) -> &Reg<T0UPDATE_SPEC>

0x0c - Write to copy current timer value to TIMGn_T%s_(LO/HI)_REG

Source

pub fn t0alarmlo(&self) -> &Reg<T0ALARMLO_SPEC>

0x10 - Timer %s alarm value, low 32 bits

Source

pub fn t0alarmhi(&self) -> &Reg<T0ALARMHI_SPEC>

0x14 - Timer %s alarm value, high bits

Source

pub fn t0loadlo(&self) -> &Reg<T0LOADLO_SPEC>

0x18 - Timer %s reload value, low 32 bits

Source

pub fn t0loadhi(&self) -> &Reg<T0LOADHI_SPEC>

0x1c - Timer %s reload value, high 22 bits

Source

pub fn t0load(&self) -> &Reg<T0LOAD_SPEC>

0x20 - Write to reload timer from TIMG_T%s_(LOADLOLOADHI)_REG

Source

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

0x48 - Watchdog timer configuration register

Source

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

0x4c - Watchdog timer prescaler register

Source

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

0x50 - Watchdog timer stage 0 timeout value

Source

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

0x54 - Watchdog timer stage 1 timeout value

Source

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

0x58 - Watchdog timer stage 2 timeout value

Source

pub fn wdtconfig5(&self) -> &Reg<WDTCONFIG5_SPEC>

0x5c - Watchdog timer stage 3 timeout value

Source

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

0x60 - Write to feed the watchdog timer

Source

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

0x64 - Watchdog write protect register

Source

pub fn rtccalicfg(&self) -> &Reg<RTCCALICFG_SPEC>

0x68 - RTC calibration configure register

Source

pub fn rtccalicfg1(&self) -> &Reg<RTCCALICFG1_SPEC>

0x6c - RTC calibration configure1 register

Source

pub fn int_ena_timers(&self) -> &Reg<INT_ENA_TIMERS_SPEC>

0x70 - Interrupt enable bits

Source

pub fn int_raw_timers(&self) -> &Reg<INT_RAW_TIMERS_SPEC>

0x74 - Raw interrupt status

Source

pub fn int_st_timers(&self) -> &Reg<INT_ST_TIMERS_SPEC>

0x78 - Masked interrupt status

Source

pub fn int_clr_timers(&self) -> &Reg<INT_CLR_TIMERS_SPEC>

0x7c - Interrupt clear bits

Source

pub fn rtccalicfg2(&self) -> &Reg<RTCCALICFG2_SPEC>

0x80 - Timer group calibration register

Source

pub fn ntimers_date(&self) -> &Reg<NTIMERS_DATE_SPEC>

0xf8 - Timer version control register

Source

pub fn regclk(&self) -> &Reg<REGCLK_SPEC>

0xfc - Timer group clock gate register

Trait Implementations§

Source§

impl Debug for TIMG1

Source§

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

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

impl Deref for TIMG1

Source§

type Target = <TIMG1 as Deref>::Target

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for TIMG1

Source§

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

Mutably dereferences the value.
Source§

impl Peripheral for TIMG1

Source§

type P = TIMG1

Peripheral singleton type
Source§

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

impl TimerGroupInstance for TIMG1

Auto Trait Implementations§

§

impl Freeze for TIMG1

§

impl RefUnwindSafe for TIMG1

§

impl Send for TIMG1

§

impl Sync for TIMG1

§

impl Unpin for TIMG1

§

impl UnwindSafe for TIMG1

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.