pub struct I2sTxDmaTransfer<'d, Dm, Buf>where
Dm: DriverMode,
Buf: DmaTxBuffer,{ /* private fields */ }Available on crate feature
unstable only.Expand description
A structure representing a DMA transfer.
This structure holds references to the driver instance, DMA buffers, and transfer status.
§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, Dm, Buf> I2sTxDmaTransfer<'d, Dm, Buf>where
Dm: DriverMode,
Buf: DmaTxBuffer,
impl<'d, Dm, Buf> I2sTxDmaTransfer<'d, Dm, Buf>where
Dm: DriverMode,
Buf: DmaTxBuffer,
Source§impl<'d, Buf> I2sTxDmaTransfer<'d, Async, Buf>where
Buf: DmaTxBuffer,
impl<'d, Buf> I2sTxDmaTransfer<'d, Async, Buf>where
Buf: DmaTxBuffer,
Sourcepub async fn wait_async(
self,
) -> (Result<(), DmaError>, I2sTx<'d, Async>, Buf::Final)
pub async fn wait_async( self, ) -> (Result<(), DmaError>, I2sTx<'d, Async>, Buf::Final)
Waits for the transfer to finish and returns the peripheral and buffer.
Sourcepub async fn wait_for_done_async(&mut self) -> Result<(), DmaError>
pub async fn wait_for_done_async(&mut self) -> Result<(), DmaError>
Waits for the transfer to finish.
Sourcepub async fn wait_for_available_async(&mut self) -> Result<(), DmaError>
pub async fn wait_for_available_async(&mut self) -> Result<(), DmaError>
Waits for a condition that might indicate more data is available.
Trait Implementations§
Source§impl<Dm: DriverMode, BUF: DmaTxBuffer> Deref for I2sTxDmaTransfer<'_, Dm, BUF>
impl<Dm: DriverMode, BUF: DmaTxBuffer> Deref for I2sTxDmaTransfer<'_, Dm, BUF>
Source§impl<Dm: DriverMode, BUF: DmaTxBuffer> DerefMut for I2sTxDmaTransfer<'_, Dm, BUF>
impl<Dm: DriverMode, BUF: DmaTxBuffer> DerefMut for I2sTxDmaTransfer<'_, Dm, BUF>
Source§impl<Dm: DriverMode, BUF: DmaTxBuffer> Drop for I2sTxDmaTransfer<'_, Dm, BUF>
impl<Dm: DriverMode, BUF: DmaTxBuffer> Drop for I2sTxDmaTransfer<'_, Dm, BUF>
Auto Trait Implementations§
impl<'d, Dm, Buf> !RefUnwindSafe for I2sTxDmaTransfer<'d, Dm, Buf>
impl<'d, Dm, Buf> !UnwindSafe for I2sTxDmaTransfer<'d, Dm, Buf>
impl<'d, Dm, Buf> Freeze for I2sTxDmaTransfer<'d, Dm, Buf>
impl<'d, Dm, Buf> Send for I2sTxDmaTransfer<'d, Dm, Buf>
impl<'d, Dm, Buf> Sync for I2sTxDmaTransfer<'d, Dm, Buf>
impl<'d, Dm, Buf> Unpin for I2sTxDmaTransfer<'d, Dm, Buf>
impl<'d, Dm, Buf> UnsafeUnpin for I2sTxDmaTransfer<'d, Dm, Buf>where
ManuallyDrop<I2sTx<'d, Dm>>: UnsafeUnpin,
ManuallyDrop<<Buf as DmaTxBuffer>::View>: UnsafeUnpin,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CryptoRng for Twhere
T: DerefMut,
<T as Deref>::Target: CryptoRng,
impl<R> CryptoRng for Rwhere
R: TryCryptoRng<Error = Infallible> + ?Sized,
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<P, T> Receiver for Pwhere
P: Deref<Target = T> + ?Sized,
T: ?Sized,
impl<P, T> Receiver for Pwhere
P: Deref<Target = T> + ?Sized,
T: ?Sized,
impl<R> RngCore for Rwhere
R: Rng,
impl<R> TryCryptoRng for Rwhere
R: CryptoRng + ?Sized,
impl<R> TryCryptoRng for Rwhere
R: DerefMut,
<R as Deref>::Target: TryCryptoRng,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
Source§impl<R> TryRng for Rwhere
R: DerefMut,
<R as Deref>::Target: TryRng,
impl<R> TryRng for Rwhere
R: DerefMut,
<R as Deref>::Target: TryRng,
Source§type Error = <<R as Deref>::Target as TryRng>::Error
type Error = <<R as Deref>::Target as TryRng>::Error
The type returned in the event of a RNG error. Read more
Source§fn try_next_u32(&mut self) -> Result<u32, <R as TryRng>::Error>
fn try_next_u32(&mut self) -> Result<u32, <R as TryRng>::Error>
Return the next random
u32.Source§fn try_next_u64(&mut self) -> Result<u64, <R as TryRng>::Error>
fn try_next_u64(&mut self) -> Result<u64, <R as TryRng>::Error>
Return the next random
u64.Source§fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), <R as TryRng>::Error>
fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), <R as TryRng>::Error>
Fill
dst entirely with random data.Source§impl<R> TryRngCore for Rwhere
R: RngCore + ?Sized,
impl<R> TryRngCore for Rwhere
R: RngCore + ?Sized,
Source§fn try_next_u32(&mut self) -> Result<u32, <R as TryRngCore>::Error>
fn try_next_u32(&mut self) -> Result<u32, <R as TryRngCore>::Error>
Return the next random
u32.Source§fn try_next_u64(&mut self) -> Result<u64, <R as TryRngCore>::Error>
fn try_next_u64(&mut self) -> Result<u64, <R as TryRngCore>::Error>
Return the next random
u64.Source§fn try_fill_bytes(
&mut self,
dst: &mut [u8],
) -> Result<(), <R as TryRngCore>::Error>
fn try_fill_bytes( &mut self, dst: &mut [u8], ) -> Result<(), <R as TryRngCore>::Error>
Fill
dest entirely with random data.Source§fn unwrap_err(self) -> UnwrapErr<Self>where
Self: Sized,
fn unwrap_err(self) -> UnwrapErr<Self>where
Self: Sized,
Wrap RNG with the
UnwrapErr wrapper.Source§fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>
fn unwrap_mut(&mut self) -> UnwrapMut<'_, Self>
Wrap RNG with the
UnwrapMut wrapper.