Struct esp32s2::rtc_cntl::touch_ctrl2::R

source ·
pub struct R(_);
Expand description

Register TOUCH_CTRL2 reader

Implementations§

Bits 2:3 - TOUCH attenuation.

Bits 4:5 - TOUCH reference voltage low. 0: 0.5 V 1: 0.6 V 2: 0.7 V 3: 0.8 V.

Bits 6:7 - TOUCH reference voltage high. 0: 2.4 V 1: 2.5 V 2: 2.6 V 3: 2.7 V.

Bit 8 - TOUCH BIAS power switch.

Bits 9:11 - Touch pad 0 reference capacitance.

Bit 12 - 0: Use bandgap bias. 1: Use self bias.

Bit 13 - Touch timer enable bit.

Bit 14 - 0: TOUCH_START and TOUCH_XPD are controlled by soft- ware. 1: TOUCH_START and TOUCH_XPD are controlled by the Touch FSM.

Bit 15 - 1: Start the Touch FSM, only valid when RTC_CNTL_TOUCH_START_FORCE = 1.

Bit 16 - 0: Start the Touch FSM by timer. 1: Start Touch FSM by software.

Bits 17:24 - The waiting cycles (in 8MHz) between TOUCH_START and TOUCH_XPD.

Bits 25:26 - When a touch pad is active, sleep cycle could be divided by this number.

Bits 27:28 - Force touch timer done.

Bit 29 - Reset TOUCH FSM via software.

Bit 30 - Touch clock force on.

Bit 31 - Touch clock enable bit.

Methods from Deref<Target = R<TOUCH_CTRL2_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.