什么是“245”?在 IOKit USB 库中?

发布于 2024-08-20 11:50:47 字数 189 浏览 6 评论 0原文

我开始在 OS X 上使用 IOKit,并且对 IOKit USB 库中数据类型上标记的“245”感到困惑,例如 IOUSBInterfaceInterface245。 245是什么意思?我只是好奇最后附加的这个数字应该表明什么。它看起来像是某个东西的版本号。

是否有一个我可以使用的通用版本,而不必使用特定版本?

I'm getting started with IOKit on OS X, and I've been puzzled by the '245' tagged onto data types in the IOKit USB library, such as IOUSBInterfaceInterface245. What does the 245 mean? I'm just curious what this number tacked onto the end is supposed to indicate. It seems like a version number of something.

Is there a generic version that I can use, rather than having to use a specific version?

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

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

发布评论

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

评论(2

七禾 2024-08-27 11:50:47

我相信该数字是指该结构兼容的 IOUSBFamily 版本。查看 IOKit/usb/IOUSBLib.h 了解更多详细信息。

I believe that number refers to the IOUSBFamily version the struct is compatible with. Take a look at IOKit/usb/IOUSBLib.h for more details.

情归归情 2024-08-27 11:50:47

我相信它是 iousbfamily 2.4.5 ( os x Tiger) 附带的 USB 接口

IOUSBInterfaceInterface 是第一个版本,每个版本都可用,但较新的版本(如 245)添加了额外的功能,数字添加到末尾以保留旧版本向后兼容

i believe it is the usb interface interface that shipped with iousbfamily 2.4.5 ( os x tiger)

IOUSBInterfaceInterface is the 1st version and is available on every version but the newer ones like 245 add extra functionality, the number is added to the end to keep the old version for backward compatibility

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