Mac 中有类似 GetDeviceDescriptorPtr() 的方法吗?

发布于 2024-12-08 13:55:06 字数 169 浏览 4 评论 0原文

IOUSBDeviceInterface 内部有一个函数 GetConfigurationDescriptorPtr,用于获取配置描述符的指针。下面给出了参考链接。

是否有像 GetDeviceDecriptorPtr 这样的函数来获取指向设备描述符的指针?

提前致谢..

There is a function GetConfigurationDescriptorPtr, for getting pointer to configuration descriptor, inside IOUSBDeviceInterface. Link for reference is given below.

http://developer.apple.com/library/mac/#documentation/Darwin/Reference/IOKit/IOUSBLib_h/Classes/IOUSBDeviceInterface/index.html#//apple_ref/doc/com/intfm/IOUSBDeviceInterface/GetConfigurationDescriptorPtr

Is there any such function like GetDeviceDecriptorPtr for getting pointer to device descriptor?

Thanks in advance..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

喜你已久 2024-12-15 13:55:06

没有这样的函数,但是我们可以通过研究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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文