1 Reply Latest reply on Mar 1, 2018 11:59 PM by madhul_36

    CyUsb Receive Bulk In Transfer Event



      It would be really nice if we can have an event driven receive event handler in CyUsb library..

      Like Device Attached and Removed, if we have like that, there may be no need to use thread.


      Just my suggestion.





        • 1. Re: CyUsb Receive Bulk In Transfer Event



          There are event handlers available to detected device attachment and removal. You can refer to the source code of the C# streamer in the FX3 SDK as a reference.


          Go to the file "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\application\c_sharp\streamer\form1.cs"


          There you can see the event handlers declared as:


          //Assign event handlers for device attachment and device removal.

                      usbDevices.DeviceAttached += new EventHandler(usbDevices_DeviceAttached);

                      usbDevices.DeviceRemoved += new EventHandler(usbDevices_DeviceRemoved);



          - Madhu Sudhan