02-04-2019 01:55 AM - edited 02-04-2019 01:56 AM
Hi. So my understanding is that the DMA feature on the RoboRIO that captures the current entire state of inputs upon an interrupt. I'm programming in C++. I'm looking at the tDMAManager class, but I can't find any documentation on how to decode the buffer after calling read(). Any pointers to documentation would be appreciated. Thank you.
Solved! Go to Solution.
02-05-2019 06:10 PM
Team 971 implemented a DMA class for some of their specific needs. You can find at least one version of it here: http://frc971.org/content/2017-software
In the archive, look in \frc971\wpilib\dma.cc for an example of how to use the tDMAManager class and the format to expect in the buffer. The format depends on which channels in the stream are enabled.
Cheers,
-Joe