esp_hal::peripherals

Struct SYSTIMER

Source
pub struct SYSTIMER { /* 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 SYSTIMER

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 SYSTIMER

Source

pub const PTR: *const <SYSTIMER as Deref>::Target = {0x6000a000 as *const <esp32c6::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 unit_op(&self, n: usize) -> &Reg<UNIT_OP_SPEC>

0x04..0x0c - system timer unit%s value update register

Source

pub fn unit_op_iter(&self) -> impl Iterator<Item = &Reg<UNIT_OP_SPEC>>

Iterator for array of: 0x04..0x0c - system timer unit%s value update register

Source

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

0x04 - system timer unit0 value update register

Source

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

0x08 - system timer unit1 value update register

Source

pub fn unitload(&self, n: usize) -> &UNITLOAD

0x0c..0x1c - Cluster UNIT%sLOAD, containing UNIT?_LOAD_HI, UNIT?_LOAD_LO

Source

pub fn unitload_iter(&self) -> impl Iterator<Item = &UNITLOAD>

Iterator for array of: 0x0c..0x1c - Cluster UNIT%sLOAD, containing UNIT?_LOAD_HI, UNIT?_LOAD_LO

Source

pub fn unit0load(&self) -> &UNITLOAD

0x0c..0x14 - Cluster UNIT0LOAD, containing UNIT?_LOAD_HI, UNIT?_LOAD_LO

Source

pub fn unit1load(&self) -> &UNITLOAD

0x14..0x1c - Cluster UNIT1LOAD, containing UNIT?_LOAD_HI, UNIT?_LOAD_LO

Source

pub fn trgt(&self, n: usize) -> &TRGT

0x1c..0x34 - Cluster TRGT%s, containing TARGET?_HI, TARGET?_LO

Source

pub fn trgt_iter(&self) -> impl Iterator<Item = &TRGT>

Iterator for array of: 0x1c..0x34 - Cluster TRGT%s, containing TARGET?_HI, TARGET?_LO

Source

pub fn target_conf(&self, n: usize) -> &Reg<TARGET_CONF_SPEC>

0x34..0x40 - system timer comp%s target mode register

Source

pub fn target_conf_iter(&self) -> impl Iterator<Item = &Reg<TARGET_CONF_SPEC>>

Iterator for array of: 0x34..0x40 - system timer comp%s target mode register

Source

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

0x34 - system timer comp0 target mode register

Source

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

0x38 - system timer comp1 target mode register

Source

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

0x3c - system timer comp2 target mode register

Source

pub fn unit_value(&self, n: usize) -> &UNIT_VALUE

0x40..0x50 - Cluster UNIT%s_VALUE, containing UNIT?_VALUE_HI, UNIT?_VALUE_LO

Source

pub fn unit_value_iter(&self) -> impl Iterator<Item = &UNIT_VALUE>

Iterator for array of: 0x40..0x50 - Cluster UNIT%s_VALUE, containing UNIT?_VALUE_HI, UNIT?_VALUE_LO

Source

pub fn unit0_value(&self) -> &UNIT_VALUE

0x40..0x48 - Cluster UNIT0_VALUE, containing UNIT?_VALUE_HI, UNIT?_VALUE_LO

Source

pub fn unit1_value(&self) -> &UNIT_VALUE

0x48..0x50 - Cluster UNIT1_VALUE, containing UNIT?_VALUE_HI, UNIT?_VALUE_LO

Source

pub fn comp_load(&self, n: usize) -> &Reg<COMP_LOAD_SPEC>

0x50..0x5c - system timer comp%s conf sync register

Source

pub fn comp_load_iter(&self) -> impl Iterator<Item = &Reg<COMP_LOAD_SPEC>>

Iterator for array of: 0x50..0x5c - system timer comp%s conf sync register

Source

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

0x50 - system timer comp0 conf sync register

Source

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

0x54 - system timer comp1 conf sync register

Source

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

0x58 - system timer comp2 conf sync register

Source

pub fn unit_load(&self, n: usize) -> &Reg<UNIT_LOAD_SPEC>

0x5c..0x64 - system timer unit%s conf sync register

Source

pub fn unit_load_iter(&self) -> impl Iterator<Item = &Reg<UNIT_LOAD_SPEC>>

Iterator for array of: 0x5c..0x64 - system timer unit%s conf sync register

Source

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

0x5c - system timer unit0 conf sync register

Source

pub fn unit1_load(&self) -> &Reg<UNIT_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_target(&self, n: usize) -> &REAL_TARGET

0x74..0x8c - Cluster REAL_TARGET%s, containing REAL_TARGET?_LO, REAL_TARGET?_HI

Source

pub fn real_target_iter(&self) -> impl Iterator<Item = &REAL_TARGET>

Iterator for array of: 0x74..0x8c - Cluster REAL_TARGET%s, containing REAL_TARGET?_LO, REAL_TARGET?_HI

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

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

Dereferences the value.
Source§

impl DerefMut for SYSTIMER

Source§

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

Mutably dereferences the value.
Source§

impl Peripheral for SYSTIMER

Source§

type P = SYSTIMER

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§

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.