1 Reply Latest reply on Jan 28, 2016 1:16 PM by madhul_36

    stream_in state



      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?

        • 1. Re: stream_in state



          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.