Struct esp32s2::rtc_cntl::touch_ctrl2::R
source · pub struct R(_);Expand description
Register TOUCH_CTRL2 reader
Implementations§
source§impl R
impl R
sourcepub fn touch_drange(&self) -> TOUCH_DRANGE_R
pub fn touch_drange(&self) -> TOUCH_DRANGE_R
Bits 2:3 - TOUCH attenuation.
sourcepub fn touch_drefl(&self) -> TOUCH_DREFL_R
pub fn touch_drefl(&self) -> TOUCH_DREFL_R
Bits 4:5 - TOUCH reference voltage low. 0: 0.5 V 1: 0.6 V 2: 0.7 V 3: 0.8 V.
sourcepub fn touch_drefh(&self) -> TOUCH_DREFH_R
pub fn touch_drefh(&self) -> TOUCH_DREFH_R
Bits 6:7 - TOUCH reference voltage high. 0: 2.4 V 1: 2.5 V 2: 2.6 V 3: 2.7 V.
sourcepub fn touch_xpd_bias(&self) -> TOUCH_XPD_BIAS_R
pub fn touch_xpd_bias(&self) -> TOUCH_XPD_BIAS_R
Bit 8 - TOUCH BIAS power switch.
sourcepub fn touch_refc(&self) -> TOUCH_REFC_R
pub fn touch_refc(&self) -> TOUCH_REFC_R
Bits 9:11 - Touch pad 0 reference capacitance.
sourcepub fn touch_dbias(&self) -> TOUCH_DBIAS_R
pub fn touch_dbias(&self) -> TOUCH_DBIAS_R
Bit 12 - 0: Use bandgap bias. 1: Use self bias.
sourcepub fn touch_slp_timer_en(&self) -> TOUCH_SLP_TIMER_EN_R
pub fn touch_slp_timer_en(&self) -> TOUCH_SLP_TIMER_EN_R
Bit 13 - Touch timer enable bit.
sourcepub fn touch_start_fsm_en(&self) -> TOUCH_START_FSM_EN_R
pub fn touch_start_fsm_en(&self) -> TOUCH_START_FSM_EN_R
Bit 14 - 0: TOUCH_START and TOUCH_XPD are controlled by soft- ware. 1: TOUCH_START and TOUCH_XPD are controlled by the Touch FSM.
sourcepub fn touch_start_en(&self) -> TOUCH_START_EN_R
pub fn touch_start_en(&self) -> TOUCH_START_EN_R
Bit 15 - 1: Start the Touch FSM, only valid when RTC_CNTL_TOUCH_START_FORCE = 1.
sourcepub fn touch_start_force(&self) -> TOUCH_START_FORCE_R
pub fn touch_start_force(&self) -> TOUCH_START_FORCE_R
Bit 16 - 0: Start the Touch FSM by timer. 1: Start Touch FSM by software.
sourcepub fn touch_xpd_wait(&self) -> TOUCH_XPD_WAIT_R
pub fn touch_xpd_wait(&self) -> TOUCH_XPD_WAIT_R
Bits 17:24 - The waiting cycles (in 8MHz) between TOUCH_START and TOUCH_XPD.
sourcepub fn touch_slp_cyc_div(&self) -> TOUCH_SLP_CYC_DIV_R
pub fn touch_slp_cyc_div(&self) -> TOUCH_SLP_CYC_DIV_R
Bits 25:26 - When a touch pad is active, sleep cycle could be divided by this number.
sourcepub fn touch_timer_force_done(&self) -> TOUCH_TIMER_FORCE_DONE_R
pub fn touch_timer_force_done(&self) -> TOUCH_TIMER_FORCE_DONE_R
Bits 27:28 - Force touch timer done.
sourcepub fn touch_reset(&self) -> TOUCH_RESET_R
pub fn touch_reset(&self) -> TOUCH_RESET_R
Bit 29 - Reset TOUCH FSM via software.
sourcepub fn touch_clk_fo(&self) -> TOUCH_CLK_FO_R
pub fn touch_clk_fo(&self) -> TOUCH_CLK_FO_R
Bit 30 - Touch clock force on.
sourcepub fn touch_clkgate_en(&self) -> TOUCH_CLKGATE_EN_R
pub fn touch_clkgate_en(&self) -> TOUCH_CLKGATE_EN_R
Bit 31 - Touch clock enable bit.