- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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