Struct esp32s3_hal::peripherals::PCNT
source · pub struct PCNT { /* private fields */ }
Implementations§
source§impl PCNT
impl PCNT
sourcepub unsafe fn steal() -> PCNT
pub unsafe fn steal() -> PCNT
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.
Methods from Deref<Target = RegisterBlock>§
sourcepub fn u_conf0(&self, n: usize) -> &Reg<U_CONF0_SPEC>
pub fn u_conf0(&self, n: usize) -> &Reg<U_CONF0_SPEC>
0x00..0x10 - Configuration register 0 for unit %s
sourcepub fn u_conf0_iter(&self) -> impl Iterator<Item = &Reg<U_CONF0_SPEC>>
pub fn u_conf0_iter(&self) -> impl Iterator<Item = &Reg<U_CONF0_SPEC>>
Iterator for array of: 0x00..0x10 - Configuration register 0 for unit %s
sourcepub fn u0_conf0(&self) -> &Reg<U_CONF0_SPEC>
pub fn u0_conf0(&self) -> &Reg<U_CONF0_SPEC>
0x00 - Configuration register 0 for unit 0
sourcepub fn u1_conf0(&self) -> &Reg<U_CONF0_SPEC>
pub fn u1_conf0(&self) -> &Reg<U_CONF0_SPEC>
0x0c - Configuration register 0 for unit 1
sourcepub fn u2_conf0(&self) -> &Reg<U_CONF0_SPEC>
pub fn u2_conf0(&self) -> &Reg<U_CONF0_SPEC>
0x18 - Configuration register 0 for unit 2
sourcepub fn u3_conf0(&self) -> &Reg<U_CONF0_SPEC>
pub fn u3_conf0(&self) -> &Reg<U_CONF0_SPEC>
0x24 - Configuration register 0 for unit 3
sourcepub fn u_conf1(&self, n: usize) -> &Reg<U_CONF1_SPEC>
pub fn u_conf1(&self, n: usize) -> &Reg<U_CONF1_SPEC>
0x04..0x14 - Configuration register 1 for unit %s
sourcepub fn u_conf1_iter(&self) -> impl Iterator<Item = &Reg<U_CONF1_SPEC>>
pub fn u_conf1_iter(&self) -> impl Iterator<Item = &Reg<U_CONF1_SPEC>>
Iterator for array of: 0x04..0x14 - Configuration register 1 for unit %s
sourcepub fn u0_conf1(&self) -> &Reg<U_CONF1_SPEC>
pub fn u0_conf1(&self) -> &Reg<U_CONF1_SPEC>
0x04 - Configuration register 1 for unit 0
sourcepub fn u1_conf1(&self) -> &Reg<U_CONF1_SPEC>
pub fn u1_conf1(&self) -> &Reg<U_CONF1_SPEC>
0x10 - Configuration register 1 for unit 1
sourcepub fn u2_conf1(&self) -> &Reg<U_CONF1_SPEC>
pub fn u2_conf1(&self) -> &Reg<U_CONF1_SPEC>
0x1c - Configuration register 1 for unit 2
sourcepub fn u3_conf1(&self) -> &Reg<U_CONF1_SPEC>
pub fn u3_conf1(&self) -> &Reg<U_CONF1_SPEC>
0x28 - Configuration register 1 for unit 3
sourcepub fn u_conf2(&self, n: usize) -> &Reg<U_CONF2_SPEC>
pub fn u_conf2(&self, n: usize) -> &Reg<U_CONF2_SPEC>
0x08..0x18 - Configuration register 2 for unit %s
sourcepub fn u_conf2_iter(&self) -> impl Iterator<Item = &Reg<U_CONF2_SPEC>>
pub fn u_conf2_iter(&self) -> impl Iterator<Item = &Reg<U_CONF2_SPEC>>
Iterator for array of: 0x08..0x18 - Configuration register 2 for unit %s
sourcepub fn u0_conf2(&self) -> &Reg<U_CONF2_SPEC>
pub fn u0_conf2(&self) -> &Reg<U_CONF2_SPEC>
0x08 - Configuration register 2 for unit 0
sourcepub fn u1_conf2(&self) -> &Reg<U_CONF2_SPEC>
pub fn u1_conf2(&self) -> &Reg<U_CONF2_SPEC>
0x14 - Configuration register 2 for unit 1
sourcepub fn u2_conf2(&self) -> &Reg<U_CONF2_SPEC>
pub fn u2_conf2(&self) -> &Reg<U_CONF2_SPEC>
0x20 - Configuration register 2 for unit 2
sourcepub fn u3_conf2(&self) -> &Reg<U_CONF2_SPEC>
pub fn u3_conf2(&self) -> &Reg<U_CONF2_SPEC>
0x2c - Configuration register 2 for unit 3
sourcepub fn u_cnt(&self, n: usize) -> &Reg<U_CNT_SPEC>
pub fn u_cnt(&self, n: usize) -> &Reg<U_CNT_SPEC>
0x30..0x40 - Counter value for unit %s
sourcepub fn u_cnt_iter(&self) -> impl Iterator<Item = &Reg<U_CNT_SPEC>>
pub fn u_cnt_iter(&self) -> impl Iterator<Item = &Reg<U_CNT_SPEC>>
Iterator for array of: 0x30..0x40 - Counter value for unit %s
sourcepub fn u0_cnt(&self) -> &Reg<U_CNT_SPEC>
pub fn u0_cnt(&self) -> &Reg<U_CNT_SPEC>
0x30 - Counter value for unit 0
sourcepub fn u1_cnt(&self) -> &Reg<U_CNT_SPEC>
pub fn u1_cnt(&self) -> &Reg<U_CNT_SPEC>
0x34 - Counter value for unit 1
sourcepub fn u2_cnt(&self) -> &Reg<U_CNT_SPEC>
pub fn u2_cnt(&self) -> &Reg<U_CNT_SPEC>
0x38 - Counter value for unit 2
sourcepub fn u3_cnt(&self) -> &Reg<U_CNT_SPEC>
pub fn u3_cnt(&self) -> &Reg<U_CNT_SPEC>
0x3c - Counter value for unit 3
sourcepub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
0x40 - Interrupt raw status register
sourcepub fn int_st(&self) -> &Reg<INT_ST_SPEC>
pub fn int_st(&self) -> &Reg<INT_ST_SPEC>
0x44 - Interrupt status register
sourcepub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0x48 - Interrupt enable register
sourcepub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
0x4c - Interrupt clear register
sourcepub fn u_status(&self, n: usize) -> &Reg<U_STATUS_SPEC>
pub fn u_status(&self, n: usize) -> &Reg<U_STATUS_SPEC>
0x50..0x60 - PNCT UNIT%s status register
sourcepub fn u_status_iter(&self) -> impl Iterator<Item = &Reg<U_STATUS_SPEC>>
pub fn u_status_iter(&self) -> impl Iterator<Item = &Reg<U_STATUS_SPEC>>
Iterator for array of: 0x50..0x60 - PNCT UNIT%s status register
sourcepub fn u0_status(&self) -> &Reg<U_STATUS_SPEC>
pub fn u0_status(&self) -> &Reg<U_STATUS_SPEC>
0x50 - PNCT UNIT0 status register
sourcepub fn u1_status(&self) -> &Reg<U_STATUS_SPEC>
pub fn u1_status(&self) -> &Reg<U_STATUS_SPEC>
0x54 - PNCT UNIT1 status register
sourcepub fn u2_status(&self) -> &Reg<U_STATUS_SPEC>
pub fn u2_status(&self) -> &Reg<U_STATUS_SPEC>
0x58 - PNCT UNIT2 status register
sourcepub fn u3_status(&self) -> &Reg<U_STATUS_SPEC>
pub fn u3_status(&self) -> &Reg<U_STATUS_SPEC>
0x5c - PNCT UNIT3 status register