Trait esp32c3_hal::i2s::I2sReadDma
source · pub trait I2sReadDma<'d, T, P, CH, RXBUF>where
T: RegisterAccess,
CH: ChannelTypes,
P: I2sRxPins,{
// Required methods
fn read_dma(
self,
words: RXBUF
) -> Result<I2sReadDmaTransfer<'d, T, P, CH, RXBUF>, Error>
where RXBUF: WriteBuffer<Word = u8>;
fn read_dma_circular(
self,
words: RXBUF
) -> Result<I2sReadDmaTransfer<'d, T, P, CH, RXBUF>, Error>
where RXBUF: WriteBuffer<Word = u8>;
}
Expand description
Initiate a DMA rx transfer
Required Methods§
sourcefn read_dma(
self,
words: RXBUF
) -> Result<I2sReadDmaTransfer<'d, T, P, CH, RXBUF>, Error>where
RXBUF: WriteBuffer<Word = u8>,
fn read_dma( self, words: RXBUF ) -> Result<I2sReadDmaTransfer<'d, T, P, CH, RXBUF>, Error>where RXBUF: WriteBuffer<Word = u8>,
Read I2S. Returns I2sReadDmaTransfer which represents the in-progress DMA transfer
sourcefn read_dma_circular(
self,
words: RXBUF
) -> Result<I2sReadDmaTransfer<'d, T, P, CH, RXBUF>, Error>where
RXBUF: WriteBuffer<Word = u8>,
fn read_dma_circular( self, words: RXBUF ) -> Result<I2sReadDmaTransfer<'d, T, P, CH, RXBUF>, Error>where RXBUF: WriteBuffer<Word = u8>,
Continuously read from I2S. Returns I2sReadDmaTransfer which represents the in-progress DMA transfer