[][src]Struct stm32l0xx_hal::aes::Rx

pub struct Rx(_);

Can be used to read data from the AES peripheral

You can access this struct via Stream.

Methods

impl Rx[src]

pub fn read(&mut self) -> Result<Block, Void>[src]

pub fn read_all<Buffer, Channel>(
    self,
    dma: &mut Handle,
    buffer: Pin<Buffer>,
    channel: Channel
) -> Transfer<Self, Channel, Buffer, Ready> where
    Self: Target<Channel>,
    Buffer: DerefMut + 'static,
    Buffer::Target: AsMutSlice<Element = u8>,
    Channel: Channel
[src]

Reads data from the AES peripheral into the provided buffer using DMA

Returns a DMA transfer that is ready to be started. It needs to be started for anything to happen.

Panics

Panics, if the buffer length is larger than u16::max_value().

The AES peripheral works with 128-bit blocks, which means the buffer length must be a multiple of 16. Panics, if this is not the case.

Panics, if the buffer is not aligned to a word boundary.

Auto Trait Implementations

impl Unpin for Rx

impl Send for Rx

impl Sync for Rx

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