pub struct AesTransfer<'d, RX: DmaRxBuffer, TX: DmaTxBuffer> { /* private fields */ }
Available on crate feature
unstable
only.Expand description
Represents an ongoing (or potentially stopped) transfer with the Aes.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.
Implementations§
Source§impl<'d, RX: DmaRxBuffer, TX: DmaTxBuffer> AesTransfer<'d, RX, TX>
impl<'d, RX: DmaRxBuffer, TX: DmaTxBuffer> AesTransfer<'d, RX, TX>
Sourcepub fn is_done(&self) -> bool
pub fn is_done(&self) -> bool
Returns true when Self::wait will not block.
Sourcepub fn wait(self) -> (AesDma<'d>, RX, TX)
pub fn wait(self) -> (AesDma<'d>, RX, TX)
Waits for the transfer to finish and returns the peripheral and buffers.
Sourcepub fn rx_view_mut(&mut self) -> &mut RX::View
pub fn rx_view_mut(&mut self) -> &mut RX::View
Provides exclusive access to the DMA rx buffer view.
Sourcepub fn tx_view_mut(&mut self) -> &mut TX::View
pub fn tx_view_mut(&mut self) -> &mut TX::View
Provides exclusive access to the DMA tx buffer view.