Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > bewilderments in using cyapi in Visual C++

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



bewilderments in using cyapi in Visual C++
Moderator:
RSKV

Post Reply
Follow this topic



bewilderments in using cyapi in Visual C++

才哥 posted on 13 Jun 2011 4:52 AM PST
Top Contributor
40 Forum Posts
cyapi functions' use


Re: bewilderments in using cyapi in Visual C++

aasi posted on 13 Jun 2011 05:20 AM PST
Cypress Employee
1090 Forum Posts

BulkInEndPt will select the Bulk IN endpoint in exposed by the device i.e. say the device exposes 2 IN and 2 OUT bulk endpoints. BulkINEndPt will select the 1st of the BULK IN endpoints.

BulkOutEndPt will select the 1st of the BULK OUT endpoints.

Use the CCyBulkEndPoint class and its initialization methods to get handle to the BULK endpoint you want to communicate with.

Regards,

Anand



Re: bewilderments in using cyapi in Visual C++

才哥 posted on 13 Jun 2011 06:38 AM PST
Top Contributor
40 Forum Posts
Dear Anand, appreciated your imediate reply.according to your reply,the first in/out endpoint is selected by default.so how to choose the desired endpoint,can you show me the funnctions.furthermore,it would be very kind of you to tell me the procedure(or code example is best) in VC++ to launch a bulk in transfer.thanks again for your prompt answer Regards, Ian Fuchy(in China)

Re: bewilderments in using cyapi in Visual C++

aasi posted on 13 Jun 2011 07:55 AM PST
Cypress Employee
1090 Forum Posts

Hi Ian,

CyAPI.pdf itself has such a example, page 9 under CCyBulkEndPoint section itself, the endpoints are being accessed using EndPoints[i] array.

Regards,

Anand






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