Struct DualI2sDmaTarget

Source
pub struct DualI2sDmaTarget<I, PART, MS, DIR, STD> { /* private fields */ }
Expand description
  • I: The DualI2sPeripheral controlled by the I2sCore.
  • PART: Main or Ext. The part of DualI2sPeripheral controlled by I2sCore.
  • MS: Master or Slave. The role of the I2sCore. Only a Main I2sCore can be Master.
  • DIR : Transmit or Receive. Communication direction.
  • STD: I2S standard, eg Philips

Trait Implementations§

Source§

impl<SPIext: DualInstance, MS, TR, STD> PeriAddress for DualI2sDmaTarget<DualI2s<SPIext>, Ext, MS, TR, STD>
where DualI2s<SPIext>: DualI2sPeripheral,

I2S DMA reads from and writes to the data register

Source§

type MemSize = u16

SPI_DR is only 16 bits. Multiple transfers are needed for a 24-bit or 32-bit sample, as explained in the reference manual.

Source§

fn address(&self) -> u32

Returns the address to be used by the DMA stream.
Source§

impl<SPIext: DualInstance, MS, TR, STD> PeriAddress for DualI2sDmaTarget<DualI2s<SPIext>, Main, MS, TR, STD>
where DualI2s<SPIext>: DualI2sPeripheral,

I2S DMA reads from and writes to the data register

Source§

type MemSize = u16

SPI_DR is only 16 bits. Multiple transfers are needed for a 24-bit or 32-bit sample, as explained in the reference manual.

Source§

fn address(&self) -> u32

Returns the address to be used by the DMA stream.
Source§

impl<SPIext, PART, MS, TR, STD, STREAM, const CHANNEL: u8, DIR> DMASet<STREAM, CHANNEL, DIR> for DualI2sDmaTarget<DualI2s<SPIext>, PART, MS, TR, STD>
where SPIext: DMASet<STREAM, CHANNEL, DIR> + DualInstance,

DMA is available for I2S based on the underlying implementations for SPI

Auto Trait Implementations§

§

impl<I, PART, MS, DIR, STD> Freeze for DualI2sDmaTarget<I, PART, MS, DIR, STD>

§

impl<I, PART, MS, DIR, STD> RefUnwindSafe for DualI2sDmaTarget<I, PART, MS, DIR, STD>

§

impl<I, PART, MS, DIR, STD> Send for DualI2sDmaTarget<I, PART, MS, DIR, STD>
where I: Send, PART: Send, MS: Send, DIR: Send, STD: Send,

§

impl<I, PART, MS, DIR, STD> Sync for DualI2sDmaTarget<I, PART, MS, DIR, STD>
where I: Sync, PART: Sync, MS: Sync, DIR: Sync, STD: Sync,

§

impl<I, PART, MS, DIR, STD> Unpin for DualI2sDmaTarget<I, PART, MS, DIR, STD>
where I: Unpin, PART: Unpin, MS: Unpin, DIR: Unpin, STD: Unpin,

§

impl<I, PART, MS, DIR, STD> UnwindSafe for DualI2sDmaTarget<I, PART, MS, DIR, STD>
where I: UnwindSafe, PART: UnwindSafe, MS: UnwindSafe, DIR: UnwindSafe, STD: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.