embedded-dma icon indicating copy to clipboard operation
embedded-dma copied to clipboard

Read/write stride

Open jsgf opened this issue 3 years ago • 1 comments

The ReadBuffer/WriteBuffer types only have the base address and length, but no stride. This doesn't allow them to handle DMA engines where you can do scatter-gather operations. Or alternatively a zero stride for writing to a single address (such as a device FIFO).

For context, I'm primarily looking at the rp2040's DMA engines.

jsgf avatar Feb 14 '22 03:02 jsgf

Hm, the RP2040 doesn't really support arbitrary stride - just advancing by 1/2/4 bytes, or not at all. So really this can be modelled with an in_place flag or similar.

jsgf avatar Feb 14 '22 08:02 jsgf