[−][src]Struct stm32l0xx_hal::aes::Transfer
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]
Target: Target<Channel>,
Channel: Channel,
Buffer: Deref + 'static,
Buffer::Target: AsSlice<Element = u8>,
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]
Channel: Channel,
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]
self
) -> Result<TransferResources<Target, Channel, Buffer>, (TransferResources<Target, Channel, Buffer>, 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<Target, Channel, Buffer, State> Unpin for Transfer<Target, Channel, Buffer, State> where
Buffer: Unpin,
Channel: Unpin,
State: Unpin,
Target: Unpin,
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]
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