Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

CYAPI - Detect if some other application is using the USB device

Anonymous
Not applicable

CYAPI - Detect if some other application is using the USB device

Question: How do I detect using the CYAPI library, if some other application is already using my USB device?

 

Answer:

The IsOpen() method can be used to check the same. This method is a member of the CCyUSBDevice class. The IsOpen( ) method returns true if CCyUSBDevice object already has a valid handle to a device attached to the CyUSB driver.

For example: 

 

if(USBDevice -> IsOpen())
{
// The device is open and is being used by another application
// This condition is also true if the current application has opened the device and has a handle
}

0 Likes
Version history
Revision #:
1 of 1
Last update:
‎Apr 01, 2009 12:00 AM
Updated by:
Anonymous
 
Contributors