Struct I2S0

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

Implementations§

Source§

impl I2S0

Source

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

Pointer to the register block

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

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

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

0x0c - I2S interrupt raw register, valid in level.

Source

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

0x10 - I2S interrupt status register.

Source

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

0x14 - I2S interrupt enable register.

Source

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

0x18 - I2S interrupt clear register.

Source

pub fn rx_conf(&self) -> &Reg<RX_CONF_SPEC>

0x20 - I2S RX configure register

Source

pub fn tx_conf(&self) -> &Reg<TX_CONF_SPEC>

0x24 - I2S TX configure register

Source

pub fn rx_conf1(&self) -> &Reg<RX_CONF1_SPEC>

0x28 - I2S RX configure register 1

Source

pub fn tx_conf1(&self) -> &Reg<TX_CONF1_SPEC>

0x2c - I2S TX configure register 1

Source

pub fn rx_clkm_conf(&self) -> &Reg<RX_CLKM_CONF_SPEC>

0x30 - I2S RX clock configure register

Source

pub fn tx_clkm_conf(&self) -> &Reg<TX_CLKM_CONF_SPEC>

0x34 - I2S TX clock configure register

Source

pub fn rx_clkm_div_conf(&self) -> &Reg<RX_CLKM_DIV_CONF_SPEC>

0x38 - I2S RX module clock divider configure register

Source

pub fn tx_clkm_div_conf(&self) -> &Reg<TX_CLKM_DIV_CONF_SPEC>

0x3c - I2S TX module clock divider configure register

Source

pub fn tx_pcm2pdm_conf(&self) -> &Reg<TX_PCM2PDM_CONF_SPEC>

0x40 - I2S TX PCM2PDM configuration register

Source

pub fn tx_pcm2pdm_conf1(&self) -> &Reg<TX_PCM2PDM_CONF1_SPEC>

0x44 - I2S TX PCM2PDM configuration register

Source

pub fn rx_tdm_ctrl(&self) -> &Reg<RX_TDM_CTRL_SPEC>

0x50 - I2S TX TDM mode control register

Source

pub fn tx_tdm_ctrl(&self) -> &Reg<TX_TDM_CTRL_SPEC>

0x54 - I2S TX TDM mode control register

Source

pub fn rx_timing(&self) -> &Reg<RX_TIMING_SPEC>

0x58 - I2S RX timing control register

Source

pub fn tx_timing(&self) -> &Reg<TX_TIMING_SPEC>

0x5c - I2S TX timing control register

Source

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

0x60 - I2S HUNG configure register.

Source

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

0x64 - I2S RX data number control register.

Source

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

0x68 - I2S signal data register

Source

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

0x6c - I2S TX status register

Source

pub fn etm_conf(&self) -> &Reg<ETM_CONF_SPEC>

0x70 - I2S ETM configure register

Source

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

0x80 - 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

Source§

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

Source§

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 Freeze for I2S0

§

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