Struct esp32c6_hal::parl_io::RxDmaTransfer
source · pub struct RxDmaTransfer<'d, C, BUFFER, P, CP>where
C: ChannelTypes,
<C as ChannelTypes>::P: ParlIoPeripheral,
P: RxPins + ConfigurePins,
CP: RxClkPin,{ /* private fields */ }
Expand description
An in-progress DMA transfer.
Implementations§
source§impl<'d, C, BUFFER, P, CP> RxDmaTransfer<'d, C, BUFFER, P, CP>where
C: ChannelTypes,
<C as ChannelTypes>::P: ParlIoPeripheral,
P: RxPins + ConfigurePins,
CP: RxClkPin,
impl<'d, C, BUFFER, P, CP> RxDmaTransfer<'d, C, BUFFER, P, CP>where
C: ChannelTypes,
<C as ChannelTypes>::P: ParlIoPeripheral,
P: RxPins + ConfigurePins,
CP: RxClkPin,
sourcepub fn wait(
self
) -> Result<(BUFFER, ParlIoRx<'d, C, P, CP>), (DmaError, BUFFER, ParlIoRx<'d, C, P, CP>)>
pub fn wait( self ) -> Result<(BUFFER, ParlIoRx<'d, C, P, CP>), (DmaError, BUFFER, ParlIoRx<'d, C, P, CP>)>
Wait for the DMA transfer to complete and return the buffers and the SPI instance.
sourcepub fn is_eof_error(&self) -> bool
pub fn is_eof_error(&self) -> bool
Check if the DMA transfer is completed by buffer full or source EOF error
Auto Trait Implementations§
impl<'d, C, BUFFER, P, CP> RefUnwindSafe for RxDmaTransfer<'d, C, BUFFER, P, CP>where
BUFFER: RefUnwindSafe,
CP: RefUnwindSafe,
P: RefUnwindSafe,
<C as ChannelTypes>::Rx<'d>: RefUnwindSafe,
impl<'d, C, BUFFER, P, CP> Send for RxDmaTransfer<'d, C, BUFFER, P, CP>
impl<'d, C, BUFFER, P, CP> Sync for RxDmaTransfer<'d, C, BUFFER, P, CP>
impl<'d, C, BUFFER, P, CP> Unpin for RxDmaTransfer<'d, C, BUFFER, P, CP>
impl<'d, C, BUFFER, P, CP> UnwindSafe for RxDmaTransfer<'d, C, BUFFER, P, CP>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more