Struct SYSTIMER

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

Implementations§

Source§

impl SYSTIMER

Source

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

Pointer to the register block

Source

pub unsafe fn steal() -> SYSTIMER

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 <SYSTIMER as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

pub fn conf(&self) -> &Reg<CONF_SPEC>

0x00 - Configure system timer clock

Source

pub fn unit0_op(&self) -> &Reg<UNIT0_OP_SPEC>

0x04 - system timer unit0 value update register

Source

pub fn unit1_op(&self) -> &Reg<UNIT1_OP_SPEC>

0x08 - system timer unit1 value update register

Source

pub fn unit0_load_hi(&self) -> &Reg<UNIT0_LOAD_HI_SPEC>

0x0c - system timer unit0 value high load register

Source

pub fn unit0_load_lo(&self) -> &Reg<UNIT0_LOAD_LO_SPEC>

0x10 - system timer unit0 value low load register

Source

pub fn unit1_load_hi(&self) -> &Reg<UNIT1_LOAD_HI_SPEC>

0x14 - system timer unit1 value high load register

Source

pub fn unit1_load_lo(&self) -> &Reg<UNIT1_LOAD_LO_SPEC>

0x18 - system timer unit1 value low load register

Source

pub fn target0_hi(&self) -> &Reg<TARGET0_HI_SPEC>

0x1c - system timer comp0 value high register

Source

pub fn target0_lo(&self) -> &Reg<TARGET0_LO_SPEC>

0x20 - system timer comp0 value low register

Source

pub fn target1_hi(&self) -> &Reg<TARGET1_HI_SPEC>

0x24 - system timer comp1 value high register

Source

pub fn target1_lo(&self) -> &Reg<TARGET1_LO_SPEC>

0x28 - system timer comp1 value low register

Source

pub fn target2_hi(&self) -> &Reg<TARGET2_HI_SPEC>

0x2c - system timer comp2 value high register

Source

pub fn target2_lo(&self) -> &Reg<TARGET2_LO_SPEC>

0x30 - system timer comp2 value low register

Source

pub fn target0_conf(&self) -> &Reg<TARGET0_CONF_SPEC>

0x34 - system timer comp0 target mode register

Source

pub fn target1_conf(&self) -> &Reg<TARGET1_CONF_SPEC>

0x38 - system timer comp1 target mode register

Source

pub fn target2_conf(&self) -> &Reg<TARGET2_CONF_SPEC>

0x3c - system timer comp2 target mode register

Source

pub fn unit0_value_hi(&self) -> &Reg<UNIT0_VALUE_HI_SPEC>

0x40 - system timer unit0 value high register

Source

pub fn unit0_value_lo(&self) -> &Reg<UNIT0_VALUE_LO_SPEC>

0x44 - system timer unit0 value low register

Source

pub fn unit1_value_hi(&self) -> &Reg<UNIT1_VALUE_HI_SPEC>

0x48 - system timer unit1 value high register

Source

pub fn unit1_value_lo(&self) -> &Reg<UNIT1_VALUE_LO_SPEC>

0x4c - system timer unit1 value low register

Source

pub fn comp0_load(&self) -> &Reg<COMP0_LOAD_SPEC>

0x50 - system timer comp0 conf sync register

Source

pub fn comp1_load(&self) -> &Reg<COMP1_LOAD_SPEC>

0x54 - system timer comp1 conf sync register

Source

pub fn comp2_load(&self) -> &Reg<COMP2_LOAD_SPEC>

0x58 - system timer comp2 conf sync register

Source

pub fn unit0_load(&self) -> &Reg<UNIT0_LOAD_SPEC>

0x5c - system timer unit0 conf sync register

Source

pub fn unit1_load(&self) -> &Reg<UNIT1_LOAD_SPEC>

0x60 - system timer unit1 conf sync register

Source

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

0x64 - systimer interrupt enable register

Source

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

0x68 - systimer interrupt raw register

Source

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

0x6c - systimer interrupt clear register

Source

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

0x70 - systimer interrupt status register

Source

pub fn real_target0_lo(&self) -> &Reg<REAL_TARGET0_LO_SPEC>

0x74 - system timer comp0 actual target value low register

Source

pub fn real_target0_hi(&self) -> &Reg<REAL_TARGET0_HI_SPEC>

0x78 - system timer comp0 actual target value high register

Source

pub fn real_target1_lo(&self) -> &Reg<REAL_TARGET1_LO_SPEC>

0x7c - system timer comp1 actual target value low register

Source

pub fn real_target1_hi(&self) -> &Reg<REAL_TARGET1_HI_SPEC>

0x80 - system timer comp1 actual target value high register

Source

pub fn real_target2_lo(&self) -> &Reg<REAL_TARGET2_LO_SPEC>

0x84 - system timer comp2 actual target value low register

Source

pub fn real_target2_hi(&self) -> &Reg<REAL_TARGET2_HI_SPEC>

0x88 - system timer comp2 actual target value high register

Source

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

0xfc - system timer version control register

Trait Implementations§

Source§

impl Debug for SYSTIMER

Source§

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

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

impl Deref for SYSTIMER

Source§

type Target = <SYSTIMER as Deref>::Target

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for SYSTIMER

Source§

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

Mutably dereferences the value.
Source§

impl Peripheral for SYSTIMER

Source§

type P = SYSTIMER

Peripheral singleton type
Source§

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

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.