完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想使用多个配置描述符。其中一个会有DirectSound接口(和界面不会从柏树驱动器接收数据),其他的就没有接口,而Cypress司机会提供DirectSound会使用定义的接口供应商数据。
我已经添加了额外的配置描述符(及相关的接口和端点描述符)来dscr.a51。我也改setupcommand(void),sc_get_descriptor / gd_configuration(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? |
|
相关推荐
3个回答
|
|
你好,
CY[压USB设备驱动程序,CysB.SIS,和我们的库目前不支持多种配置。它现在只支持一个配置。 当做, 加亚特里 以上来自于百度翻译 以下为原文 Hi, Cy[press U*** device driver, CyUSB.sys, and our libraries currently doesn't support multiple configurations. It supports only one configuration as of now. Regards, Gayathri |
|
|
|
你好,Gayathri,谢谢你提供的信息。快速谷歌表明WiUSB也有一个配置限制。
是否有可能通过做“重新计算”来“伪造”多个配置?例如,我的描述符将报告我只有一个配置,但是我的软件将知道有两个配置。因此,它将发出一个卖主命令,它将强制与UBCS=0x80断开连接;等待三秒;更改我为枚举报告的配置描述符;然后重新连接到USBC&= ~0x80。 我想这会实现我的目标,但是我很想听听你是否有其他的建议。 以上来自于百度翻译 以下为原文 Hi Gayathri, thanks for the information. A quick google suggests thatWinUSB also has a one-configuration limitation. Would it be possible to "fake" multiple configurations by doing what amounts to Re-Numeration? For example, my descriptors will report that I only have one configuration, but my software will know that I secretly have two configurations. So it will issue a vendor command which would force a disconnect with USBCS |= 0x80; wait three seconds; change which configuration descriptor I report for enumeration; and then reconnect with USBCS &= ~0x80. I think that will accomplish my goal, but I would be interested to hear if you have any other suggestions. |
|
|
|
嗨,安得烈,
当您说两种配置时,它们都实现2个单独的类,或者它们都是供应商专用类。CysUBSIS将只传递描述符而不考虑它包含的内容。归结到能够设置配置的问题(我记得Windows低级别驱动程序不允许我们这样做)。我查一下然后再给你答复。 当做, 阿南德 以上来自于百度翻译 以下为原文 Hi Andrew, When you say two configuration are they both implementing 2 separate classes or are they both vendor specific class. CyUSB.sys will just pass up the descriptor irrespective of what it contains. It comes down to the matter of being able to set configuration (I remember windows low level drivers not letting us do that). I'll check on that and get back to you. Regards, Anand |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2102 浏览 1 评论
1848 浏览 1 评论
3666 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1783 浏览 6 评论
1533 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
565浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
419浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
434浏览 2评论
380浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
912浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 15:32 , Processed in 0.924409 second(s), Total 48, Slave 42 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号