Trait esp32c2_hal::dma::DmaTransferRxTx
source · pub trait DmaTransferRxTx<BR, BT, T>: Drop {
// Required methods
fn wait(self) -> Result<(BR, BT, T), (DmaError, BR, BT, T)>;
fn is_done(&self) -> bool;
}
Expand description
Trait to be implemented for an in progress dma transfer.
Required Methods§
sourcefn wait(self) -> Result<(BR, BT, T), (DmaError, BR, BT, T)>
fn wait(self) -> Result<(BR, BT, T), (DmaError, BR, BT, T)>
Wait for the transfer to finish.