Struct APB_SARADC

Source
pub struct APB_SARADC { /* private fields */ }

Implementations§

Source§

impl APB_SARADC

Source

pub const PTR: *const <APB_SARADC as Deref>::Target = {0x6000e000 as *const <esp32c6::APB_SARADC as core::ops::Deref>::Target}

Pointer to the register block

Source

pub unsafe fn steal() -> APB_SARADC

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 fn ptr() -> *const <APB_SARADC as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

pub fn ctrl(&self) -> &Reg<CTRL_SPEC>

0x00 - digital saradc configure register

Source

pub fn ctrl2(&self) -> &Reg<CTRL2_SPEC>

0x04 - digital saradc configure register

Source

pub fn filter_ctrl1(&self) -> &Reg<FILTER_CTRL1_SPEC>

0x08 - digital saradc configure register

Source

pub fn fsm_wait(&self) -> &Reg<FSM_WAIT_SPEC>

0x0c - digital saradc configure register

Source

pub fn sar1_status(&self) -> &Reg<SAR1_STATUS_SPEC>

0x10 - digital saradc configure register

Source

pub fn sar2_status(&self) -> &Reg<SAR2_STATUS_SPEC>

0x14 - digital saradc configure register

Source

pub fn sar_patt_tab1(&self) -> &Reg<SAR_PATT_TAB1_SPEC>

0x18 - digital saradc configure register

Source

pub fn sar_patt_tab2(&self) -> &Reg<SAR_PATT_TAB2_SPEC>

0x1c - digital saradc configure register

Source

pub fn onetime_sample(&self) -> &Reg<ONETIME_SAMPLE_SPEC>

0x20 - digital saradc configure register

Source

pub fn arb_ctrl(&self) -> &Reg<ARB_CTRL_SPEC>

0x24 - digital saradc configure register

Source

pub fn filter_ctrl0(&self) -> &Reg<FILTER_CTRL0_SPEC>

0x28 - digital saradc configure register

Source

pub fn sar1data_status(&self) -> &Reg<SAR1DATA_STATUS_SPEC>

0x2c - digital saradc configure register

Source

pub fn sar2data_status(&self) -> &Reg<SAR2DATA_STATUS_SPEC>

0x30 - digital saradc configure register

Source

pub fn thres0_ctrl(&self) -> &Reg<THRES0_CTRL_SPEC>

0x34 - digital saradc configure register

Source

pub fn thres1_ctrl(&self) -> &Reg<THRES1_CTRL_SPEC>

0x38 - digital saradc configure register

Source

pub fn thres_ctrl(&self) -> &Reg<THRES_CTRL_SPEC>

0x3c - digital saradc configure register

Source

pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>

0x40 - digital saradc int register

Source

pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>

0x44 - digital saradc int register

Source

pub fn int_st(&self) -> &Reg<INT_ST_SPEC>

0x48 - digital saradc int register

Source

pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>

0x4c - digital saradc int register

Source

pub fn dma_conf(&self) -> &Reg<DMA_CONF_SPEC>

0x50 - digital saradc configure register

Source

pub fn clkm_conf(&self) -> &Reg<CLKM_CONF_SPEC>

0x54 - digital saradc configure register

Source

pub fn apb_tsens_ctrl(&self) -> &Reg<APB_TSENS_CTRL_SPEC>

0x58 - digital tsens configure register

Source

pub fn tsens_ctrl2(&self) -> &Reg<TSENS_CTRL2_SPEC>

0x5c - digital tsens configure register

Source

pub fn cali(&self) -> &Reg<CALI_SPEC>

0x60 - digital saradc configure register

Source

pub fn apb_tsens_wake(&self) -> &Reg<APB_TSENS_WAKE_SPEC>

0x64 - digital tsens configure register

Source

pub fn apb_tsens_sample(&self) -> &Reg<APB_TSENS_SAMPLE_SPEC>

0x68 - digital tsens configure register

Source

pub fn ctrl_date(&self) -> &Reg<CTRL_DATE_SPEC>

0x3fc - version

Trait Implementations§

Source§

impl AnalogExt for APB_SARADC

Source§

impl Debug for APB_SARADC

Source§

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

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

impl Deref for APB_SARADC

Source§

type Target = <APB_SARADC as Deref>::Target

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for APB_SARADC

Source§

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

Mutably dereferences the value.
Source§

impl Peripheral for APB_SARADC

Source§

type P = APB_SARADC

Peripheral singleton type
Source§

unsafe fn clone_unchecked(&mut self) -> <APB_SARADC 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§

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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

Source§

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.