cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

Anonymous
Not applicable

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

0 Likes
1 Solution
Anonymous
Not applicable

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

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable

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

View solution in original post

0 Likes