Mac 中有类似 GetDeviceDescriptorPtr() 的方法吗?
IOUSBDeviceInterface 内部有一个函数 GetConfigurationDescriptorPtr,用于获取配置描述符的指针。下面给出了参考链接。
是否有像 GetDeviceDecriptorPtr 这样的函数来获取指向设备描述符的指针?
提前致谢..
There is a function GetConfigurationDescriptorPtr, for getting pointer to configuration descriptor, inside IOUSBDeviceInterface. Link for reference is given below.
Is there any such function like GetDeviceDecriptorPtr for getting pointer to device descriptor?
Thanks in advance..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有这样的函数,但是我们可以通过研究USBProber的源码来创建这样的函数。
这里是下载IOUSBFamily源代码的链接,里面有USBProber。 http://opensource.apple.com/tarballs/IOUSBFamily/
There is no such function, but we can create such function when we study the source code of USBProber.
Here is link to download the source code of IOUSBFamily, with USBProber inside it. http://opensource.apple.com/tarballs/IOUSBFamily/