[][src]Struct stm32l0xx_hal::aes::Transfer

pub struct Transfer<Target, Channel, Buffer, State> { /* fields omitted */ }

Wrapper around a dma::Transfer.

This struct is required, because under the hood, the AES peripheral only supports 32-bit word DMA transfers, while the public API works with byte slices.

Methods

impl<Target, Channel, Buffer> Transfer<Target, Channel, Buffer, Ready> where
    Target: Target<Channel>,
    Channel: Channel,
    Buffer: Deref + 'static,
    Buffer::Target: AsSlice<Element = u8>, 
[src]

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<Target, Channel, Buffer, Started>[src]

Start the DMA transfer

Consumes this instance of Transfer and returns a new one, with its state changes to indicate that the transfer has been started.

impl<Target, Channel, Buffer> Transfer<Target, Channel, Buffer, Started> where
    Channel: Channel
[src]

pub fn is_active(&self) -> bool[src]

Indicates whether the transfer is still ongoing

pub fn wait(
    self
) -> Result<TransferResources<Target, Channel, Buffer>, (TransferResources<Target, Channel, Buffer>, Error)>
[src]

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<Target, Channel, Buffer, State> Unpin for Transfer<Target, Channel, Buffer, State> where
    Buffer: Unpin,
    Channel: Unpin,
    State: Unpin,
    Target: Unpin

impl<Target, Channel, Buffer, State> !Send for Transfer<Target, Channel, Buffer, State>

impl<Target, Channel, Buffer, State> !Sync for Transfer<Target, Channel, Buffer, State>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self