Struct esp32_hal::pac::rtcio::touch_pad9::W
pub struct W(_);
Expand description
Register TOUCH_PAD9
writer
Implementations§
§impl W
impl W
pub fn to_gpio(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD9_SPEC, bool, BitM, 19>
pub fn to_gpio(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD9_SPEC, bool, BitM, 19>
Bit 19 - connect the rtc pad input to digital pad input Ó0Ó is availbale
pub fn xpd(&mut self) -> BitWriterRaw<'_, u32, TOUCH_PAD9_SPEC, bool, BitM, 20>
pub fn xpd(&mut self) -> BitWriterRaw<'_, u32, TOUCH_PAD9_SPEC, bool, BitM, 20>
Bit 20 - touch sensor power on.
pub fn tie_opt(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD9_SPEC, bool, BitM, 21>
pub fn tie_opt(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD9_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_PAD9_SPEC, bool, BitM, 22>
pub fn start(
&mut self
) -> BitWriterRaw<'_, u32, TOUCH_PAD9_SPEC, bool, BitM, 22>
Bit 22 - start touch sensor.
pub fn dac(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_PAD9_SPEC, u8, u8, Unsafe, 3, 23>
pub fn dac(
&mut self
) -> FieldWriterRaw<'_, u32, TOUCH_PAD9_SPEC, u8, u8, Unsafe, 3, 23>
Bits 23:25 - touch sensor slope control. 3-bit for each touch panel default 100.
Methods from Deref<Target = W<TOUCH_PAD9_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_PAD9_SPEC>> for W
impl From<W<TOUCH_PAD9_SPEC>> for W
§fn from(writer: W<TOUCH_PAD9_SPEC>) -> W
fn from(writer: W<TOUCH_PAD9_SPEC>) -> W
Converts to this type from the input type.