Definition of KBA218460 symbols U3_EVENT & U3_TRUE

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ScGr_289066
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

Hello,

I am implementing USB-C using the PIUSB302 multiplexer as described in KBA218460.  Unfortunately there are references to two symbols: U3_EVENT and U3_TRUE which are not defined.  Can you provide definitions for these symbols?

Thanks,

Scott

0 Likes
1 Solution
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello Scott,

U3_TRUE and  U3_EVENT are variables to keep track of type-C enumeration mode

The initial values can be kept as

CyBool_t U3_EVENT = CyFalse;

CyBool_t U3_TRUE = CyTrue;

These variables can be updated in USBEventCB(). In case of CY_U3P_USB_EVENT_SS_COMP_ENTRY and CY_U3P_USB_EVENT_USB3_LNKFAIL events both these variables are updated to. 

  U3_EVENT = CyTrue;

  U3_TRUE = CyFalse;

Regards,

Rashi

Regards,
Rashi

View solution in original post

0 Likes
4 Replies
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello Scott,

U3_TRUE and  U3_EVENT are variables to keep track of type-C enumeration mode

The initial values can be kept as

CyBool_t U3_EVENT = CyFalse;

CyBool_t U3_TRUE = CyTrue;

These variables can be updated in USBEventCB(). In case of CY_U3P_USB_EVENT_SS_COMP_ENTRY and CY_U3P_USB_EVENT_USB3_LNKFAIL events both these variables are updated to. 

  U3_EVENT = CyTrue;

  U3_TRUE = CyFalse;

Regards,

Rashi

Regards,
Rashi
0 Likes

Hi Rashi,

With these symbols defined, I am running across an undefined function: CyU3PControlU2b2Support.  Do you have a definition for it?

Thanks,

Scott

0 Likes

Hello Scott,

CyU3PUsbControlUsb2Support is used Enable/Disable USB 2.0 device operation on FX3 device. You can refer to FX3 API Guide in the SDK.

You can find the definition in cyu3usb.c (source code in the SDK)

Path: C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\fx3_sdk_1_3_4_src\fx3_sdk_1_3_4_src\sdk\firmware\src\usb

Regards,

Rashi

Regards,
Rashi
0 Likes

Thanks, I just had a typo.

The issue is now resolved until I can try the code on our new hardware

(a few weeks out).

Thanks,

Scott

0 Likes