Struct esp32s2::pcnt::RegisterBlock

source ·
#[repr(C)]
pub struct RegisterBlock {
Show 20 fields pub u0_conf0: U_CONF0, pub u0_conf1: U_CONF1, pub u0_conf2: U_CONF2, pub u1_conf0: U_CONF0, pub u1_conf1: U_CONF1, pub u1_conf2: U_CONF2, pub u2_conf0: U_CONF0, pub u2_conf1: U_CONF1, pub u2_conf2: U_CONF2, pub u3_conf0: U_CONF0, pub u3_conf1: U_CONF1, pub u3_conf2: U_CONF2, pub u_cnt: [U_CNT; 4], pub int_raw: INT_RAW, pub int_st: INT_ST, pub int_ena: INT_ENA, pub int_clr: INT_CLR, pub u_status: [U_STATUS; 4], pub ctrl: CTRL, pub date: DATE, /* private fields */
}
Expand description

Register block

Fields§

§u0_conf0: U_CONF0

0x00 - Configuration register 0 for unit %s

§u0_conf1: U_CONF1

0x04 - Configuration register 1 for unit %s

§u0_conf2: U_CONF2

0x08 - Configuration register 2 for unit %s

§u1_conf0: U_CONF0

0x0c - Configuration register 0 for unit %s

§u1_conf1: U_CONF1

0x10 - Configuration register 1 for unit %s

§u1_conf2: U_CONF2

0x14 - Configuration register 2 for unit %s

§u2_conf0: U_CONF0

0x18 - Configuration register 0 for unit %s

§u2_conf1: U_CONF1

0x1c - Configuration register 1 for unit %s

§u2_conf2: U_CONF2

0x20 - Configuration register 2 for unit %s

§u3_conf0: U_CONF0

0x24 - Configuration register 0 for unit %s

§u3_conf1: U_CONF1

0x28 - Configuration register 1 for unit %s

§u3_conf2: U_CONF2

0x2c - Configuration register 2 for unit %s

§u_cnt: [U_CNT; 4]

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

§int_raw: INT_RAW

0x40 - Interrupt raw status register

§int_st: INT_ST

0x44 - Interrupt status register

§int_ena: INT_ENA

0x48 - Interrupt enable register

§int_clr: INT_CLR

0x4c - Interrupt clear register

§u_status: [U_STATUS; 4]

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

§ctrl: CTRL

0x60 - Control register for all counters

§date: DATE

0xfc - PCNT version control register

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.