pub struct I2S0 { /* private fields */ }

Implementations§

source§

impl I2S0

source

pub unsafe fn steal() -> I2S0

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 <I2S0 as Deref>::Target = {0x3f40f000 as *const <esp32s2::I2S0 as core::ops::Deref>::Target}

Pointer to the register block

source

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

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

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

0x08 - I2S configuration register

source

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

0x0c - Raw interrupt status

source

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

0x10 - Masked interrupt status

source

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

0x14 - Interrupt enable bits

source

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

0x18 - Interrupt clear bits

source

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

0x1c - I2S timing register

source

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

0x20 - I2S FIFO configuration register

source

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

0x24 - I2S DMA RX EOF data length

source

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

0x28 - Constant single channel data

source

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

0x2c - I2S channel configuration register

0x30 - I2S DMA TX configuration register

0x34 - I2S DMA RX configuration register

source

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

0x38 - Address of outlink descriptor that produces EOF

source

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

0x3c - Address of inlink descriptor that produces EOF

source

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

0x40 - Address of buffer relative to the outlink descriptor that produces EOF

0x48 - Address of current inlink descriptor

0x4c - Address of next inlink descriptor

0x50 - Address of next inlink data buffer

0x54 - Address of current outlink descriptor

0x58 - Address of next outlink descriptor

0x5c - Address of next outlink data buffer

source

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

0x60 - I2S DMA configuration register

source

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

0x64 - APB out FIFO mode register

source

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

0x68 - APB in FIFO mode register

source

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

0x6c - I2S DMA TX status

source

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

0x70 - I2S DMA RX status

source

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

0x74 - I2S Hung configuration register

source

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

0xa0 - I2S configuration register 1

source

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

0xa4 - I2S power-down configuration register

source

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

0xa8 - I2S configuration register 2

source

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

0xac - I2S module clock configuration register

source

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

0xb0 - I2S sample rate register

source

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

0xbc - I2S TX status register

source

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

0xfc - Version control register

Trait Implementations§

source§

impl Debug for I2S0

source§

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

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

impl Deref for I2S0

§

type Target = <I2S0 as Deref>::Target

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl DerefMut for I2S0

source§

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

Mutably dereferences the value.
source§

impl Peripheral for I2S0

§

type P = I2S0

Peripheral singleton type
source§

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

Auto Trait Implementations§

§

impl RefUnwindSafe for I2S0

§

impl Send for I2S0

§

impl Sync for I2S0

§

impl Unpin for I2S0

§

impl UnwindSafe for I2S0

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.