stream_in state

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

cross mob
Anonymous
Not applicable

Hello

   

I used cyusb3014+kintex 7 and released stream_in(fpga to PC).

   

I want turn on led when run stream (read data from cyusb3014 by streamer) and turn of when system in idle state.

   

I use slavefifosync project in Eclipse, How I can determine the transmission is in progress or not?

0 Likes
1 Reply
Anonymous
Not applicable

Hi,

   

You can change your DMA Channel from AUTO to AUTO_SIGNAL in the CyU3PDmaChannelCreate API. Now you will get DMA Callbacks whenever a new buffer arrives i.e when data streaming starts. Now you can turn on the LED. When there is no callbacks triggered for quite some time, you can assume that the transfer has stopped and Turn off the LED.

   

Please refer the example project USBBulkLoopAutoSignal on how to handle a auto signal channel.

   

Regards,

   

-Madhu

0 Likes