pub struct I2sParallelTransfer<'d, BUF, Dm>where
BUF: DmaTxBuffer,
Dm: DriverMode,{ /* private fields */ }
Available on crate feature
unstable
only.Expand description
Represents an ongoing (or potentially finished) transfer using the i2s parallel interface
Implementations§
Source§impl<'d, BUF, Dm> I2sParallelTransfer<'d, BUF, Dm>where
BUF: DmaTxBuffer,
Dm: DriverMode,
impl<'d, BUF, Dm> I2sParallelTransfer<'d, BUF, Dm>where
BUF: DmaTxBuffer,
Dm: DriverMode,
Sourcepub fn is_done(&self) -> bool
pub fn is_done(&self) -> bool
Returns true when Self::wait will not block.
Sourcepub fn wait(self) -> (I2sParallel<'d, Dm>, BUF)
pub fn wait(self) -> (I2sParallel<'d, Dm>, BUF)
Wait for the transfer to finish
Source§impl<BUF> I2sParallelTransfer<'_, BUF, Async>where
BUF: DmaTxBuffer,
impl<BUF> I2sParallelTransfer<'_, BUF, Async>where
BUF: DmaTxBuffer,
Sourcepub async fn wait_for_done(&mut self) -> Result<(), DmaError>
pub async fn wait_for_done(&mut self) -> Result<(), DmaError>
Wait for the transfer to finish
Trait Implementations§
Source§impl<BUF, Dm> Deref for I2sParallelTransfer<'_, BUF, Dm>where
BUF: DmaTxBuffer,
Dm: DriverMode,
impl<BUF, Dm> Deref for I2sParallelTransfer<'_, BUF, Dm>where
BUF: DmaTxBuffer,
Dm: DriverMode,
Source§impl<BUF, Dm> DerefMut for I2sParallelTransfer<'_, BUF, Dm>where
BUF: DmaTxBuffer,
Dm: DriverMode,
impl<BUF, Dm> DerefMut for I2sParallelTransfer<'_, BUF, Dm>where
BUF: DmaTxBuffer,
Dm: DriverMode,
Source§impl<BUF, Dm> Drop for I2sParallelTransfer<'_, BUF, Dm>where
BUF: DmaTxBuffer,
Dm: DriverMode,
impl<BUF, Dm> Drop for I2sParallelTransfer<'_, BUF, Dm>where
BUF: DmaTxBuffer,
Dm: DriverMode,
Auto Trait Implementations§
impl<'d, BUF, Dm> Freeze for I2sParallelTransfer<'d, BUF, Dm>where
<BUF as DmaTxBuffer>::View: Freeze,
impl<'d, BUF, Dm> RefUnwindSafe for I2sParallelTransfer<'d, BUF, Dm>where
<BUF as DmaTxBuffer>::View: RefUnwindSafe,
Dm: RefUnwindSafe,
impl<'d, BUF, Dm> Send for I2sParallelTransfer<'d, BUF, Dm>where
<BUF as DmaTxBuffer>::View: Send,
Dm: Send,
impl<'d, BUF, Dm> Sync for I2sParallelTransfer<'d, BUF, Dm>where
<BUF as DmaTxBuffer>::View: Sync,
Dm: Sync,
impl<'d, BUF, Dm> Unpin for I2sParallelTransfer<'d, BUF, Dm>where
<BUF as DmaTxBuffer>::View: Unpin,
Dm: Unpin,
impl<'d, BUF, Dm> !UnwindSafe for I2sParallelTransfer<'d, BUF, Dm>
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, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§impl<T> Peripheral for Twhere
T: DerefMut,
<T as Deref>::Target: Peripheral,
impl<T> Peripheral for Twhere
T: DerefMut,
<T as Deref>::Target: Peripheral,
Source§type P = <<T as Deref>::Target as Peripheral>::P
type P = <<T as Deref>::Target as Peripheral>::P
Peripheral singleton type
Source§unsafe fn clone_unchecked(&self) -> <T as Peripheral>::P
unsafe fn clone_unchecked(&self) -> <T as Peripheral>::P
Unsafely clone (duplicate) a peripheral singleton. Read more
Source§fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where
Self: 'a,
fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>where
Self: 'a,
Convert a value into a
PeripheralRef
. Read more