Struct stm32l0xx_hal::dma::Transfer
source · [−]pub struct Transfer<T, C, B, State> { /* private fields */ }
Implementations
sourceimpl<T, C, B> Transfer<T, C, B, Ready> where
T: Target<C>,
C: Channel,
impl<T, C, B> Transfer<T, C, B, Ready> where
T: Target<C>,
C: Channel,
sourcepub fn enable_interrupts(&mut self, interrupts: Interrupts)
pub fn enable_interrupts(&mut self, interrupts: Interrupts)
Enables the provided interrupts
This setting only affects this transfer. It doesn’t affect transfer on other channels, or subsequent transfers on the same channel.
sourceimpl<T, C, B> Transfer<T, C, B, Started> where
C: Channel,
impl<T, C, B> Transfer<T, C, B, Started> where
C: Channel,
sourcepub fn wait(self) -> TransferResourcesResult<T, C, B>
pub fn wait(self) -> TransferResourcesResult<T, C, B>
Waits for the transfer to finish and returns the owned resources
This function will busily wait until the transfer is finished. If you don’t want this, please call this function only once you know that the transfer has finished.
This function will return immediately, if Transfer::is_active
returns false
.
Auto Trait Implementations
impl<T, C, B, State> RefUnwindSafe for Transfer<T, C, B, State> where
B: RefUnwindSafe,
C: RefUnwindSafe,
State: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, C, B, State> Send for Transfer<T, C, B, State> where
B: Send,
C: Send,
State: Send,
T: Send,
impl<T, C, B, State> Sync for Transfer<T, C, B, State> where
B: Sync,
C: Sync,
State: Sync,
T: Sync,
impl<T, C, B, State> Unpin for Transfer<T, C, B, State> where
B: Unpin,
C: Unpin,
State: Unpin,
T: Unpin,
impl<T, C, B, State> UnwindSafe for Transfer<T, C, B, State> where
B: UnwindSafe,
C: UnwindSafe,
State: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more