Usb Audio Device Descriptor(1) Standard Audio Control Interface Descriptor

Standard Audio Control Interface Descriptor

struct usb_ac_interface_descriptor
{
    U8      bLength;            /* Size of this descriptor in bytes */
    U8      bDescriptorType;        /* INTERFACE descriptor type */
    U8      bInterfaceNumber;   /* Number of the interface (0 based) */
    U8      bAlternateSetting;
    U8      bNumEndpoints;      /* Number of endpoints in this interface */
    U8      bInterfaceClass;    /* AUDIO Interface class code */
    U8      bInterfaceSubclass; /* AUDIO_STREAMING Interface subclass code */
    U8      bInterfaceProtocol; /* IP_VERSION_02_00 Interface protocol code */
    U8      iInterface;         /* String descriptor of this Interface */
};

bLength = 0x09; struct size,固定0x09;
bDescriptorType = 0x04; 表明此数据是Interface描述符;
bInterfaceClass = 0x01; 说明这是一个Audio device;
bInterfaceSubclass = 0x01; 说明这是一个audio control interface; 0x02 是audio streaming interface; 0x03 是midi streaming interface;
bInterfaceNumber : 同配置的Interface index,以0开始;
bAlternateSetting: 可替换的Interface index;
bNumEndpoints: 除0端点外,此Interface所使用的端点数量,如果有可替换的端点,则为1,否则是0;
bInterfaceProtocol: 未使用,必须设为0;
iInterface: 如果有字符串描述符,则描述此Interface的字符串描述符索引。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值