Struct DmaTransfer

Source
pub struct DmaTransfer<'d, C, BUFFER, P, CP>
where C: ChannelTypes, <C as ChannelTypes>::P: ParlIoPeripheral, P: TxPins + ConfigurePins, CP: TxClkPin,
{ /* private fields */ }
Expand description

An in-progress DMA transfer.

Implementations§

Source§

impl<'d, C, BUFFER, P, CP> DmaTransfer<'d, C, BUFFER, P, CP>
where C: ChannelTypes, <C as ChannelTypes>::P: ParlIoPeripheral, P: TxPins + ConfigurePins, CP: TxClkPin,

Source

pub fn wait( self, ) -> Result<(BUFFER, ParlIoTx<'d, C, P, CP>), (DmaError, BUFFER, ParlIoTx<'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

Auto Trait Implementations§

§

impl<'d, C, BUFFER, P, CP> Freeze for DmaTransfer<'d, C, BUFFER, P, CP>
where BUFFER: Freeze, <C as ChannelTypes>::Tx<'d>: Freeze, P: Freeze, CP: Freeze,

§

impl<'d, C, BUFFER, P, CP> RefUnwindSafe for DmaTransfer<'d, C, BUFFER, P, CP>

§

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

§

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

§

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

§

impl<'d, C, BUFFER, P, CP> UnwindSafe for DmaTransfer<'d, C, BUFFER, P, CP>
where BUFFER: UnwindSafe, <C as ChannelTypes>::Tx<'d>: UnwindSafe, P: UnwindSafe, CP: 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>,

Source§

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>,

Source§

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.