Struct esp32::SENS

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

SENS Peripheral

Implementations§

source§

impl SENS

source

pub const PTR: *const RegisterBlock = {0x3ff48800 as *const sens::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn sar_read_ctrl(&self) -> &SAR_READ_CTRL

0x00 -

source

pub fn sar_read_status1(&self) -> &SAR_READ_STATUS1

0x04 -

source

pub fn sar_meas_wait1(&self) -> &SAR_MEAS_WAIT1

0x08 -

source

pub fn sar_meas_wait2(&self) -> &SAR_MEAS_WAIT2

0x0c -

source

pub fn sar_meas_ctrl(&self) -> &SAR_MEAS_CTRL

0x10 -

source

pub fn sar_read_status2(&self) -> &SAR_READ_STATUS2

0x14 -

source

pub fn ulp_cp_sleep_cyc0(&self) -> &ULP_CP_SLEEP_CYC0

0x18 -

source

pub fn ulp_cp_sleep_cyc1(&self) -> &ULP_CP_SLEEP_CYC1

0x1c -

source

pub fn ulp_cp_sleep_cyc2(&self) -> &ULP_CP_SLEEP_CYC2

0x20 -

source

pub fn ulp_cp_sleep_cyc3(&self) -> &ULP_CP_SLEEP_CYC3

0x24 -

source

pub fn ulp_cp_sleep_cyc4(&self) -> &ULP_CP_SLEEP_CYC4

0x28 -

source

pub fn sar_start_force(&self) -> &SAR_START_FORCE

0x2c -

source

pub fn sar_mem_wr_ctrl(&self) -> &SAR_MEM_WR_CTRL

0x30 -

source

pub fn sar_atten1(&self) -> &SAR_ATTEN1

0x34 -

source

pub fn sar_atten2(&self) -> &SAR_ATTEN2

0x38 -

source

pub fn sar_slave_addr1(&self) -> &SAR_SLAVE_ADDR1

0x3c -

source

pub fn sar_slave_addr2(&self) -> &SAR_SLAVE_ADDR2

0x40 -

source

pub fn sar_slave_addr3(&self) -> &SAR_SLAVE_ADDR3

0x44 -

source

pub fn sar_slave_addr4(&self) -> &SAR_SLAVE_ADDR4

0x48 -

source

pub fn sar_tsens_ctrl(&self) -> &SAR_TSENS_CTRL

0x4c -

source

pub fn sar_i2c_ctrl(&self) -> &SAR_I2C_CTRL

0x50 -

source

pub fn sar_meas_start1(&self) -> &SAR_MEAS_START1

0x54 -

source

pub fn sar_touch_ctrl1(&self) -> &SAR_TOUCH_CTRL1

0x58 -

source

pub fn sar_touch_thres1(&self) -> &SAR_TOUCH_THRES1

0x5c -

source

pub fn sar_touch_thres2(&self) -> &SAR_TOUCH_THRES2

0x60 -

source

pub fn sar_touch_thres3(&self) -> &SAR_TOUCH_THRES3

0x64 -

source

pub fn sar_touch_thres4(&self) -> &SAR_TOUCH_THRES4

0x68 -

source

pub fn sar_touch_thres5(&self) -> &SAR_TOUCH_THRES5

0x6c -

source

pub fn sar_touch_out1(&self) -> &SAR_TOUCH_OUT1

0x70 -

source

pub fn sar_touch_out2(&self) -> &SAR_TOUCH_OUT2

0x74 -

source

pub fn sar_touch_out3(&self) -> &SAR_TOUCH_OUT3

0x78 -

source

pub fn sar_touch_out4(&self) -> &SAR_TOUCH_OUT4

0x7c -

source

pub fn sar_touch_out5(&self) -> &SAR_TOUCH_OUT5

0x80 -

source

pub fn sar_touch_ctrl2(&self) -> &SAR_TOUCH_CTRL2

0x84 -

source

pub fn sar_touch_enable(&self) -> &SAR_TOUCH_ENABLE

0x8c -

source

pub fn sar_read_ctrl2(&self) -> &SAR_READ_CTRL2

0x90 -

source

pub fn sar_meas_start2(&self) -> &SAR_MEAS_START2

0x94 -

source

pub fn sar_dac_ctrl1(&self) -> &SAR_DAC_CTRL1

0x98 -

source

pub fn sar_dac_ctrl2(&self) -> &SAR_DAC_CTRL2

0x9c -

source

pub fn sar_meas_ctrl2(&self) -> &SAR_MEAS_CTRL2

0xa0 -

source

pub fn sar_nouse(&self) -> &SAR_NOUSE

0xf8 -

source

pub fn sardate(&self) -> &SARDATE

0xfc -

Trait Implementations§

source§

impl Debug for SENS

source§

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

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

impl Deref for SENS

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for SENS

Auto Trait Implementations§

§

impl Freeze for SENS

§

impl RefUnwindSafe 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.