Struct esp32_hal::pac::sens::sar_touch_ctrl2::W
pub struct W(_);
Expand description
Register SAR_TOUCH_CTRL2
writer
Implementations§
§impl W
impl W
pub fn touch_start_fsm_en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL2_SPEC, bool, BitM, 11>
pub fn touch_start_fsm_en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL2_SPEC, bool, BitM, 11>
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(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL2_SPEC, bool, BitM, 12>
pub fn touch_start_en(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL2_SPEC, bool, BitM, 12>
Bit 12 - 1: start touch fsm valid when reg_touch_start_force is set
pub fn touch_start_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL2_SPEC, bool, BitM, 13>
pub fn touch_start_force(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL2_SPEC, bool, BitM, 13>
Bit 13 - 1: to start touch fsm by SW 0: to start touch fsm by timer
pub fn touch_sleep_cycles(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_TOUCH_CTRL2_SPEC, u16, u16, Unsafe, 16, 14>
pub fn touch_sleep_cycles(
&mut self
) -> FieldWriterRaw<'_, u32, SAR_TOUCH_CTRL2_SPEC, u16, u16, Unsafe, 16, 14>
Bits 14:29 - sleep cycles for timer
pub fn touch_meas_en_clr(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL2_SPEC, bool, BitM, 30>
pub fn touch_meas_en_clr(
&mut self
) -> BitWriterRaw<'_, u32, SAR_TOUCH_CTRL2_SPEC, bool, BitM, 30>
Bit 30 - to clear reg_touch_meas_en
Methods from Deref<Target = W<SAR_TOUCH_CTRL2_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.
Trait Implementations§
§impl From<W<SAR_TOUCH_CTRL2_SPEC>> for W
impl From<W<SAR_TOUCH_CTRL2_SPEC>> for W
§fn from(writer: W<SAR_TOUCH_CTRL2_SPEC>) -> W
fn from(writer: W<SAR_TOUCH_CTRL2_SPEC>) -> W
Converts to this type from the input type.