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_CONF00x00 - Configuration register 0 for unit %s
u0_conf1: U_CONF10x04 - Configuration register 1 for unit %s
u0_conf2: U_CONF20x08 - Configuration register 2 for unit %s
u1_conf0: U_CONF00x0c - Configuration register 0 for unit %s
u1_conf1: U_CONF10x10 - Configuration register 1 for unit %s
u1_conf2: U_CONF20x14 - Configuration register 2 for unit %s
u2_conf0: U_CONF00x18 - Configuration register 0 for unit %s
u2_conf1: U_CONF10x1c - Configuration register 1 for unit %s
u2_conf2: U_CONF20x20 - Configuration register 2 for unit %s
u3_conf0: U_CONF00x24 - Configuration register 0 for unit %s
u3_conf1: U_CONF10x28 - Configuration register 1 for unit %s
u3_conf2: U_CONF20x2c - Configuration register 2 for unit %s
u_cnt: [U_CNT; 4]0x30..0x40 - Counter value for unit %s
int_raw: INT_RAW0x40 - Interrupt raw status register
int_st: INT_ST0x44 - Interrupt status register
int_ena: INT_ENA0x48 - Interrupt enable register
int_clr: INT_CLR0x4c - Interrupt clear register
u_status: [U_STATUS; 4]0x50..0x60 - PNCT UNIT%s status register
ctrl: CTRL0x60 - Control register for all counters
date: DATE0xfc - PCNT version control register