pub type W = W<TOUCH_PAD_SPEC>;Expand description
Register TOUCH_PAD%s writer
Aliased Type§
struct W { /* private fields */ }Implementations§
source§impl W
impl W
sourcepub fn fun_ie(&mut self) -> FUN_IE_W<'_, TOUCH_PAD_SPEC>
pub fn fun_ie(&mut self) -> FUN_IE_W<'_, TOUCH_PAD_SPEC>
Bit 13 - Input enable in normal execution.
sourcepub fn slp_oe(&mut self) -> SLP_OE_W<'_, TOUCH_PAD_SPEC>
pub fn slp_oe(&mut self) -> SLP_OE_W<'_, TOUCH_PAD_SPEC>
Bit 14 - Output enable in sleep mode.
sourcepub fn slp_ie(&mut self) -> SLP_IE_W<'_, TOUCH_PAD_SPEC>
pub fn slp_ie(&mut self) -> SLP_IE_W<'_, TOUCH_PAD_SPEC>
Bit 15 - Input enable in sleep mode.
sourcepub fn slp_sel(&mut self) -> SLP_SEL_W<'_, TOUCH_PAD_SPEC>
pub fn slp_sel(&mut self) -> SLP_SEL_W<'_, TOUCH_PAD_SPEC>
Bit 16 - 0: no sleep mode. 1: enable sleep mode.
sourcepub fn fun_sel(&mut self) -> FUN_SEL_W<'_, TOUCH_PAD_SPEC>
pub fn fun_sel(&mut self) -> FUN_SEL_W<'_, TOUCH_PAD_SPEC>
Bits 17:18 - Function selection.
sourcepub fn mux_sel(&mut self) -> MUX_SEL_W<'_, TOUCH_PAD_SPEC>
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.
sourcepub fn xpd(&mut self) -> XPD_W<'_, TOUCH_PAD_SPEC>
pub fn xpd(&mut self) -> XPD_W<'_, TOUCH_PAD_SPEC>
Bit 20 - Touch sensor power on.
sourcepub fn tie_opt(&mut self) -> TIE_OPT_W<'_, TOUCH_PAD_SPEC>
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.
sourcepub fn start(&mut self) -> START_W<'_, TOUCH_PAD_SPEC>
pub fn start(&mut self) -> START_W<'_, TOUCH_PAD_SPEC>
Bit 22 - Start touch sensor.
sourcepub fn dac(&mut self) -> DAC_W<'_, TOUCH_PAD_SPEC>
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.
sourcepub fn rue(&mut self) -> RUE_W<'_, TOUCH_PAD_SPEC>
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.
sourcepub fn rde(&mut self) -> RDE_W<'_, TOUCH_PAD_SPEC>
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.
sourcepub fn drv(&mut self) -> DRV_W<'_, TOUCH_PAD_SPEC>
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.