Struct esp32_hal::pac::rtcio::touch_pad2::W
pub struct W(_);
Expand description
Register TOUCH_PAD2
writer
Implementations§
§impl W
impl W
pub fn to_gpio(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 12>
pub fn to_gpio(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 12>
Bit 12 - connect the rtc pad input to digital pad input Ó0Ó is availbale.GPIO2
pub fn fun_ie(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 13>
pub fn fun_ie(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 13>
Bit 13 - the input enable of the pad
pub fn slp_oe(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 14>
pub fn slp_oe(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 14>
Bit 14 - the output enable of the pad in sleep status
pub fn slp_ie(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 15>
pub fn slp_ie(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 15>
Bit 15 - the input enable of the pad in sleep status
pub fn slp_sel(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 16>
pub fn slp_sel(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 16>
Bit 16 - the sleep status selection signal of the pad
pub fn fun_sel(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_PAD2_SPEC, u8, u8, Unsafe, 2, 17>
pub fn fun_sel(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_PAD2_SPEC, u8, u8, Unsafe, 2, 17>
Bits 17:18 - the functional selection signal of the pad
pub fn mux_sel(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 19>
pub fn mux_sel(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 19>
Bit 19 - Ò1Ó select the digital function Ó0Óslection the rtc function
pub fn xpd(&mut self) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 20>
pub fn xpd(&mut self) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 20>
Bit 20 - touch sensor power on.
pub fn tie_opt(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 21>
pub fn tie_opt(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 21>
Bit 21 - default touch sensor tie option. 0: tie low 1: tie high.
pub fn start(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 22>
pub fn start(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 22>
Bit 22 - start touch sensor.
pub fn dac(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_PAD2_SPEC, u8, u8, Unsafe, 3, 23>
pub fn dac(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_PAD2_SPEC, u8, u8, Unsafe, 3, 23>
Bits 23:25 - touch sensor slope control. 3-bit for each touch panel default 100.
pub fn rue(&mut self) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 27>
pub fn rue(&mut self) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 27>
Bit 27 - the pull up enable of the pad
pub fn rde(&mut self) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 28>
pub fn rde(&mut self) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 28>
Bit 28 - the pull down enable of the pad
pub fn drv(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_PAD2_SPEC, u8, u8, Unsafe, 2, 29>
pub fn drv(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_PAD2_SPEC, u8, u8, Unsafe, 2, 29>
Bits 29:30 - the driver strength of the pad
pub fn hold(&mut self) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 31>
pub fn hold(&mut self) -> BitWriterRaw<'_, u32, TOUCH_PAD2_SPEC, bool, BitM, 31>
Bit 31 - hold the current value of the output when setting the hold to Ò1Ó
Methods from Deref<Target = W<TOUCH_PAD2_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.