Struct esp32_hal::peripherals::I2S1

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

Implementations§

source§

impl I2S1

source

pub unsafe fn steal() -> I2S1

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 <I2S1 as Deref>::Target = {0x3ff6d000 as *const <esp32::I2S1 as core::ops::Deref>::Target}

Pointer to the register block

source

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

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn conf(&self) -> &Reg<CONF_SPEC>

0x08 -

source

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

0x0c -

source

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

0x10 -

source

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

0x14 -

source

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

0x18 -

source

pub fn timing(&self) -> &Reg<TIMING_SPEC>

0x1c -

source

pub fn fifo_conf(&self) -> &Reg<FIFO_CONF_SPEC>

0x20 -

source

pub fn rxeof_num(&self) -> &Reg<RXEOF_NUM_SPEC>

0x24 -

source

pub fn conf_sigle_data(&self) -> &Reg<CONF_SIGLE_DATA_SPEC>

0x28 -

source

pub fn conf_chan(&self) -> &Reg<CONF_CHAN_SPEC>

0x2c -

0x30 -

0x34 -

source

pub fn out_eof_des_addr(&self) -> &Reg<OUT_EOF_DES_ADDR_SPEC>

0x38 -

source

pub fn in_eof_des_addr(&self) -> &Reg<IN_EOF_DES_ADDR_SPEC>

0x3c -

source

pub fn out_eof_bfr_des_addr(&self) -> &Reg<OUT_EOF_BFR_DES_ADDR_SPEC>

0x40 -

source

pub fn ahb_test(&self) -> &Reg<AHB_TEST_SPEC>

0x44 -

0x48 -

0x4c -

0x50 -

0x54 -

0x58 -

0x5c -

source

pub fn lc_conf(&self) -> &Reg<LC_CONF_SPEC>

0x60 -

source

pub fn outfifo_push(&self) -> &Reg<OUTFIFO_PUSH_SPEC>

0x64 -

source

pub fn infifo_pop(&self) -> &Reg<INFIFO_POP_SPEC>

0x68 -

source

pub fn lc_state0(&self) -> &Reg<LC_STATE0_SPEC>

0x6c -

source

pub fn lc_state1(&self) -> &Reg<LC_STATE1_SPEC>

0x70 -

source

pub fn lc_hung_conf(&self) -> &Reg<LC_HUNG_CONF_SPEC>

0x74 -

source

pub fn cvsd_conf0(&self) -> &Reg<CVSD_CONF0_SPEC>

0x80 -

source

pub fn cvsd_conf1(&self) -> &Reg<CVSD_CONF1_SPEC>

0x84 -

source

pub fn cvsd_conf2(&self) -> &Reg<CVSD_CONF2_SPEC>

0x88 -

source

pub fn plc_conf0(&self) -> &Reg<PLC_CONF0_SPEC>

0x8c -

source

pub fn plc_conf1(&self) -> &Reg<PLC_CONF1_SPEC>

0x90 -

source

pub fn plc_conf2(&self) -> &Reg<PLC_CONF2_SPEC>

0x94 -

source

pub fn esco_conf0(&self) -> &Reg<ESCO_CONF0_SPEC>

0x98 -

source

pub fn sco_conf0(&self) -> &Reg<SCO_CONF0_SPEC>

0x9c -

source

pub fn conf1(&self) -> &Reg<CONF1_SPEC>

0xa0 -

source

pub fn pd_conf(&self) -> &Reg<PD_CONF_SPEC>

0xa4 -

source

pub fn conf2(&self) -> &Reg<CONF2_SPEC>

0xa8 -

source

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

0xac -

source

pub fn sample_rate_conf(&self) -> &Reg<SAMPLE_RATE_CONF_SPEC>

0xb0 -

source

pub fn pdm_conf(&self) -> &Reg<PDM_CONF_SPEC>

0xb4 -

source

pub fn pdm_freq_conf(&self) -> &Reg<PDM_FREQ_CONF_SPEC>

0xb8 -

source

pub fn state(&self) -> &Reg<STATE_SPEC>

0xbc -

source

pub fn date(&self) -> &Reg<DATE_SPEC>

0xfc -

Trait Implementations§

source§

impl Debug for I2S1

source§

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

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

impl Deref for I2S1

§

type Target = <I2S1 as Deref>::Target

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl DerefMut for I2S1

source§

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

Mutably dereferences the value.
source§

impl Peripheral for I2S1

§

type P = I2S1

Peripheral singleton type
source§

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

impl RegisterAccess for I2S1

Auto Trait Implementations§

§

impl RefUnwindSafe for I2S1

§

impl Send for I2S1

§

impl Sync for I2S1

§

impl Unpin for I2S1

§

impl UnwindSafe for I2S1

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.