Struct esp32_hal::pac::sens::sar_touch_ctrl1::W
pub struct W(_);
Expand description
Register SAR_TOUCH_CTRL1
writer
Implementations§
§impl W
impl W
pub fn touch_meas_delay(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_TOUCH_CTRL1_SPEC, u16, u16, Unsafe, 16, 0>
pub fn touch_meas_delay(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_TOUCH_CTRL1_SPEC, u16, u16, Unsafe, 16, 0>
Bits 0:15 - the meas length (in 8MHz)
pub fn touch_xpd_wait(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_TOUCH_CTRL1_SPEC, u8, u8, Unsafe, 8, 16>
pub fn touch_xpd_wait(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_TOUCH_CTRL1_SPEC, u8, u8, Unsafe, 8, 16>
Bits 16:23 - the waiting cycles (in 8MHz) between TOUCH_START and TOUCH_XPD
pub fn touch_out_sel(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL1_SPEC, bool, BitM, 24>
pub fn touch_out_sel(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL1_SPEC, bool, BitM, 24>
Bit 24 - 1: when the counter is greater then the threshold the touch pad is considered as “touched” 0: when the counter is less than the threshold the touch pad is considered as “touched”
pub fn touch_out_1en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL1_SPEC, bool, BitM, 25>
pub fn touch_out_1en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL1_SPEC, bool, BitM, 25>
Bit 25 - 1: wakeup interrupt is generated if SET1 is “touched” 0: wakeup interrupt is generated only if SET1 & SET2 is both “touched”
pub fn xpd_hall_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL1_SPEC, bool, BitM, 26>
pub fn xpd_hall_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL1_SPEC, bool, BitM, 26>
Bit 26 - 1: XPD HALL is controlled by SW. 0: XPD HALL is controlled by FSM in ULP-coprocessor
pub fn hall_phase_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL1_SPEC, bool, BitM, 27>
pub fn hall_phase_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL1_SPEC, bool, BitM, 27>
Bit 27 - 1: HALL PHASE is controlled by SW 0: HALL PHASE is controlled by FSM in ULP-coprocessor
Methods from Deref<Target = W<SAR_TOUCH_CTRL1_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.