Struct esp32_hal::pac::sens::sar_touch_ctrl2::R
pub struct R(_);
Expand description
Register SAR_TOUCH_CTRL2
reader
Implementations§
§impl R
impl R
pub fn touch_meas_en(&self) -> FieldReaderRaw<u16, u16>
pub fn touch_meas_en(&self) -> FieldReaderRaw<u16, u16>
Bits 0:9 - 10-bit register to indicate which pads are “touched”
pub fn touch_meas_done(&self) -> BitReaderRaw<bool>
pub fn touch_meas_done(&self) -> BitReaderRaw<bool>
Bit 10 - fsm set 1 to indicate touch touch meas is done
pub fn touch_start_fsm_en(&self) -> BitReaderRaw<bool>
pub fn touch_start_fsm_en(&self) -> BitReaderRaw<bool>
Bit 11 - 1: TOUCH_START & TOUCH_XPD is controlled by touch fsm 0: TOUCH_START & TOUCH_XPD is controlled by registers
pub fn touch_start_en(&self) -> BitReaderRaw<bool>
pub fn touch_start_en(&self) -> BitReaderRaw<bool>
Bit 12 - 1: start touch fsm valid when reg_touch_start_force is set
pub fn touch_start_force(&self) -> BitReaderRaw<bool>
pub fn touch_start_force(&self) -> BitReaderRaw<bool>
Bit 13 - 1: to start touch fsm by SW 0: to start touch fsm by timer
pub fn touch_sleep_cycles(&self) -> FieldReaderRaw<u16, u16>
pub fn touch_sleep_cycles(&self) -> FieldReaderRaw<u16, u16>
Bits 14:29 - sleep cycles for timer
Methods from Deref<Target = R<SAR_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<SAR_TOUCH_CTRL2_SPEC>> for R
impl From<R<SAR_TOUCH_CTRL2_SPEC>> for R
§fn from(reader: R<SAR_TOUCH_CTRL2_SPEC>) -> R
fn from(reader: R<SAR_TOUCH_CTRL2_SPEC>) -> R
Converts to this type from the input type.