Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read/write stride #24

Open
jsgf opened this issue Feb 14, 2022 · 1 comment
Open

Read/write stride #24

jsgf opened this issue Feb 14, 2022 · 1 comment

Comments

@jsgf
Copy link

jsgf commented Feb 14, 2022

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
Copy link
Author

jsgf commented Feb 14, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant