Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > CyU3PUsbInitEventLog() and CyU3PUsbGetEventLogIndex()

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



CyU3PUsbInitEventLog() and CyU3PUsbGetEventLogIndex()
Moderator:
RSKV

Post Reply
Follow this topic



CyU3PUsbInitEventLog() and CyU3PUsbGetEventLogIndex()

dreitz posted on 17 Aug 2012 2:17 PM PST
Top Contributor
74 Forum Posts

The SDK 1.2 Release Notes mention CyU3PUsbInitEventLog() and CyU3PUsbGetEventLogIndex().  I cannot find them mentioned anywhere in the documentation or the code.




Re: CyU3PUsbInitEventLog() and CyU3PUsbGetEventLogIndex()

RSKV posted on 18 Aug 2012 10:22 PM PST
Cypress Employee
655 Forum Posts

You can find the description of these APIs in page number 411 and 412.

Usage is given in USBBulkSourceSink example project.

Regards,

sai krishna.



Re: CyU3PUsbInitEventLog() and CyU3PUsbGetEventLogIndex()

dreitz posted on 20 Aug 2012 08:37 AM PST
Top Contributor
74 Forum Posts

The FX3APIGuide.pdf (Revision 1.1) I have has Y_U3P_USB_HOST_EPS_ISO_ORUN_ERROR on page 411 and CY_U3P_USB_HOST_EPS_IOC_INT on page 412.

The USB Event Log stuff is not used in any of the examples supplied with SDK 1.2.



Re: CyU3PUsbInitEventLog() and CyU3PUsbGetEventLogIndex()

dreitz posted on 20 Aug 2012 09:54 AM PST
Top Contributor
74 Forum Posts

The Cypress Update Manager does not do a good job installing a new version of the SDK if a previous version is installed.  When I uninstalled the old SDK and reinstall the new one, the pdfs, etc. are updated.



Re: CyU3PUsbInitEventLog() and CyU3PUsbGetEventLogIndex()

Poul-Erik posted on 21 Aug 2012 09:19 PM PST
Senior Member
14 Forum Posts

I can see that the output is a circurlare buffe. but how to interpret the data in the buffer ?

Poul-Erik.

 



Re: CyU3PUsbInitEventLog() and CyU3PUsbGetEventLogIndex()

Poul-Erik posted on 22 Aug 2012 12:09 AM PST
Senior Member
14 Forum Posts

I found the answer in "cyu3usb.h". starting af "CYU3P_USB_LOG_VBUS_OFF".

Poul-Erik.



Re: CyU3PUsbInitEventLog() and CyU3PUsbGetEventLogIndex()

blake182 posted on 14 Oct 2012 08:12 PM PST
Member
4 Forum Posts

 Thanks for the info, Poul-Erik.

 

Do you know what the values for CYU3P_USB_LOG_LTSSM_CHG are? My understanding from the comment is that any value over 0x80 is an LTSSM state number. Are these state numbers summarized somewhere? I can see the state machine in the USB 3.0 spec, but there are no numbers for them. I presume Cypress has some mapping of these states to log numbers?

 

I see a lot of log events over 0x80 when running the USBBulkSourceSink example:

 

USB LOG: 6

USB LOG: 88

USB LOG: 12

USB LOG: 89

USB LOG: 90

USB LOG: 90

USB LOG: None

 

 

USB LOG: 90

USB LOG: None

 

 

USB LOG: None

USB LOG: 98

USB LOG: 90

USB LOG: None

USB LOG: None

USB LOG: 90

USB LOG: None

 

 

 

USB LOG: None

USB LOG: 98

USB LOG: 84

USB LOG: 81

USB LOG: 11

USB LOG: 88

USB LOG: 89

USB LOG: 8A

USB LOG: 90

USB LOG: 90

USB LOG: None

 






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.