Trait esp32c3_hal::i2s::I2sWriteDma
source · pub trait I2sWriteDma<'d, T, P, CH, TXBUF>where
T: RegisterAccess,
CH: ChannelTypes,
P: I2sTxPins,{
// Required methods
fn write_dma(
self,
words: TXBUF
) -> Result<I2sWriteDmaTransfer<'d, T, P, CH, TXBUF>, Error>
where TXBUF: ReadBuffer<Word = u8>;
fn write_dma_circular(
self,
words: TXBUF
) -> Result<I2sWriteDmaTransfer<'d, T, P, CH, TXBUF>, Error>
where TXBUF: ReadBuffer<Word = u8>;
}
Expand description
Initiate a DMA tx transfer
Required Methods§
sourcefn write_dma(
self,
words: TXBUF
) -> Result<I2sWriteDmaTransfer<'d, T, P, CH, TXBUF>, Error>where
TXBUF: ReadBuffer<Word = u8>,
fn write_dma( self, words: TXBUF ) -> Result<I2sWriteDmaTransfer<'d, T, P, CH, TXBUF>, Error>where TXBUF: ReadBuffer<Word = u8>,
Write I2S. Returns I2sWriteDmaTransfer which represents the in-progress DMA transfer
sourcefn write_dma_circular(
self,
words: TXBUF
) -> Result<I2sWriteDmaTransfer<'d, T, P, CH, TXBUF>, Error>where
TXBUF: ReadBuffer<Word = u8>,
fn write_dma_circular( self, words: TXBUF ) -> Result<I2sWriteDmaTransfer<'d, T, P, CH, TXBUF>, Error>where TXBUF: ReadBuffer<Word = u8>,
Continuously write to I2S. Returns I2sWriteDmaTransfer which represents the in-progress DMA transfer