Trait esp32c3_hal::i2s::I2s0New
source · pub trait I2s0New<'d, I, T, P, TX, RX, IP>where
I: Instance<T>,
T: RegisterAccess + Clone,
P: I2sMclkPin,
TX: Tx,
RX: Rx,
IP: I2sPeripheral + I2s0Peripheral,{
fn new(
i2s: impl Peripheral<P = I> + 'd,
pins: P,
standard: Standard,
data_format: DataFormat,
sample_rate: impl Into<Rate<u32, 1, 1>>,
channel: Channel<TX, RX, IP>,
peripheral_clock_control: &mut PeripheralClockControl,
clocks: &Clocks<'_>
) -> Self;
}
Expand description
Construct a new I2S peripheral driver instance for the first I2S peripheral