cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

flya_3459766
New Contributor

请问代码怎么设置让CY3065只支持High speed而不支持Full speed?

0 Likes
1 Solution
YiZ_31
Moderator
Moderator

这可能就涉及到你们主机端的问题了。我们在D+/D-有连接的情况下是默认High Speed的。

View solution in original post

0 Likes
3 Replies
flya_3459766
New Contributor

我通过如下调用后,使用CyU3PUsbGetSpeed获取到的依然是Full speed。

status = CyU3PUsbControlUsb2Support (CyTrue);

status = CyU3PUsbForceFullSpeed(CyFalse);

/* Connect the USB pins and enable super speed operation */

status = CyU3PConnectState(CyTrue, CyFalse);

但当我在CyU3PConnectState(CyTrue, CyFalse) 后面调用延时函数CyU3PThreadSleep(2000)延时一段时间再调用CyU3PUsbGetSpeed大概率获取到High speed,但仍有小概率获取到Full speed,请问这是什么原因,谢谢。

0 Likes
YiZ_31
Moderator
Moderator

这可能就涉及到你们主机端的问题了。我们在D+/D-有连接的情况下是默认High Speed的。

View solution in original post

0 Likes