Trait esp32_hal::i2s::I2s0New

source ·
pub trait I2s0New<'d, I, P, CH>
where I: Instance, P: I2sMclkPin, CH: ChannelTypes, <CH as ChannelTypes>::P: 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<'d, CH>, 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<'d, CH>, clocks: &Clocks<'_> ) -> Self

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'d, I, P, CH> I2s0New<'d, I, P, CH> for I2s<'d, I, P, CH>
where I: Instance + I2s0Instance, P: I2sMclkPin, CH: ChannelTypes, <CH as ChannelTypes>::P: I2sPeripheral + I2s0Peripheral,