pub struct I2sParallel<'d, Dm>where
Dm: DriverMode,{ /* private fields */ }
Available on crate feature
unstable
only.Expand description
I2S Parallel Interface
Implementations§
Source§impl<'d> I2sParallel<'d, Blocking>
impl<'d> I2sParallel<'d, Blocking>
Sourcepub fn new<CH>(
i2s: impl Peripheral<P = impl Instance> + 'd,
channel: impl Peripheral<P = CH> + 'd,
frequency: Rate,
pins: impl TxPins<'d>,
clock_pin: impl Peripheral<P = impl PeripheralOutput> + 'd,
) -> Selfwhere
CH: DmaChannelFor<AnyI2s>,
pub fn new<CH>(
i2s: impl Peripheral<P = impl Instance> + 'd,
channel: impl Peripheral<P = CH> + 'd,
frequency: Rate,
pins: impl TxPins<'d>,
clock_pin: impl Peripheral<P = impl PeripheralOutput> + 'd,
) -> Selfwhere
CH: DmaChannelFor<AnyI2s>,
Create a new I2S Parallel Interface
Sourcepub fn into_async(self) -> I2sParallel<'d, Async>
pub fn into_async(self) -> I2sParallel<'d, Async>
Converts the I2S instance into async mode.
Source§impl<'d> I2sParallel<'d, Async>
impl<'d> I2sParallel<'d, Async>
Sourcepub fn into_blocking(self) -> I2sParallel<'d, Blocking>
pub fn into_blocking(self) -> I2sParallel<'d, Blocking>
Converts the I2S instance into async mode.
Source§impl<'d, Dm> I2sParallel<'d, Dm>where
Dm: DriverMode,
impl<'d, Dm> I2sParallel<'d, Dm>where
Dm: DriverMode,
Sourcepub fn send<BUF: DmaTxBuffer>(
self,
data: BUF,
) -> Result<I2sParallelTransfer<'d, BUF, Dm>, (DmaError, Self, BUF)>
pub fn send<BUF: DmaTxBuffer>( self, data: BUF, ) -> Result<I2sParallelTransfer<'d, BUF, Dm>, (DmaError, Self, BUF)>
Write data to the I2S peripheral