Device classes

来源:互联网 发布:网络环境 搭建 pdf 编辑:程序博客网 时间:2024/04/30 03:46

USB defines class codes used to identify a device’s functionalityand to load a device driver based on that functionality. This enables adevice driver writer to support devices from different manufacturersthat comply with a given class code.

Device classes include:[4]

ClassUsageDescriptionExamples00hDeviceUnspecifiedclass 0(Device class is unspecified. Interface descriptors are used for determining the required drivers.)01hInterfaceAudioSpeaker, microphone, sound card02hBothCommunications and CDC ControlEthernet adapter, modem, serial port adapter03hInterfaceHuman Interface Device (HID)Keyboard, mouse, joystick05hInterfacePhysical Interface Device (PID)Force feedback joystick06hInterfaceImageWebcam, scanner07hInterfacePrinterLaser printer, inkjet printer, CNC machine08hInterfaceMass StorageUSB flash drive, memory card reader, digital audio player, digital camera, external drive09hDeviceUSB hubFull speed hub, hi-speed hub0AhInterfaceCDC-Data(This class is used together with class 02h - Communications and CDC Control.)0BhInterfaceSmart CardUSB smart card reader0DhInterfaceContent Security-0EhInterfaceVideoWebcam0FhInterfacePersonal Healthcare-DChBothDiagnostic DeviceUSB compliance testing deviceE0hInterfaceWireless ControllerWi-Fi adapter, Bluetooth adapterEFhBothMiscellaneousActiveSync deviceFEhInterfaceApplication SpecificIrDA Bridge, Test & Measurement Class (USBTMC)[5]FFhBothVendor Specific(This class code indicates that the device needs vendor specific drivers.)

Note class 0:Use class information in the Interface Descriptors. This base class isdefined to be used in Device Descriptors to indicate that classinformation should be determined from the Interface Descriptors in thedevice.

原创粉丝点击