AUTO DMA  getting the received byte count

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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

0 Likes
1 Reply
Anonymous
Not applicable

 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

0 Likes