- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rashi,
With these symbols defined, I am running across an undefined function: CyU3PControlU2b2Support. Do you have a definition for it?
Thanks,
Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Rashi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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