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(
i2s: impl Instance + 'd,
channel: impl DmaChannelFor<AnyI2s<'d>>,
frequency: Rate,
pins: impl TxPins<'d>,
clock_pin: impl PeripheralOutput<'d>,
) -> Self
pub fn new( i2s: impl Instance + 'd, channel: impl DmaChannelFor<AnyI2s<'d>>, frequency: Rate, pins: impl TxPins<'d>, clock_pin: impl PeripheralOutput<'d>, ) -> Self
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