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

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

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

cross mob
flya_3459766
Level 1
Level 1
10 sign-ins 5 sign-ins First question asked

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

0 点赞
1 解答
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

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

在原帖中查看解决方案

0 点赞
3 回复数
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted
0 点赞
flya_3459766
Level 1
Level 1
10 sign-ins 5 sign-ins First question asked

我通过如下调用后,使用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 点赞
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

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

0 点赞