USB Device Classes
Contents
- Base Class Table
- Base Class 00h (Device)
- Base Class 01h (Audio)
- Base Class 02h (Communications and CDC Control)
- Base Class 03h (HID – Human Interface Device)
- Base Class 05h (Physical)
- Base Class 06h (Still Imaging)
- Base Class 07h (Printer)
- Base Class 08h (Mass Storage)
- Base Class 09h (Hub)
- Base Class 0Ah (CDC-Data)
- Base Class 0Bh (Smart Card)
- Base Class 0Dh (Content Security)
- Base Class 0Eh (Video)
- Base Class 0Fh (Personal Healthcare)
- Base Class 10h (Audio/Video Devices)
- Base Class 11h (Billboard Device)
- Base Class FFh (Vendor Specific)
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 is in the device descriptor, and the other is in the 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 following table 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 Table
Base Class | Descriptor Usage | Description |
---|---|---|
00h | Device | Use class information in the Interface Descriptors |
01h | Interface | Audio |
02h | Both | Communications and Communications Device Class (CDC) Control |
03h | Interface | Human Interface Device (HID) |
05h | Interface | Physical |
06h | Interface | Image |
07h | Interface | Printer |
08h | Interface | Mass Storage (MSD) |
09h | Device | 8Hub |
0Ah | Interface | CDC-Data |
0Bh | Interface | Smart Card |
0Dh | Interface | Content Security |
0Eh | Interface | Video |
0Fh | Interface | Personal Healthcare |
10h | Interface | Audio/Video Devices |
11h | Device | Billboard Device Class |
DCh | Both | Diagnostic Device |
0Eh | 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 specification 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 CDC specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined specification are reserved. Note that the Communication Device Class specification 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 |
---|---|---|---|
02h | xxh | xxh | Communication device class (CDC) control |
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 specification 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 specification 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 specification 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 specification are reserved. These class codes can only be used in interface descriptors.
Base Class | SubClass | Protocol | Meaning |
---|---|---|---|
07h | xxh | xxh | Printer device |
Base Class 08h (Mass Storage)
This Base Class is defined for devices that conform to the MSD Class specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined specification 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 |
09h | 00h | 01h | High Speed Hub with single TT |
09h | 00h | 02h | High Speed Hub with single TTs |
Base Class 0Ah (CDC-Data)
This Base Class is defined for devices that conform to the CDC specification found on the USB-IF website. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined specification 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 specification 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 specification 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 specification 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 specification 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 10h (Audio/Video Devices)
The USB Audio/Video (AV) Device Class Definition describes the methods used to communicate with devices or functions embedded in composite devices that are used to manipulate audio, video, voice, and all image- and sound-related functionality. That specification defines the usable set of SubClass and Protocol values. Values outside of that defined specification are reserved. These class codes can only be used in interface descriptors.
Base Class | SubClass | Protocol | Meaning |
---|---|---|---|
10h | 01h | 00h | Audio/Video Device – AVControl Interface |
10h | 02h | 00h | Audio/Video Device – AVData Video Streaming Interface |
10h | 03h | 00h | Audio/Video Device – AVData Audio Streaming Interface |
Base Class 11h (Billboard Device)
This Base Class is defined for devices that conform to the Billboard 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 specification are reserved. These class codes can only be used in device descriptors.
Base Class | SubClass | Protocol | Meaning |
---|---|---|---|
11h | 00h | 00h | Billboard Device |
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 |