pub struct I2sTx<'d, Dm>where
Dm: DriverMode,{ /* private fields */ }
Available on crate feature
unstable
only.Expand description
I2S TX channel
Implementations§
Source§impl<'d> I2sTx<'d, Async>
impl<'d> I2sTx<'d, Async>
Sourcepub async fn write_dma_async(&mut self, words: &mut [u8]) -> Result<(), Error>
pub async fn write_dma_async(&mut self, words: &mut [u8]) -> Result<(), Error>
One-shot write I2S.
Sourcepub fn write_dma_circular_async<TXBUF: ReadBuffer>(
self,
words: TXBUF,
) -> Result<I2sWriteDmaTransferAsync<'d, TXBUF>, Error>
pub fn write_dma_circular_async<TXBUF: ReadBuffer>( self, words: TXBUF, ) -> Result<I2sWriteDmaTransferAsync<'d, TXBUF>, Error>
Continuously write to I2S. Returns I2sWriteDmaTransferAsync
Source§impl<Dm> I2sTx<'_, Dm>where
Dm: DriverMode,
impl<Dm> I2sTx<'_, Dm>where
Dm: DriverMode,
Sourcepub fn write_words(&mut self, words: &[impl AcceptedWord]) -> Result<(), Error>
pub fn write_words(&mut self, words: &[impl AcceptedWord]) -> Result<(), Error>
Writes a slice of data to the I2S peripheral.
Sourcepub fn write_dma<'t>(
&'t mut self,
words: &'t impl ReadBuffer,
) -> Result<DmaTransferTx<'t, Self>, Error>where
Self: DmaSupportTx,
pub fn write_dma<'t>(
&'t mut self,
words: &'t impl ReadBuffer,
) -> Result<DmaTransferTx<'t, Self>, Error>where
Self: DmaSupportTx,
Write I2S. Returns DmaTransferTx which represents the in-progress DMA transfer
Sourcepub fn write_dma_circular<'t>(
&'t mut self,
words: &'t impl ReadBuffer,
) -> Result<DmaTransferTxCircular<'t, Self>, Error>where
Self: DmaSupportTx,
pub fn write_dma_circular<'t>(
&'t mut self,
words: &'t impl ReadBuffer,
) -> Result<DmaTransferTxCircular<'t, Self>, Error>where
Self: DmaSupportTx,
Continuously write to I2S. Returns DmaTransferTxCircular which represents the in-progress DMA transfer