Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > using CyAPI

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



using CyAPI
Moderator:
RSKV

Post Reply
Follow this topic



using CyAPI

umodjm posted on 10 Jun 2011 8:52 AM PST
Senior Member
13 Forum Posts

I am evaluating the FX2LP for use in our future products. I have the EZ-USB CY3684/3674 Advanced Development board and I'm reading all the associated docs that came with it. Now that I'm ready to start looking at host code to talk to the USB device, I have been looking at CyAPI lib. The documentation for CyAPI says that it is a "high-level programming interface to the CyUsb.sys device driver. The library is only able to communicate with USB devices that are served by this driver." 

Elsewhere in the documentation, it says to redistribute Cypress drivers, it's recommended that it be renamed (let's say MyUSBDev.sys)..  so with it renamed, how can CyAPI still talk to it? I assume that embedded in CyAPI.lib binary is an explicit reference to "CyUsb.sys" in a CreateFile call or something..  So CyAPI.lib would only be useful in host apps that deal with the un-renamed CyUsb.sys?




Re: using CyAPI

aasi posted on 10 Jun 2011 09:10 AM PST
Cypress Employee
1090 Forum Posts

Nope. CyAPI uses DriverGUID to get handle and talk to CyUSB.sys. so even if CyUSB.sys is renamed CyAPI would still be able to talk to it.

Cheers,

Anand



Re: using CyAPI

umodjm posted on 10 Jun 2011 01:09 PM PST
Senior Member
13 Forum Posts

Ok, thank you! Next question: the DID is 8613 for the FX2LP.. and for the examples it is 1004. I can't find anything, anywhere, in the firmware nor on the host side that defines that. The examples often just refer to some variable's address (bulkloop/fw.c) that got filled in seemingly out of nowhere?  Where/What causes the device to become DID 1004 when I download bulkloop.hex ?

Thank you for your help! 



Re: using CyAPI

umodjm posted on 10 Jun 2011 01:24 PM PST
Senior Member
13 Forum Posts

doh.. nevermind. found it in the dscr.a51 files. My searches didn't find it because it's stored in little endian assembly.. 0410

 

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20