Struct esp32::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..0x60 - 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..0x60 - Cluster UNIT%s, containing U?_CONF0, U?_CONF1, U?_CONF2

source

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

0x60..0x80 -

source

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

Iterator for array of: 0x60..0x80 -

source

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

0x60 - U0_CNT

source

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

0x64 - U1_CNT

source

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

0x68 - U2_CNT

source

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

0x6c - U3_CNT

source

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

0x70 - U4_CNT

source

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

0x74 - U5_CNT

source

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

0x78 - U6_CNT

source

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

0x7c - U7_CNT

source

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

0x80 -

source

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

0x84 -

source

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

0x88 -

source

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

0x8c -

source

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

0x90..0xb0 -

source

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

Iterator for array of: 0x90..0xb0 -

source

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

0x90 - U0_STATUS

source

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

0x94 - U1_STATUS

source

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

0x98 - U2_STATUS

source

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

0x9c - U3_STATUS

source

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

0xa0 - U4_STATUS

source

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

0xa4 - U5_STATUS

source

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

0xa8 - U6_STATUS

source

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

0xac - U7_STATUS

source

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

0xb0 -

source

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

0xfc -

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.