pub mod master;
#[cfg(i2s_clock_configured_by_hp_sys_clkrst)]
mod hp_sys_clkrst;
#[cfg(any(i2s_supports_pdm_tx, i2s_supports_pdm_rx))]
pub mod pdm;
#[cfg(esp32)]
pub mod parallel;
crate::any_peripheral! {
pub peripheral AnyI2s<'d> {
#[cfg(soc_has_i2s0)]
I2s0(crate::peripherals::I2S0<'d>),
#[cfg(soc_has_i2s1)]
I2s1(crate::peripherals::I2S1<'d>),
#[cfg(soc_has_i2s2)]
I2s2(crate::peripherals::I2S2<'d>),
}
}
with_i2s_dma_engine! {
($engine:tt, $any_ch:ident) => {
use crate::dma::DmaEligiblePeripheral;
impl<'d> DmaEligiblePeripheral<crate::dma::$any_ch<'d>> for AnyI2s<'d> {
fn dma_peripheral(&self) -> crate::dma::DmaPeripheral {
any::delegate!(self, i2s => { i2s.dma_peripheral() })
}
}
};
}