pub trait DmaTransfer<B, T>: Drop {
    // Required methods
    fn wait(self) -> Result<(B, T), (DmaError, B, T)>;
    fn is_done(&self) -> bool;
}
Expand description

Trait to be implemented for an in progress dma transfer.

Required Methods§

source

fn wait(self) -> Result<(B, T), (DmaError, B, T)>

Wait for the transfer to finish.

source

fn is_done(&self) -> bool

Check if the transfer is finished.

Implementors§

source§

impl<'d, T, C, BUFFER> DmaTransfer<BUFFER, SpiDma<'d, T, C>> for esp32c2_hal::spi::slave::dma::SpiDmaTransfer<'d, T, C, BUFFER>where T: InstanceDma<<C as ChannelTypes>::Tx<'d>, <C as ChannelTypes>::Rx<'d>>, C: ChannelTypes, <C as ChannelTypes>::P: SpiPeripheral,

source§

impl<'d, T, C, BUFFER, M> DmaTransfer<BUFFER, SpiDma<'d, T, C, M>> for esp32c2_hal::spi::master::dma::SpiDmaTransfer<'d, T, C, BUFFER, M>where T: InstanceDma<<C as ChannelTypes>::Tx<'d>, <C as ChannelTypes>::Rx<'d>>, C: ChannelTypes, <C as ChannelTypes>::P: SpiPeripheral, M: DuplexMode,