【USB】USB设备类代码表(USB Class Code)

USB设备类代码表官网链接:http://www.usb.org/developers/defined_class

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).

USB定义了设备类的类别码信息,它的功能包括:可以用来识别设备并且加载设备驱动。这种代码信息有包含Base Class[基类])、SubClass[子类])、Protocol[协议])一共占有3个字节(注意:**[基类]**在文本中,用来标识三个字节的种类代码的首字节;在USB规范中没有使用这个术语)。设备中有两个地方可以存放种类代码信息,一个是设备描述符,另一个是接口描述符。已经定义的种类代码,有些只能放在设备描述符里,有些只能放在接口描述符里,有些两种描述符里都可以用。下表给出现在已经定了的基类的值的集合,通常用法是什么,基类用在什么场合(设备描述符或者接口描述符)。

Base ClassDescriptor UsageDescription
00hDeviceUse class information in the Interface Descriptors种类信息定义在接口描述符中
01hInterfaceAudio音频设备
02hBothCommunications&CDC通信设备
03hInterfaceHID(Human Interface Device)人机接口设备
05hInterfacePhysical物理设备
06hInterfaceImage图像设备
07hInterfacePrinter打印机
08hInterfaceMass Storage 大容量存储
09hDeviceHub集线器
0AhInterfaceCDC-Data通信设备
0BhInterfaceSmart Card智能卡
0DhInterfaceContent Security内容安全设备
0EhInterfaceVideo视频设备
0FhInterfacePersonal Healthcare个人健康设备
10hInterfaceAudio/Video Devices声音/视频设备
11hDeviceBillboard Device Class广播牌设备
12hInterfaceUSB Type-C Bridge Class
DChBothDiagnostic Device
E0hInterfaceWireless Controller
EFhBothMiscellaneous
FEhInterfaceApplication Specific
FFhBothVendor Specific
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值