embassy-rp

Crates

0.4.0

Versions

rp2040

Flavors

Function read

Source
pub unsafe fn read<'a, C: Channel, W: Word>(
    ch: impl Peripheral<P = C> + 'a,
    from: *const W,
    to: *mut [W],
    dreq: TreqSel,
) -> Transfer<'a, C> 
Expand description

DMA read.

SAFETY: Slice must point to a valid location reachable by DMA.