esp_hal::peripherals

Struct TIMG1

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

Represents a virtual peripheral with no associated hardware.

This struct is generated by the create_peripheral! macro when the peripheral is defined as virtual.

Implementations§

Source§

impl TIMG1

Source

pub unsafe fn steal() -> Self

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§

impl TIMG1

Source

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

Pointer to the register block

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 t(&self, n: usize) -> &T

0x00..0x24 - Cluster T%s, containing T?CONFIG, T?LO, T?HI, T?UPDATE, T?ALARMLO, T?ALARMHI, T?LOADLO, T?LOADHI, T?LOAD

Source

pub fn t_iter(&self) -> impl Iterator<Item = &T>

Iterator for array of: 0x00..0x24 - Cluster T%s, containing T?CONFIG, T?LO, T?HI, T?UPDATE, T?ALARMLO, T?ALARMHI, T?LOADLO, T?LOADHI, T?LOAD

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(&self) -> &Reg<INT_ENA_SPEC>

0x70 - Interrupt enable bits

Source

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

0x74 - Raw interrupt status

Source

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

0x78 - Masked interrupt status

Source

pub fn int_clr(&self) -> &Reg<INT_CLR_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

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) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for TIMG1

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Peripheral for TIMG1

Source§

type P = TIMG1

Peripheral singleton type
Source§

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

fn map_into<U>(self) -> U
where Self::P: Into<U>, U: Peripheral<P = U>,

Map the peripheral using Into. Read more

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.