我想使用多个配置描述符。其中一个会有DirectSound接口(和界面不会从柏树驱动器接收数据),其他的就没有接口,而Cypress司机会提供DirectSound会使用定义的接口供应商数据。
我已经添加了额外的配置描述符(及相关的接口和端点描述符)来dscr.a51。我也改setupcommand(void),sc_get_descriptor / gd_configura
tion(andgd_other_speed_configuration)将返回正确的描述符。我也修改了ISR的特性和高速使他们正确处理开关配置类型来otherspeed_dscr config_dscr。
如果imanully输入得到DirectSound描述符的命令,我回到正确的描述符。然而,当我送命令设置thedirectsounddescriptor,什么也没有发生;我不看DirectSound设备没有数据流thefx2。
当我在thecyconsole或u***controlcenter,我看到两个配置,但他们都是“配置1”。我知道我的DirectSound配置描述符设置正确的回忆,得到广义工作正常,并显示配置2。
我是否需要连接的USB使用u***cs为了新的DirectSound描述符配置可看吗?为什么不能thecontrolcenter或控制台看到其他配置描述符?
以上来自于百度翻译
以下为原文
I would like to use multiple configuration descriptors. One of them would have a DirectSound interface (and that interface would not receive data from the Cypress driver), the other would not have that interface and instead the Cypress driver would provide the data that DirectSound would have using the vendor-defined interface.
I have added the extra configuration descriptor (and associated interface/endpoint descriptors) to dscr.a51. I also modified SetupCommand(void) so that SC_GET_DESCRIPTOR / GD_CONFIGURATION (and GD_OTHER_SPEED_CONFIGURATION) will return the correct descriptors. I also modified the ISR's Ures and Highspeed so that they correctly handle switching the configuration types from CONFIG_DSCR to OTHERSPEED_DSCR.
If I manully enter the commands for getting the DirectSound descriptor, I get back the correct descriptor. However, when I send the command for setting the DirectSound descriptor, nothing happens; I don't see a DirectSound device and no data flows to the FX2.
When I look in the CyConsole or the USB Control Center, I can see two configurations, but they're both "configuration 1". I know that my DirectSound config descriptor is set correctly - recall that get descriptor works fine, and shows configuration 2.
Do I need to disconnect and reconnect from the USB using USBCS in order for the new DirectSound configuration descriptor to be seen? Why can't the Control Center or Console see the other configuration descriptor?