Struct esp32s3_hal::pac::rtcio::touch_pad2::W
pub struct W(_);
Expand description
Register TOUCH_PAD2
writer
Implementations§
§impl W
impl W
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 - input enable in work mode
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 - output enable in sleep mode
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 - input enable in sleep mode
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 - 1: enable sleep mode during sleep,0: no sleep mode
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 - function sel
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: use RTC GPIO,0: use digital GPIO
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_XPD
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 - TOUCH_TIE_OPT
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 - TOUCH_START
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 - RUE
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 - RDE
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 - DRV
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.
Trait Implementations§
§impl From<W<TOUCH_PAD2_SPEC>> for W
impl From<W<TOUCH_PAD2_SPEC>> for W
§fn from(writer: W<TOUCH_PAD2_SPEC>) -> W
fn from(writer: W<TOUCH_PAD2_SPEC>) -> W
Converts to this type from the input type.