- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have been working in an UVC project. I enabled the usb connection using the API, CyU3PConnectState(CyTrue, CyTrue); (which returns CY_U3P_SUCCESS). And in the immediate next line I call the function CyU3PUsbGetSpeed() to check whether a 3.0 connection is established. But CyU3PUsbGetSpeed() API returns CY_U3P_NOT_CONNECTED. If I call CyU3PUsbGetSpeed() after sometime it returns CY_U3P_SUPER_SPEED. My understanding is that either (1.) CyU3PConnectState API needs a particular amount of time to configure the connection or (2.) it takes sometime for the CyU3PUsbGetSpeed() to get updated. Please someone clarify my understanding and if possible please share the exact time delay that is required for the CyU3PUsbGetSpeed() to return the correct connection established.
Thanks and Regards,
Ashlin Surey. A
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ConnectState() API just enables the SuperSpeed terminations on the USB 3.0 lines. After this the USB enumeration sequence starts as soon as the USB host detects those terminations. You can use the UsbGetSpeed() API in the USB CONNECT event as by then the USB connection would have been established.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ConnectState() API just enables the SuperSpeed terminations on the USB 3.0 lines. After this the USB enumeration sequence starts as soon as the USB host detects those terminations. You can use the UsbGetSpeed() API in the USB CONNECT event as by then the USB connection would have been established.