CyAPI linking

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
omco_594686
Level 3
Level 3
Welcome!

Hi guys,

I'm trying to start with a new C++ project for my application (with VS2019) and I've encountered linking issue.

First, I used the the API from "\EZ-USB FX3 SDK\1.3\library\cpp" and simply tried to open a new device with:

USBDevice = new CCyUSBDevice((HANDLE)USBDevice, CYUSBDRV_GUID, true);

It fails due to linking issues:

cyapi_link_01.jpg

Next, I tried and API from "Cypress Suite USB 3.4.7" and it compiles.

I continued with this API and face another issues... I can't see the right MaxPktSize which equals to 16384.

Is this API supports USB3?

My driver version is 1.2.3.23

driver_version.jpg

What is the latest API to use?

How can I fix the linking problem?

My project is attached.

Omri.

0 Likes
1 Solution
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello Omri,

Please include

1. setupapi.lib in the linker dependencies: Project Properties -> Linker -> Input -> Additional Dependencies.

2. Add the setupapi.h header file in the main cpp file.

pastedImage_3.png

pastedImage_4.png

Thanks,

Yatheesh

View solution in original post

0 Likes
1 Reply
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello Omri,

Please include

1. setupapi.lib in the linker dependencies: Project Properties -> Linker -> Input -> Additional Dependencies.

2. Add the setupapi.h header file in the main cpp file.

pastedImage_3.png

pastedImage_4.png

Thanks,

Yatheesh

0 Likes