Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Any one use the cyioctl.h to program?

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



Any one use the cyioctl.h to program?
Moderator:
RSKV

Post Reply
Follow this topic



Any one use the cyioctl.h to program?

jogn_li posted on 16 Feb 2012 6:18 PM PST
Top Contributor
49 Forum Posts

My question is how to configure the struct in the cyioctl.h.

pTransfer->SetupPacket.bmRequest = bmReq;  ??
pTransfer->SetupPacket.bRequest = ReqCode;  ??
pTransfer->SetupPacket.wValue = Value;              ??
pTransfer->SetupPacket.wIndex = Index;               ??
pTransfer->SetupPacket.wLength = bufLen;         ??
pTransfer->SetupPacket.ulTimeOut = TimeOut / 1000;

there is any illustration about  how to configure it?




Re: Any one use the cyioctl.h to program?

aasi posted on 16 Feb 2012 08:06 PM PST
Cypress Employee
1073 Forum Posts

What request are you trying to send? Direction? length?

wIndex and wValue that you want to send to the device?

Most of our examples use the APIs but CyUSB.pdf should be detailed enough for you to get started. CyAPI.lib and CyUSB.dll are based on cyioctl.h.

Regards,

Anand



Re: Any one use the cyioctl.h to program?

jogn_li posted on 16 Feb 2012 08:27 PM PST
Top Contributor
49 Forum Posts

Did you think that cyapi.lib and cyusb.dll is complex?

the fx3 team can give us a example or give us the source code of USB Control Center?

or any thing that can explain eazily?



Re: Any one use the cyioctl.h to program?

aasi posted on 16 Feb 2012 09:53 PM PST
Cypress Employee
1073 Forum Posts

The source code of control center is available at

C:\Cypress\Cypress SuperSpeed USBSuite\application\c_sharp\controlcenter

There are a few other examples too. You can look at the cpp folder for CyAPI.lib based examples.

Cheers,

Anand



Re: Any one use the cyioctl.h to program?

jogn_li posted on 17 Feb 2012 11:58 PM PST
Top Contributor
49 Forum Posts

can you give me one program by C++?



Re: Any one use the cyioctl.h to program?

aasi posted on 17 Feb 2012 02:03 AM PST
Cypress Employee
1073 Forum Posts

You can find them in the cpp folder.






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.