pub struct APB_SARADC { /* private fields */ }

Implementations§

source§

impl APB_SARADC

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 PTR: *const <APB_SARADC as Deref>::Target = {0x60040000 as *const <esp32s3::APB_SARADC as core::ops::Deref>::Target}

Pointer to the register block

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 - configure apb saradc controller

source

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

0x04 - configure apb saradc controller

source

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

0x08 - configure saradc filter

source

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

0x0c - configure apb saradc fsm

source

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

0x10 - saradc1 status for debug

source

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

0x14 - saradc2 status for debug

source

pub fn sar1_patt_tab1(&self) -> &Reg<SAR1_PATT_TAB1_SPEC>

0x18 - configure apb saradc pattern table

source

pub fn sar1_patt_tab2(&self) -> &Reg<SAR1_PATT_TAB2_SPEC>

0x1c - configure apb saradc pattern table

source

pub fn sar1_patt_tab3(&self) -> &Reg<SAR1_PATT_TAB3_SPEC>

0x20 - configure apb saradc pattern table

source

pub fn sar1_patt_tab4(&self) -> &Reg<SAR1_PATT_TAB4_SPEC>

0x24 - configure apb saradc pattern table

source

pub fn sar2_patt_tab1(&self) -> &Reg<SAR2_PATT_TAB1_SPEC>

0x28 - configure apb saradc pattern table

source

pub fn sar2_patt_tab2(&self) -> &Reg<SAR2_PATT_TAB2_SPEC>

0x2c - configure apb saradc pattern table

source

pub fn sar2_patt_tab3(&self) -> &Reg<SAR2_PATT_TAB3_SPEC>

0x30 - configure apb saradc pattern table

source

pub fn sar2_patt_tab4(&self) -> &Reg<SAR2_PATT_TAB4_SPEC>

0x34 - configure apb saradc pattern table

source

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

0x38 - configure apb saradc arbit

source

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

0x3c - configure apb saradc arbit

source

pub fn apb_saradc1_data_status(&self) -> &Reg<APB_SARADC1_DATA_STATUS_SPEC>

0x40 - get apb saradc sample data

source

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

0x44 - configure apb saradc thres monitor

source

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

0x48 - configure apb saradc thres monitor

source

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

0x58 - configure thres monitor enable

source

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

0x5c - enable interrupt

source

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

0x60 - raw of interrupt

source

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

0x64 - state of interrupt

source

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

0x68 - clear interrupt

source

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

0x6c - configure apb saradc dma

source

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

0x70 - configure apb saradc clock

source

pub fn apb_saradc2_data_status(&self) -> &Reg<APB_SARADC2_DATA_STATUS_SPEC>

0x78 - get apb saradc2 sample data

source

pub fn apb_ctrl_date(&self) -> &Reg<APB_CTRL_DATE_SPEC>

0x3fc - version

Trait Implementations§

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

§

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

§

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