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