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,

source

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.

source

pub fn is_done(&self) -> bool

Check if the DMA transfer is complete

source

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>

§

impl<'d, C, BUFFER, P, CP> Send for RxDmaTransfer<'d, C, BUFFER, P, CP>
where BUFFER: Send, CP: Send, P: Send, <C as ChannelTypes>::Rx<'d>: Send,

§

impl<'d, C, BUFFER, P, CP> Sync for RxDmaTransfer<'d, C, BUFFER, P, CP>
where BUFFER: Sync, CP: Sync, P: Sync, <C as ChannelTypes>::Rx<'d>: Sync,

§

impl<'d, C, BUFFER, P, CP> Unpin for RxDmaTransfer<'d, C, BUFFER, P, CP>
where BUFFER: Unpin, CP: Unpin, P: Unpin, <C as ChannelTypes>::Rx<'d>: Unpin,

§

impl<'d, C, BUFFER, P, CP> UnwindSafe for RxDmaTransfer<'d, C, BUFFER, P, CP>
where BUFFER: UnwindSafe, CP: UnwindSafe, P: UnwindSafe, <C as ChannelTypes>::Rx<'d>: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.