Module imxrt_hal::dma::peripheral

source ·
Expand description

DMA support for hardware peripherals.

If a driver is compatible with this API, it implements some or all of the traits in this module. Consult your HAL for more information.

Each future documents when it resolves. To wake the executor, you can route the DMA channel’s interrupt handler to on_interrupt(). Otherwise, you can poll the future in a loop.

Structs

  • A full-duplex DMA transfer from a single buffer
  • A DMA transfer that receives data from hardware
  • A DMA transfer that sends data to hardware

Traits

  • Indicates that a peripheral can read and write from a single buffer using two simultaneous DMA transfers
  • A peripheral that can be the destination for DMA data
  • A peripheral that can be the source of DMA data

Functions

  • Perform a full-duplex DMA transfer using two DMA channels that read and write from a single buffer.
  • Use a DMA channel to receive a buffer of elements from the source peripheral.
  • Use a DMA channel to send a buffer of data to the destination peripheral.