Struct esp32s3_hal::pac::rtc_cntl::touch_ctrl2::R
pub struct R(_);
Expand description
Register TOUCH_CTRL2
reader
Implementations§
§impl R
impl R
pub fn touch_drange(&self) -> FieldReaderRaw<u8, u8>
pub fn touch_drange(&self) -> FieldReaderRaw<u8, u8>
Bits 2:3 - TOUCH_DRANGE
pub fn touch_drefl(&self) -> FieldReaderRaw<u8, u8>
pub fn touch_drefl(&self) -> FieldReaderRaw<u8, u8>
Bits 4:5 - TOUCH_DREFL
pub fn touch_drefh(&self) -> FieldReaderRaw<u8, u8>
pub fn touch_drefh(&self) -> FieldReaderRaw<u8, u8>
Bits 6:7 - TOUCH_DREFH
pub fn touch_xpd_bias(&self) -> BitReaderRaw<bool>
pub fn touch_xpd_bias(&self) -> BitReaderRaw<bool>
Bit 8 - TOUCH_XPD_BIAS
pub fn touch_refc(&self) -> FieldReaderRaw<u8, u8>
pub fn touch_refc(&self) -> FieldReaderRaw<u8, u8>
Bits 9:11 - TOUCH pad0 reference cap
pub fn touch_dbias(&self) -> BitReaderRaw<bool>
pub fn touch_dbias(&self) -> BitReaderRaw<bool>
Bit 12 - 1:use self bias 0:use bandgap bias
pub fn touch_slp_timer_en(&self) -> BitReaderRaw<bool>
pub fn touch_slp_timer_en(&self) -> BitReaderRaw<bool>
Bit 13 - touch timer enable bit
pub fn touch_start_fsm_en(&self) -> BitReaderRaw<bool>
pub fn touch_start_fsm_en(&self) -> BitReaderRaw<bool>
Bit 14 - 1: TOUCH_START & TOUCH_XPD is controlled by touch fsm
pub fn touch_start_en(&self) -> BitReaderRaw<bool>
pub fn touch_start_en(&self) -> BitReaderRaw<bool>
Bit 15 - 1: start touch fsm
pub fn touch_start_force(&self) -> BitReaderRaw<bool>
pub fn touch_start_force(&self) -> BitReaderRaw<bool>
Bit 16 - 1: to start touch fsm by SW
pub fn touch_xpd_wait(&self) -> FieldReaderRaw<u8, u8>
pub fn touch_xpd_wait(&self) -> FieldReaderRaw<u8, u8>
Bits 17:24 - the waiting cycles (in 8MHz) between TOUCH_START and TOUCH_XPD
pub fn touch_slp_cyc_div(&self) -> FieldReaderRaw<u8, u8>
pub fn touch_slp_cyc_div(&self) -> FieldReaderRaw<u8, u8>
Bits 25:26 - when a touch pad is active sleep cycle could be divided by this number
pub fn touch_timer_force_done(&self) -> FieldReaderRaw<u8, u8>
pub fn touch_timer_force_done(&self) -> FieldReaderRaw<u8, u8>
Bits 27:28 - force touch timer done
pub fn touch_reset(&self) -> BitReaderRaw<bool>
pub fn touch_reset(&self) -> BitReaderRaw<bool>
Bit 29 - reset upgrade touch
pub fn touch_clk_fo(&self) -> BitReaderRaw<bool>
pub fn touch_clk_fo(&self) -> BitReaderRaw<bool>
Bit 30 - touch clock force on
pub fn touch_clkgate_en(&self) -> BitReaderRaw<bool>
pub fn touch_clkgate_en(&self) -> BitReaderRaw<bool>
Bit 31 - touch clock enable
Methods from Deref<Target = R<TOUCH_CTRL2_SPEC>>§
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations§
§impl From<R<TOUCH_CTRL2_SPEC>> for R
impl From<R<TOUCH_CTRL2_SPEC>> for R
§fn from(reader: R<TOUCH_CTRL2_SPEC>) -> R
fn from(reader: R<TOUCH_CTRL2_SPEC>) -> R
Converts to this type from the input type.