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

    CyUsb Receive Bulk In Transfer Event

    mike.manzano.javier_3156496

      Hi,

       

      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.

       

      Regards,

       

      Mike

        • 1. Re: CyUsb Receive Bulk In Transfer Event
          Madhu Lakshmipathy

          Hi,

           

          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);

           

          Regards,

          - Madhu Sudhan