Struct esp32s2::rtcio::touch_pad::R

source ·
pub struct R(_);
Expand description

Register TOUCH_PAD%s reader

Implementations§

Bit 13 - Input enable in normal execution.

Bit 14 - Output enable in sleep mode.

Bit 15 - Input enable in sleep mode.

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

Bits 17:18 - Function selection.

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

Bit 20 - Touch sensor power on.

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

Bit 22 - Start touch sensor.

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

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

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

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

Methods from Deref<Target = R<TOUCH_PAD_SPEC>>§

Reads raw bits from register.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.