Struct esp_idf_svc::hal::i2s::I2sRx
source · pub struct I2sRx {}
Expand description
Concrete implementation of I2sRxSupported
for use in clients.
Example usage:
use esp_idf_hal::i2s::{config::{StdConfig, DataBitWidth}, gpio::*};
let std_config = StdConfig::philips(48000, DataBitWidth::Bits16);
let peripherals = Peripherals::take().unwrap();
let bclk = peripherals.pins.gpio1;
let din = peripherals.pins.gpio4;
let mclk = AnyIOPin::none();
let ws = peripherals.pins.gpio2;
let i2s = I2sDriver::<I2sRx>::new_std_rx(peripherals.i2s0, &std_config, bclk, din, mclk, ws).unwrap();