Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Source code of CyAPI, CyUSB and CyUSB3

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



Source code of CyAPI, CyUSB and CyUSB3
Moderator:
RSKV

Post Reply
Follow this topic



Source code of CyAPI, CyUSB and CyUSB3

RSKV posted on 28 Jan 2013 5:00 AM PST
Cypress Employee
655 Forum Posts

All,

 

Source code of CyAPI, CyUSB and CyUSB3 are available on web.

Please download “Source code package for Cypress SuperSpeed USB Suite for Windows (CyAPI, CyUSB, CyUSB3) - See ReadMe.txt for details” from the webpage shown below:

http://www.cypress.com/?rID=57990

 

Thanks,

Sai Krishna.




Re: Source code of CyAPI, CyUSB and CyUSB3

DSanchen posted on 11 Feb 2013 02:09 AM PST

1 Forum Post

Hi there,

I think there is a problem in the way you want to do ansyc non-EP0 Xfers:

in BeginDataXfer() you use the fixed-statement for the lpInBuffer, lpOutBuffer and lpOvLap that you pass to DeviceIOControl. The documentation (msdn.microsoft.com/en-us/library/f58wzh21.aspx) states: "The fixed statement sets a pointer to a managed variable and "pins" that variable during the execution of the statement.". After the async call to DeviceIOControl, the pointers are unpinned, and by the time the transfer performes hardware access, the pointers may be something else....

I think you should consider redesigning your async data transfer...

 

Best regards,

Detlef






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.