Anonymous
Not applicable
Mar 19, 2013
08:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 19, 2013
08:39 AM
I have an AUTO DMA with the USB OUT as the producer and a p-port as the consumer. I want to send the received byte count to my application. I have setup a callback that triiggers on a producer event. I thought that I may be able to use the function CyU3PDmaChannelGetBuffer but in the user guide it says that it should not be used for AUTO mode. So is there a way to get the received byte count from the buffer?
Thanks
JOn
1 Reply
Anonymous
Not applicable
Mar 20, 2013
04:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 20, 2013
04:31 AM
Hi Jon,
Refer to the CyU3PDmaChannelGetStatus() API in the FX3APIGuide.
This API returns the current status of the DMA channel, and also the producer and consumer Xfer counts. I believe this might be useful for you in this case.
Regards
Shashank