Struct esp_idf_svc::hal::i2s::I2sTx
source · pub struct I2sTx {}
Expand description
Concrete implementation of I2sTxSupported
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 dout = peripherals.pins.gpio6;
let mclk = AnyIOPin::none();
let ws = peripherals.pins.gpio2;
let i2s = I2sDriver::<I2sTx>::new_std_tx(peripherals.i2s0, &std_config, bclk, dout, mclk, ws).unwrap();