Function imxrt_hal::dma::channel::set_source_hardware
source · pub unsafe fn set_source_hardware<E>(
chan: &mut Channel,
hardware_source: *const E
)where
E: Element,
Expand description
Set a hardware peripheral as the source for a DMA transfer
hardware_source
is expected to be a pointer to a peripheral register that
can provide DMA data. This function configures the DMA channel always read from
this register.
Safety
Caller must ensure that hardware_source
is valid for the lifetime of the transfer,
and valid for all subsequent transfers performed by this DMA channel with this address.