Trait esp32_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,{
    // Required method
    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

Required Methods§

source

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

Implementors§

source§

impl<'d, I, T, P, TX, RX, IP> I2s0New<'d, I, T, P, TX, RX, IP> for I2s<'d, I, T, P, TX, RX>where I: Instance<T> + I2s0Instance, T: RegisterAccess + Clone, P: I2sMclkPin, TX: Tx, RX: Rx, IP: I2sPeripheral + I2s0Peripheral,