Please use the CyAPI.lib from the FX3 SDK which contains the latest library files.
Once the FX3 SDK is installed you can find the library files in the path: <installation directory>\Cypress\EZ-USB FX3 SDK\1.3\library
The API document "CyAPI.pdf" is present in folder path: <installation directory>\Cypress\EZ-USB FX3 SDK\1.3\doc\SuiteUSB
Note: for the CyAPI.lib to be used, the device should be bound to the cypress cyusb3 driver.
Using the CyAPI library:
A device instance should be created using the CCyUSBDevice class.
example: CCyUSBDevice *FX2 = new CCyUSBDevice();
This will not return a handle to the device yet.
To get the handle to the device you can either use the Open() method with the device number as an argument. If only one cypress device is connected to the host then you can direct pass 0 as an argument.
Once the device is opened you can use the DeviceHandle() function to get an handle to the device opened.
HANDLE handle = FX2->DeviceHandle();
Please refer to the attached host appication, which detects number of devices bound to the cyusb3 driver and opens device 0, prints the VID, PID in decimal and the number of endpoints, of the device connected.
FX2LP_app.rar 239.5 K