Type Alias esp32s2::rtc_io::touch_pad::W

source ·
pub type W = W<TOUCH_PAD_SPEC>;
Expand description

Register TOUCH_PAD%s writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn fun_ie(&mut self) -> FUN_IE_W<'_, TOUCH_PAD_SPEC>

Bit 13 - Input enable in normal execution.

source

pub fn slp_oe(&mut self) -> SLP_OE_W<'_, TOUCH_PAD_SPEC>

Bit 14 - Output enable in sleep mode.

source

pub fn slp_ie(&mut self) -> SLP_IE_W<'_, TOUCH_PAD_SPEC>

Bit 15 - Input enable in sleep mode.

source

pub fn slp_sel(&mut self) -> SLP_SEL_W<'_, TOUCH_PAD_SPEC>

Bit 16 - 0: no sleep mode. 1: enable sleep mode.

source

pub fn fun_sel(&mut self) -> FUN_SEL_W<'_, TOUCH_PAD_SPEC>

Bits 17:18 - Function selection.

source

pub fn mux_sel(&mut self) -> MUX_SEL_W<'_, TOUCH_PAD_SPEC>

Bit 19 - Connect the RTC pad input to digital pad input. 0 is available.

source

pub fn xpd(&mut self) -> XPD_W<'_, TOUCH_PAD_SPEC>

Bit 20 - Touch sensor power on.

source

pub fn tie_opt(&mut self) -> TIE_OPT_W<'_, TOUCH_PAD_SPEC>

Bit 21 - The tie option of touch sensor. 0: tie low. 1: tie high.

source

pub fn start(&mut self) -> START_W<'_, TOUCH_PAD_SPEC>

Bit 22 - Start touch sensor.

source

pub fn dac(&mut self) -> DAC_W<'_, TOUCH_PAD_SPEC>

Bits 23:25 - Touch sensor slope control. 3-bit for each touch pad, defaults to 0x4.

source

pub fn rue(&mut self) -> RUE_W<'_, TOUCH_PAD_SPEC>

Bit 27 - Pull-down enable of the pad. 1: internal pull-down enabled. 0: internal pull-down disabled.

source

pub fn rde(&mut self) -> RDE_W<'_, TOUCH_PAD_SPEC>

Bit 28 - Pull-up enable of the pad. 1: internal pull-up enabled. 0: internal pull-up disabled.

source

pub fn drv(&mut self) -> DRV_W<'_, TOUCH_PAD_SPEC>

Bits 29:30 - Select the drive strength of the pad. 0: ~5 mA. 1: ~10 mA. 2: ~20 mA. 3: ~40 mA.