OneShotTransfer

Struct OneShotTransfer 

Source
pub struct OneShotTransfer<S> { /* private fields */ }
Expand description

One-shot DMA transfer

Implementations§

Source§

impl<S> OneShotTransfer<S>

Source

pub fn new<'s>(stream: S2, source: S) -> Self

Construct a new DMA transfer state, returned by start_transfer which configures and enables the stream before.

Source

pub fn status(&mut self) -> u32

debug

Trait Implementations§

Source§

impl<T, S: AsRef<[T]>> DmaStreamTransfer<S, T, OneShotTransfer<S>> for S2

Source§

fn start_transfer<CHANNEL: DmaChannel>( self, source: S, target: &mut T, ) -> OneShotTransfer<S>

Configure, enable, and return a double-buffered DMA transfer.

Source§

impl<S> Transfer<S2> for OneShotTransfer<S>

Source§

fn is_complete(&self) -> bool

Transfer is complete?
Source§

fn has_error(&self) -> bool

Transfer has error?
Source§

fn reset(self) -> S2

Reset after a transfer Read more
Source§

fn wait(self) -> Result<STREAM, STREAM>

Wait until transfer is either complete or has error.

Auto Trait Implementations§

§

impl<S> Freeze for OneShotTransfer<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for OneShotTransfer<S>
where S: RefUnwindSafe,

§

impl<S> Send for OneShotTransfer<S>
where S: Send,

§

impl<S> Sync for OneShotTransfer<S>
where S: Sync,

§

impl<S> Unpin for OneShotTransfer<S>
where S: Unpin,

§

impl<S> UnwindSafe for OneShotTransfer<S>
where S: 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> Same for T

Source§

type Output = T

Should always be Self
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.