Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > support of FunctionRemoteWake

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



support of FunctionRemoteWake
Moderator:
RSKV

Post Reply
Follow this topic



support of FunctionRemoteWake

RobK posted on 22 Jan 2013 5:44 AM PST
Top Contributor
56 Forum Posts

Hello,

does the FX3 support the FunctionRemoteWake-capability?

If I do a GetStatus on the first interface of a function (consisting of 3 interfaces) I get always 0x0000 for the 2 status-bytes. This would mean the device is not FunctionRemoteWake-capable (as bit D0 = 0) and I found no API where I could enable or disable this capability in the FX3-firmware?!

 

Regards,

Robert




Re: support of FunctionRemoteWake

RSKV posted on 24 Jan 2013 07:58 PM PST
Cypress Employee
655 Forum Posts

Yes. FX3 does support Function remote wake capability.

 

We have a pair of APIs that can help the device signal remote wake:

 

"CyU3PUsbSetLinkPowerState (CyU3PUsbLPM_U0)" should be called to initiate the LFPS signalling to get the USB link back to U0 from U3.

 

"CyU3PUsbSendDevNotification (1, 0, 0)" should be called to send a DEV_NOTIFICATION(FUNCTION_WAKE) TP to the host after the link is back in U0.

 

One constraint we have is that the driver will only send 0s in response to a GET_STATUS command addressed to the interface. This means that it is not possible for the application to indicate FUNCTION_WAKE support when fast enumeration is in use.

 

The work-around to this is to disable fast enumeration, and then implement only the GET_STATUS command in the Setup CB. The application can return CyFalse for all other setup commands, thus letting the driver handle them.

 

I am attaching a piece of code where this is done, and remote wakeup is performed based on GPIO interrupt.

Thanks,

sai krishna.



Re: support of FunctionRemoteWake

RSKV posted on 24 Jan 2013 08:00 PM PST
Cypress Employee
655 Forum Posts


Re: support of FunctionRemoteWake

RobK posted on 25 Jan 2013 12:07 AM PST
Top Contributor
56 Forum Posts

Thanks, that helps!






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.