Struct esp32_hal::peripherals::SENS

source ·
pub struct SENS { /* private fields */ }

Implementations§

source§

impl SENS

source

pub unsafe fn steal() -> SENS

Unsafely create an instance of this peripheral out of thin air.

§Safety

You must ensure that you’re only using one instance of this type at a time.

source

pub const PTR: *const <SENS as Deref>::Target = {0x3ff48800 as *const <esp32::SENS as core::ops::Deref>::Target}

Pointer to the register block

source

pub const fn ptr() -> *const <SENS as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn sar_read_ctrl(&self) -> &Reg<SAR_READ_CTRL_SPEC>

0x00 -

source

pub fn sar_read_status1(&self) -> &Reg<SAR_READ_STATUS1_SPEC>

0x04 -

source

pub fn sar_meas_wait1(&self) -> &Reg<SAR_MEAS_WAIT1_SPEC>

0x08 -

source

pub fn sar_meas_wait2(&self) -> &Reg<SAR_MEAS_WAIT2_SPEC>

0x0c -

source

pub fn sar_meas_ctrl(&self) -> &Reg<SAR_MEAS_CTRL_SPEC>

0x10 -

source

pub fn sar_read_status2(&self) -> &Reg<SAR_READ_STATUS2_SPEC>

0x14 -

source

pub fn ulp_cp_sleep_cyc0(&self) -> &Reg<ULP_CP_SLEEP_CYC0_SPEC>

0x18 -

source

pub fn ulp_cp_sleep_cyc1(&self) -> &Reg<ULP_CP_SLEEP_CYC1_SPEC>

0x1c -

source

pub fn ulp_cp_sleep_cyc2(&self) -> &Reg<ULP_CP_SLEEP_CYC2_SPEC>

0x20 -

source

pub fn ulp_cp_sleep_cyc3(&self) -> &Reg<ULP_CP_SLEEP_CYC3_SPEC>

0x24 -

source

pub fn ulp_cp_sleep_cyc4(&self) -> &Reg<ULP_CP_SLEEP_CYC4_SPEC>

0x28 -

source

pub fn sar_start_force(&self) -> &Reg<SAR_START_FORCE_SPEC>

0x2c -

source

pub fn sar_mem_wr_ctrl(&self) -> &Reg<SAR_MEM_WR_CTRL_SPEC>

0x30 -

source

pub fn sar_atten1(&self) -> &Reg<SAR_ATTEN1_SPEC>

0x34 -

source

pub fn sar_atten2(&self) -> &Reg<SAR_ATTEN2_SPEC>

0x38 -

source

pub fn sar_slave_addr1(&self) -> &Reg<SAR_SLAVE_ADDR1_SPEC>

0x3c -

source

pub fn sar_slave_addr2(&self) -> &Reg<SAR_SLAVE_ADDR2_SPEC>

0x40 -

source

pub fn sar_slave_addr3(&self) -> &Reg<SAR_SLAVE_ADDR3_SPEC>

0x44 -

source

pub fn sar_slave_addr4(&self) -> &Reg<SAR_SLAVE_ADDR4_SPEC>

0x48 -

source

pub fn sar_tsens_ctrl(&self) -> &Reg<SAR_TSENS_CTRL_SPEC>

0x4c -

source

pub fn sar_i2c_ctrl(&self) -> &Reg<SAR_I2C_CTRL_SPEC>

0x50 -

source

pub fn sar_meas_start1(&self) -> &Reg<SAR_MEAS_START1_SPEC>

0x54 -

source

pub fn sar_touch_ctrl1(&self) -> &Reg<SAR_TOUCH_CTRL1_SPEC>

0x58 -

source

pub fn sar_touch_thres1(&self) -> &Reg<SAR_TOUCH_THRES1_SPEC>

0x5c -

source

pub fn sar_touch_thres2(&self) -> &Reg<SAR_TOUCH_THRES2_SPEC>

0x60 -

source

pub fn sar_touch_thres3(&self) -> &Reg<SAR_TOUCH_THRES3_SPEC>

0x64 -

source

pub fn sar_touch_thres4(&self) -> &Reg<SAR_TOUCH_THRES4_SPEC>

0x68 -

source

pub fn sar_touch_thres5(&self) -> &Reg<SAR_TOUCH_THRES5_SPEC>

0x6c -

source

pub fn sar_touch_out1(&self) -> &Reg<SAR_TOUCH_OUT1_SPEC>

0x70 -

source

pub fn sar_touch_out2(&self) -> &Reg<SAR_TOUCH_OUT2_SPEC>

0x74 -

source

pub fn sar_touch_out3(&self) -> &Reg<SAR_TOUCH_OUT3_SPEC>

0x78 -

source

pub fn sar_touch_out4(&self) -> &Reg<SAR_TOUCH_OUT4_SPEC>

0x7c -

source

pub fn sar_touch_out5(&self) -> &Reg<SAR_TOUCH_OUT5_SPEC>

0x80 -

source

pub fn sar_touch_ctrl2(&self) -> &Reg<SAR_TOUCH_CTRL2_SPEC>

0x84 -

source

pub fn sar_touch_enable(&self) -> &Reg<SAR_TOUCH_ENABLE_SPEC>

0x8c -

source

pub fn sar_read_ctrl2(&self) -> &Reg<SAR_READ_CTRL2_SPEC>

0x90 -

source

pub fn sar_meas_start2(&self) -> &Reg<SAR_MEAS_START2_SPEC>

0x94 -

source

pub fn sar_dac_ctrl1(&self) -> &Reg<SAR_DAC_CTRL1_SPEC>

0x98 -

source

pub fn sar_dac_ctrl2(&self) -> &Reg<SAR_DAC_CTRL2_SPEC>

0x9c -

source

pub fn sar_meas_ctrl2(&self) -> &Reg<SAR_MEAS_CTRL2_SPEC>

0xa0 -

source

pub fn sar_nouse(&self) -> &Reg<SAR_NOUSE_SPEC>

0xf8 -

source

pub fn sardate(&self) -> &Reg<SARDATE_SPEC>

0xfc -

Trait Implementations§

source§

impl AnalogExt for SENS

source§

impl Debug for SENS

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Deref for SENS

§

type Target = <SENS as Deref>::Target

The resulting type after dereferencing.
source§

fn deref(&self) -> &<SENS as Deref>::Target

Dereferences the value.
source§

impl DerefMut for SENS

source§

fn deref_mut(&mut self) -> &mut <SENS as Deref>::Target

Mutably dereferences the value.
source§

impl Peripheral for SENS

§

type P = SENS

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut self) -> <SENS as Peripheral>::P

Unsafely clone (duplicate) a peripheral singleton. Read more
source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>
where Self: 'a,

Convert a value into a PeripheralRef. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for SENS

§

impl Send for SENS

§

impl Sync for SENS

§

impl Unpin for SENS

§

impl UnwindSafe for SENS

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

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 T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.