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> Freeze for RxDmaTransfer<'d, C, BUFFER, P, CP>
impl<'d, C, BUFFER, P, CP> RefUnwindSafe for RxDmaTransfer<'d, C, BUFFER, P, CP>where
BUFFER: RefUnwindSafe,
<C as ChannelTypes>::Rx<'d>: RefUnwindSafe,
P: RefUnwindSafe,
CP: 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