Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > How to Set/Clear a stall condition with the right parameter values in application on FX3

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



How to Set/Clear a stall condition with the right parameter values in application on FX3
Moderator:
RSKV

Post Reply
Follow this topic



How to Set/Clear a stall condition with the right parameter values in application on FX3

Lumpi6 posted on 08 Feb 2012 5:44 AM PST
Top Contributor
183 Forum Posts

What can I produce with the third parameter of the "CyU3PUsbStall (u8Ep, bStall, bToggle); " call?
The API description says that usually the bToggle has to be TRUE but what happens when I use FALSE? It also describes just the state of the bToggle in a Clear stall call.

How has the bToggle parameter to be when set? And how when clear? What effects can happens?

 

Best Regards, thanks

Lumpi




Re: How to Set/Clear a stall condition with the right parameter values in application on FX3

aasi posted on 09 Feb 2012 02:51 AM PST
Cypress Employee
1073 Forum Posts

When a clear feature request from host to clear the STALL condition of an endpoint the data toggle has to be set to DATA0. The toggle BOOL variable deals with whether you want this to be done or not.

Regards,

Anand



Re: How to Set/Clear a stall condition with the right parameter values in application on FX3

Lumpi6 posted on 09 Feb 2012 04:19 PM PST
Top Contributor
183 Forum Posts

 Hi Anand, 

thanks for yor answer but can you explain what "... the data toggle has to be set to DATA0." means? 

What is DATA0 and if I want it set to DATA0 then I have to set the Toggle parameter to CyTrue?

Thanks,

Lumpi



Re: How to Set/Clear a stall condition with the right parameter values in application on FX3

aasi posted on 14 Feb 2012 04:22 AM PST
Cypress Employee
1073 Forum Posts

DATA0, DATA1 etc are packet identifiers. Using this USB spec overcomes the scenario of corrupted handshake packets.

 

The topic is more complex. So i'm just explaining one part to give you a better idea. The data toggle PID toggles between each packet of that particular endpoint. if ACK is corrupted the toggle won't happen and will be used to understand that a ACK packet was lost. This is one of the main reason for this data toggle PID.

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.