对于 Standard Interface Descriptor, 当 bInterfaceClass=0x03时,即为HID设备。Standard Interface Descriptor如下
struct usb_standard_interface_descriptor
{
U8 bLength; /*Size of this descriptor in bytes*/
U8 bDescriptorType; /*INTERFACE Descriptor Type*/
U8 bInterfaceNumber; /*Number of this interface. Zero-based
value identifying the index in the array of
concurrent interfaces supported by this
configuration.*/
U8 bAlternateSetting; /*Value used to select this alternate setting
for the interface identified in the prior field*/
U8 bNumEndpoints; /*Number of endpoints used by this
interface (excluding endpoint zero). If this
value is zero, this interface only uses the
Default Control Pipe.*/
U8 bInterfaceClass; /*Class code (assigned by the USB-IF).
A value of zero is reserved for future
standardization.
If this field