Usb Audio Device Descriptor(10) Hid Device

本文介绍了USB接口中,当bInterfaceClass等于0x03时标识为HID设备的情况,并详细解析了Standard Interface Descriptor和随后的Hid Descriptor。内容包括Report Descriptor和Physical Descriptor的结构,特别强调Physical Descriptor通常是可选的。接着,文章深入探讨了Report Descriptor的Item分类,包括长item和短item,以及Main item、Global item和Local item的详细信息。通过对bTag、bType和bSize的解析,阐述了不同类型的Item及其在Report Descriptor中的作用。
摘要由CSDN通过智能技术生成

对于 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 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值