pub struct Transfer<CH1, CH2, FROM, BIDI, TO>{ /* private fields */ }
Expand description

Instance of a bidirectional DMA transfer

Implementations§

source§

impl<CH1, CH2, FROM, BIDI, TO, WORD> Transfer<CH1, CH2, FROM, BIDI, TO>
where CH1: SingleChannel, CH2: SingleChannel, FROM: ReadTarget<ReceivedWord = WORD>, BIDI: ReadTarget<ReceivedWord = WORD> + WriteTarget<TransmittedWord = WORD>, TO: WriteTarget<TransmittedWord = WORD>,

source

pub fn check_irq0(&mut self) -> bool

Check if an interrupt is pending for either channel and clear the corresponding pending bit

source

pub fn check_irq1(&mut self) -> bool

Check if an interrupt is pending for either channel and clear the corresponding pending bit

source

pub fn is_done(&self) -> bool

Check if the transfer is completed

source

pub fn wait(self) -> ((CH1, CH2), FROM, BIDI, TO)

Block until transfer is complete

Auto Trait Implementations§

§

impl<CH1, CH2, FROM, BIDI, TO> RefUnwindSafe for Transfer<CH1, CH2, FROM, BIDI, TO>

§

impl<CH1, CH2, FROM, BIDI, TO> Send for Transfer<CH1, CH2, FROM, BIDI, TO>
where BIDI: Send, CH1: Send, CH2: Send, FROM: Send, TO: Send,

§

impl<CH1, CH2, FROM, BIDI, TO> Sync for Transfer<CH1, CH2, FROM, BIDI, TO>
where BIDI: Sync, CH1: Sync, CH2: Sync, FROM: Sync, TO: Sync,

§

impl<CH1, CH2, FROM, BIDI, TO> Unpin for Transfer<CH1, CH2, FROM, BIDI, TO>
where BIDI: Unpin, CH1: Unpin, CH2: Unpin, FROM: Unpin, TO: Unpin,

§

impl<CH1, CH2, FROM, BIDI, TO> UnwindSafe for Transfer<CH1, CH2, FROM, BIDI, TO>
where BIDI: UnwindSafe, CH1: UnwindSafe, CH2: UnwindSafe, FROM: UnwindSafe, TO: 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<Choices> CoproductSubsetter<CNil, HNil> for Choices

§

type Remainder = Choices

source§

fn subset( self ) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) 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, I> LiftInto<U, I> for T
where U: LiftFrom<T, I>,

source§

fn lift_into(self) -> U

Performs the indexed conversion.
source§

impl<Source> Sculptor<HNil, HNil> for Source

§

type Remainder = Source

source§

fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)

Consumes the current HList and returns an HList with the requested shape. Read more
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.