[−][src]Struct stm32l0xx_hal::dma::Transfer
Methods
impl<T, C, B> Transfer<T, C, B, Ready> where
T: Target<C>,
C: Channel,
[src]
T: Target<C>,
C: Channel,
pub fn enable_interrupts(&mut self, interrupts: Interrupts)
[src]
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.
pub fn start(self) -> Transfer<T, C, B, Started>
[src]
Start the DMA transfer
Consumes this instance of Transfer
and returns a new one, with its
state changed to indicate that the transfer has been started.
impl<T, C, B> Transfer<T, C, B, Started> where
C: Channel,
[src]
C: Channel,
pub fn is_active(&self) -> bool
[src]
Indicates whether the transfer is still ongoing
pub fn wait(
self
) -> Result<TransferResources<T, C, B>, (TransferResources<T, C, B>, Error)>
[src]
self
) -> Result<TransferResources<T, C, B>, (TransferResources<T, C, B>, Error)>
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> Unpin for Transfer<T, C, B, State> where
B: Unpin,
C: Unpin,
State: Unpin,
T: Unpin,
B: Unpin,
C: Unpin,
State: Unpin,
T: Unpin,
impl<T, C, B, State> Send for Transfer<T, C, B, State> where
B: Send,
C: Send,
State: Send,
T: Send,
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,
B: Sync,
C: Sync,
State: Sync,
T: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self