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 = {0x3f423000 as *const <esp32s2::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 load(&self) -> &Reg<LOAD_SPEC>

0x04 - Load value to system timer

source

pub fn load_hi(&self) -> &Reg<LOAD_HI_SPEC>

0x08 - High 32 bits to be loaded to system timer

source

pub fn load_lo(&self) -> &Reg<LOAD_LO_SPEC>

0x0c - Low 32 bits to be loaded to system timer

source

pub fn step(&self) -> &Reg<STEP_SPEC>

0x10 - System timer accumulation step

source

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

0x14 - System timer target 0, high 32 bits

source

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

0x18 - System timer target 0, low 32 bits

source

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

0x1c - System timer target 1, high 32 bits

source

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

0x20 - System timer target 1, low 32 bits

source

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

0x24 - System timer target 2, high 32 bits

source

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

0x28 - System timer target 2, low 32 bits

source

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

0x2c - Configure work mode for system timer target 0

source

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

0x30 - Configure work mode for system timer target 1

source

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

0x34 - Configure work mode for system timer target 2

source

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

0x38 - Read out system timer value

source

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

0x3c - System timer value, high 32 bits

source

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

0x40 - System timer value, low 32 bits

source

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

0x44 - System timer interrupt enable

source

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

0x48 - System timer interrupt raw

source

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

0x4c - System timer interrupt clear

source

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

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