[−][src]Struct stm32l0xx_hal::aes::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]
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,
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
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