USB设备类型代码、详细说明、查询方式
以下是相关类型的详细说明:
地址:https://www.usb.org/documents
搜索device class
以下是USB所有支持的设备类型代码
地址:http://www.usb.org/developers/defined_class
USB Class Codes
November 17, 2009
USB defines class code information that is used to identify a device’s functionality and to nominally load a device driver based on that functionality. The information is contained in three bytes with the names Base Class, SubClass, and Protocol. (Note that ‘Base Class’ is used in this description to identify the first byte of the Class Code triple. That terminology is not used in the USB Specification). There are two places on a device where class code information can be placed.One place is in the Device Descriptor, and the other is in Interface Descriptors. Some defined class codes are allowed to be used only in a Device Descriptor, others can be used in both Device and Interface Descriptors, and some can only be used in Interface Descriptors. The table below shows the currently defined set of Base Class values, what the generic usage is, and where that Base Class can be used (either Device or Interface Descriptors or both).
| Base Class | Descriptor Usage | Description |
|---|---|---|
| 00h | Device | Use class information in the Interface Descriptors |
| 01h | Interface | Audio |
| 02h | Both | Communications and CDC Control |
| 03h | Interface | HID (Human Interface Device) |
| 05h | Interface | Physical |
| 06h | Interface | Image |
| 07h | Interface | Printer |
| 08h | Interface | Mass Storage |
| 09h | Device | Hub |
| 0Ah | Interface | CDC-Data |
| 0Bh | Interface | Smart Card |
| 0Dh | Interface | Content Security |
| 0Eh | Interface | Video |
| 0Fh | Interface | Personal Healthcare |
| DCh | Both | Diagnostic Device |
| E0h | Interface | Wireless Controller |
| EFh | Both | Miscellaneous |
| FEh | Interface | Application Specific |
| FFh | Both | Vendor Specific |
Base Class 00h (Device)
This base class is defined to be used in Device Descriptors to indicate that class information should be determined from the Interface Descriptors in the device. There is one class code definition in this base class. All other values are reserved.
This value is also used in Interface Descriptors to indicate a null class code triple.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 00h | 00h | 00h | Use class code info from Interface Descriptors |
Base Class 01h (Audio)
This base class is defined for Audio capable devices that conform to the Audio Device Class Specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined spec are reserved. These class codes may only be used in Interface Descriptors.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 01h | xxh | xxh | Audio device |
Base Class 02h (Communications and CDC Control)
This base class is defined for devices that conform to the Communications Device Class Specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined spec are reserved. Note that the Communication Device Class spec requires some class code values (triples) to be used in Device Descriptors and some to be used in Interface Descriptors.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 03h | xxh | xxh | HID device class |
Base Class 03h (HID – Human Interface Device)
This base class is defined for devices that conform to the HID Device Class Specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined spec are reserved. These class codes can only be used in Interface Descriptors.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 03h | xxh | xxh | HID device class |
Base Class 05h (Physical)
This base class is defined for devices that conform to the Physical Device Class Specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined spec are reserved. These class codes can only be used in Interface Descriptors
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 05h | xxh | xxh | Physical device class |
Base Class 06h (Still Imaging)
This base class is defined for devices that conform to the Imaging Device Class Specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined spec are reserved.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 06h | 01h | 01h | Still Imaging device |
Base Class 07h (Printer)
This base class is defined for devices that conform to the Printer Device Class Specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined spec are reserved. These class codes can only be used in Interface Descriptors.
| Base Class | ubClass | Protocol | Meaning |
|---|---|---|---|
| 07h | xxh | xxh | Printer device |
Base Class 08h (Mass Storage)
This base class is defined for devices that conform to the Mass Storage Device Class Specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined spec are reserved. These class codes can only be used in Interface Descriptors.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 08h | xxh | xxh | Mass Storage device |
Base Class 09h (Hub)
This base class is defined for devices that are USB hubs and conform to the definition in the USB specification. That specification defines the complete triples as shown below. All other values are reserved. These class codes can only be used in Device Descriptors
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 09h | 00h | 00h | Full speed Hub |
| 01h | Hi-speed hub with single TT | ||
| 02h | Hi-speed hub with multiple TTs |
Base Class 0Ah (CDC-Data)
This base class is defined for devices that conform to the Communications Device Class Specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values.Values outside of that defined spec are reserved. These class codes can only be used in Interface Descriptors.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 0Ah | xxh | xxh | CDC data device |
Base Class 0Bh (Smart Card)
This base class is defined for devices that conform to the Smart Card Device Class Specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values.Values outside of that defined spec are reserved. These class codes can only be used in Interface Descriptors.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 0Bh | xxh | xxh | Smart Card device |
Base Class 0Dh (Content Security)
This base class is defined for devices that conform to the Content Security Device Class Specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined spec are reserved. These class codes can only be used in Interface Descriptors.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 0Dh | 00h | 00h | Content Security device |
Base Class 0Eh (Video)
This base class is defined for devices that conform to the Video Device Class Specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined spec are reserved. These class codes can only be used in Interface Descriptors.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 0Eh | xxh | xxh | Video device |
Base Class 0Fh (Personal Healthcare)
This base class is defined for devices that conform to the Personal Healthcare Device Class Specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined spec are reserved. These class codes should only be used in Interface Descriptors.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| 0Fh | xxh | xxh | Personal Healthcare device |
Base Class DCh (Diagnostic Device)
This base class is defined for devices that diagnostic devices. There is currently only one value defined. All other values are reserved. This class code can be used in Device or Interface Descriptors.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| DCh | 01h | 01h | USB2 Compliance Device. Definition for this device can be found at http://www.intel.com/technology/usb/spec.htm |
Base Class E0h (Wireless Controller)
This base class is defined for devices that are Wireless controllers. Values not shown in the table below are reserved. These class codes are to be used in Interface Descriptors, with the exception of the Bluetooth class code which can also be used in a Device Descriptor.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| E0h | 01h | 01h | Bluetooth Programming Interface. Get specific information from www.bluetooth.com. |
| 02h | UWB Radio Control Interface. Definition for this is found in the Wireless USB Specification in Chapter 8. | ||
| 03h | Remote NDIS. Information can be found at: http://www.microsoft.com/windowsmobile/mobileoperators/default.mspx | ||
| 04h | Bluetooth AMP Controller. Get specific information from www.bluetooth.com. | ||
| 2h | 01h | Host Wire Adapter Control/Data interface. Definition can be found in the Wireless USB Specification in Chapter 8. | |
| 02h | Device Wire Adapter Control/Data interface. Definition can be found in the Wireless USB Specification in Chapter 8. | ||
| 03h | Device Wire Adapter Isochronous interface. Definition can be found in the Wireless USB Specification in Chapter 8. |
Base Class EFh (Miscellaneous)
This base class is defined for miscellaneous device definitions. Values not shown in the table below are reserved. The use of these class codes (Device or Interface descriptor) are specifically annotated in each entry below.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| EFh | 01h | 01h | Active Sync device. This class code can be used in either Device or Interface Descriptors. Contact Microsoft for more information on this class. |
| 02h | Palm Sync. This class code can be used in either Device or Interface Descriptors. | ||
| 02h | 01h | Interface Association Descriptor. The usage of this class code triple is defined in the Interface Association Descriptor ECN that is provided on www.usb.org. This class code may only be used in Device Descriptors. | |
| 02h | Wire Adapter Multifunction Peripheral programming interface. Definition can be found in the Wireless USB Specification in Chapter 8. This class code may only be used in Device Descriptors | ||
| 03h | 01h | Cable Based Association Framework. This is defined in the Association Model addendum to the Wireless USB specification. This class code may only be used in Interface Descriptors. |
Base Class FEh (Application Specific)
This base class is defined for devices that conform to several class specifications found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined spec are reserved. These class codes can only be used in Interface Descriptors.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| FEh | 01h | 01h | Device Firmware Upgrade. Device class definition provided on www.usb.org. |
| 02h | 00h | IRDA Bridge device. Device class definition provided on www.usb.org. | |
| 03h | 00h | USB Test and Measurement Device. Definition provided in the USB Test and Measurement Class spec found on www.usb.org. | |
| 01h | USB Test and Measurement Device conforming to the USBTMC USB488 Subclass Specification found on www.usb.o |
Base Class FFh (Vendor Specific)
This base class is defined for vendors to use as they please. These class codes can be used in both Device and Interface Descriptors.
| Base Class | SubClass | Protocol | Meaning |
|---|---|---|---|
| FFh | xxh | xxh | Vendor specific |
以下是相关类型的详细说明:
地址:http://www.usb.org/developers/devclass_docs
Approved Class Specification Documents
If you have questions regarding any of these documents please contact the DWG chair (dwg-wg-chair@usb.org) and your questions will be channeled to the appropriate group.
Audio Class
Audio Device Class Spec for Basic Audio Devices and Adopters Agreement (.zip format, size 1.33MB)
Audio Device Document 1.0
Audio Data Formats 1.0
Audio Terminal Types 1.0
USB MIDI Devices 1.0
Audio Devices Rev. 2.0 Spec and Adopters Agreement (.zip format, size 1.28MB)
Battery Charging
Battery Charging v1.1 Spec and Adopters Agreement (.zip format, size 292 KB)
Cable and Connector
Cable and Connector Class 2.0
Series 'A' Plug form factor Guideline 1.0
USB Connector for Mezzanine Applications Guidelines Rev. 1.0
Micro-USB Cables and Connectors v1.01 Spec and Adopters Agreement
Common Class (CCS)
Common Class Base Specification 1.0
Communications Device Class
CDC Subclass Specification for Ethernet Emulation Model Devices 1.0
Network Control Model Devices Specification v1.0 and Adopters Agreement (.zip format, size 492 KB)
Content Security
Device Class Definition for Content Security Devices 1.0
Content Security Method 1 - Basic Authentication Protocol 1.0
Content Security Method 2 - USB Digital Transmission Content Protection Implementation 1.0
Device Firmware Upgrade Group
Device Firmware Upgrade 1.1 (new version 31-Aug-2004)
HID Class
Imaging Class
Still Image Capture Device Definition 1.0 and Errata as of 16-Mar-2007 (.zip format, size 200 KB)
IrDA
IrDA Bridge Device Definition 1.0
Mass Storage
Mass Storage Class Specification Overview 1.3
Mass Storage Bulk Only 1.0
Mass Storage Control/Bulk/Interrupt (CBI) Specification 1.1
Mass Storage UFI Command Specification 1.0
Mass Storage Bootability Specification 1.0
Lockable Mass Storage Specification 1.0 and Adopters Agreement (.zip format, size 288 KB)
- Lockable Mass Storage IP Disclosure
Media Transfer Protocol
Media Transfer Protocol v.1.0 Spec and MTP v.1.0 Adopters Agreement (.zip format, size 1.86MB)
Monitor
OpenUSBDI
Personal Healthcare
Personal Healthcare Rev. 1.0, Errata for USB Personal Health Care Device Class and Personal Healthcare Adopters Agreement (.zip format, size 386 KB)
Physical Interface Devices
Device Class Definition for PID 1.0
Power
Power Device Class Document 1.0
Printer Class
Printer Device Class Document 1.1
Smart Card Class
Smart Card CCID version 1.1
Smart Card ICCD version 1.0
Test & Measurement Class
Test & Measurement Class Specifications
Video Class
Draft Class Specification Documents
PC Legacy Compatibility Specification 0.9
USB_Video_Compliance_1.09b -- draft for public review
USB设备类型代码、详细说明、查询方式的更多相关文章
- USB设备类型代码(class类型)
Base Class E0h (Wireless Controller) This base class is defined for devices that are Wireless contro ...
- Spring data jpa 复杂动态查询方式总结
一.Spring data jpa 简介 首先我并不推荐使用jpa作为ORM框架,毕竟对于负责查询的时候还是不太灵活,还是建议使用mybatis,自己写sql比较好.但是如果公司用这个就没办法了,可以 ...
- Hibernate 查询方式(HQL/QBC/QBE)汇总
作为老牌的 ORM 框架,Hibernate 在推动数据库持久化层所做出的贡献有目共睹. 它所提供的数据查询方式也越来越丰富,从 SQL 到自创的 HQL,再到面向对象的标准化查询. 虽然查询方式有点 ...
- Thinkphp查询 1.查询方式 2.表达式查询 3.快捷查询 4.区间查询 5.组合查询 6.统计查询 7.动态查询 8.SQL 查询
1.使用字符串作为条件查询 $user = M('User'); var_dump($user->where('id=1 AND user="蜡笔小新"')->sele ...
- 定时器的应用---查询方式---让8个LED灯,左右各4个来回亮
定时器的应用,查询方式.让8个LED灯,左右各4个来回亮 代码: /********************** 查询方式是主程序不断的查询是否中断,而不需要准备子程序 *************** ...
- IBatis.Net学习笔记五--常用的查询方式
在项目开发过程中,查询占了很大的一个比重,一个框架的好坏也很多程度上取决于查询的灵活性和效率.在IBatis.Net中提供了方便的数据库查询方式. 在Dao代码部分主要有两种方式:1.查询结果为一个对 ...
- hibernate学习笔记6--Criteria查询方式、完整小练习(开发步骤)
一.Criteria查询方式没有sql语了,因此更加面向对象一些.Criteria是一种比HQL更面向对象的查询方式:Criteria的创建方式: Criteria c = s.createCrite ...
- MSSQL 如何实现 MySQL 的 limit 查询方式 (转)
不知为何,MSSQL 中没有 limit 这个极为重要的查询方式,熟悉 MySQL 的朋友都知道,MySQL 的 limit 对于实现分页和一些限制结果集的应用中非常方便.没有不要紧,我们可以用其他方 ...
- (十)Hibernate 查询方式
所有项目导入对应的hibernate的jar包.mysql的jar包和添加每次都需要用到的HibernateUtil.java 第一节:Hibernate 查询方式简介 1,导航对象图查询方式: 2 ...
- hibernate 查询方式汇总
主要摘自 http://blog.sina.com.cn/s/blog_7ffb8dd501014a6o.html ,http://blog.csdn.net/xingtianyiyun/artic ...
随机推荐
- Vite本地构建:手写核心原理
前言 接上篇文章,我们了解到vite的本地构建原理主要是:启动一个 connect 服务器拦截由浏览器请求 ESM的请求.通过请求的路径找到目录下对应的文件做一下编译最终以 ESM的格式返回给浏览器. ...
- RPC接口测试(六)RPC协议解析(重要!重要!重要!)
RPC协议解析 RPC(Remote Procedure Call Protocol)远程过程调用协议,它是一种通过网络从远程计算机程序上请求服务,而不需要了解底层网络技术的协议.简言之,RPC使得程 ...
- Jmeter函数助手5-RandomFromMultipleVars
RandomFromMultipleVars函数用于获取指定变量的随机变量值. Source Variable(s) (use | as separator):传入指定的变量名称,这里的变量可以是单值 ...
- 【MySQL】LEFT JOIN 踩坑
一.问题发现: 主查询功能发现两条一样的记录,但是审批状态不一样,一个已通过,一个待审核 主表付款表: CREATE TABLE `pur_or_payment` ( `id` int(11) NOT ...
- 【Layui】08 时间线 Timeline
文档地址: https://www.layui.com/demo/timeline.html 常规时间线: <ul class="layui-timeline"> &l ...
- 哈哈哈,我就说未来要研发无人的AI潜艇嘛 —— 说啥来啥 —— AI驱动的无人潜艇
相关: 沉默5个月后,美国对华发出挑战书,万没想到,中方打法早就变了
- 【转载】pip install 使用多个.local环境
原文地址: https://zhuanlan.zhihu.com/p/351468170 ================================ 我们都知道anaconda可以安装不同的py ...
- 华为最高学术成果发表 —— 《Nature》正刊发表论文《Accurate medium-range global weather forecasting with 3D neural networks》
论文<Accurate medium-range global weather forecasting with 3D neural networks>的<Nature>地址: ...
- uniapp tabBar配置后不显示
pages 和tabbar 箭头所指位置 第一个必须一样 写法也要完全一致 上面这样写 下面这样写 这样都不能匹配上正常显示
- [CEOI2011] Matching 题解
前言 题目链接:洛谷. 在上一题之后,模拟赛又放了一道 KMP 重定义相等的问题,但是寄了,故再记之. 题意简述 现在给出 \(1 \sim n\) 的排列 \(p\) 和序列 \(h_1, h_2, ...