Struct esp32s2::rtc_io::touch_pad::R

source ·
pub struct R(_);
Expand description

Register TOUCH_PAD%s reader

Implementations§

source§

impl R

source

pub fn touch_pad0_fun_ie(&self) -> TOUCH_PAD0_FUN_IE_R

Bit 13 - Input enable in normal execution.

source

pub fn touch_pad0_slp_oe(&self) -> TOUCH_PAD0_SLP_OE_R

Bit 14 - Output enable in sleep mode.

source

pub fn touch_pad0_slp_ie(&self) -> TOUCH_PAD0_SLP_IE_R

Bit 15 - Input enable in sleep mode.

source

pub fn touch_pad0_slp_sel(&self) -> TOUCH_PAD0_SLP_SEL_R

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

source

pub fn touch_pad0_fun_sel(&self) -> TOUCH_PAD0_FUN_SEL_R

Bits 17:18 - Function selection.

source

pub fn touch_pad0_mux_sel(&self) -> TOUCH_PAD0_MUX_SEL_R

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

source

pub fn touch_pad0_xpd(&self) -> TOUCH_PAD0_XPD_R

Bit 20 - Touch sensor power on.

source

pub fn touch_pad0_tie_opt(&self) -> TOUCH_PAD0_TIE_OPT_R

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

source

pub fn touch_pad0_start(&self) -> TOUCH_PAD0_START_R

Bit 22 - Start touch sensor.

source

pub fn touch_pad0_dac(&self) -> TOUCH_PAD0_DAC_R

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

source

pub fn touch_pad0_rue(&self) -> TOUCH_PAD0_RUE_R

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

source

pub fn touch_pad0_rde(&self) -> TOUCH_PAD0_RDE_R

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

source

pub fn touch_pad0_drv(&self) -> TOUCH_PAD0_DRV_R

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>>§

source

pub fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<TOUCH_PAD_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl From<R<TOUCH_PAD_SPEC>> for R

source§

fn from(reader: R<TOUCH_PAD_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.