You are here

AUTO DMA getting the received byte count | Cypress Semiconductor

AUTO DMA getting the received byte count

Summary: 1 Reply, Latest post by PRAG on 20 Mar 2013 04:31 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
beandigital's picture
48 posts

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?





PRAG's picture
Cypress Employee
173 posts

 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.




Log in to post new comments.