pub struct SYSTIMER { /* private fields */ }

Implementations§

source§

impl SYSTIMER

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 PTR: *const <SYSTIMER as Deref>::Target = {0x60023000 as *const <esp32s3::SYSTIMER as core::ops::Deref>::Target}

Pointer to the register block

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

§

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

§

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