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?
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.