Struct esp32c6::pcnt::RegisterBlock

source ·
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

source§

impl RegisterBlock

source

pub const fn unit(&self, n: usize) -> &UNIT

0x00..0x30 - Cluster UNIT%s, containing U?_CONF0, U?_CONF1, U?_CONF2

source

pub fn unit_iter(&self) -> impl Iterator<Item = &UNIT>

Iterator for array of: 0x00..0x30 - Cluster UNIT%s, containing U?_CONF0, U?_CONF1, U?_CONF2

source

pub const fn u_cnt(&self, n: usize) -> &U_CNT

0x30..0x40 - Counter value for unit %s

source

pub fn u_cnt_iter(&self) -> impl Iterator<Item = &U_CNT>

Iterator for array of: 0x30..0x40 - Counter value for unit %s

source

pub const fn u0_cnt(&self) -> &U_CNT

0x30 - Counter value for unit 0

source

pub const fn u1_cnt(&self) -> &U_CNT

0x34 - Counter value for unit 1

source

pub const fn u2_cnt(&self) -> &U_CNT

0x38 - Counter value for unit 2

source

pub const fn u3_cnt(&self) -> &U_CNT

0x3c - Counter value for unit 3

source

pub const fn int_raw(&self) -> &INT_RAW

0x40 - Interrupt raw status register

source

pub const fn int_st(&self) -> &INT_ST

0x44 - Interrupt status register

source

pub const fn int_ena(&self) -> &INT_ENA

0x48 - Interrupt enable register

source

pub const fn int_clr(&self) -> &INT_CLR

0x4c - Interrupt clear register

source

pub const fn u_status(&self, n: usize) -> &U_STATUS

0x50..0x60 - PNCT UNIT%s status register

source

pub fn u_status_iter(&self) -> impl Iterator<Item = &U_STATUS>

Iterator for array of: 0x50..0x60 - PNCT UNIT%s status register

source

pub const fn u0_status(&self) -> &U_STATUS

0x50 - PNCT UNIT0 status register

source

pub const fn u1_status(&self) -> &U_STATUS

0x54 - PNCT UNIT1 status register

source

pub const fn u2_status(&self) -> &U_STATUS

0x58 - PNCT UNIT2 status register

source

pub const fn u3_status(&self) -> &U_STATUS

0x5c - PNCT UNIT3 status register

source

pub const fn ctrl(&self) -> &CTRL

0x60 - Control register for all counters

source

pub const fn date(&self) -> &DATE

0xfc - PCNT version control register

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.