Usb Audio Device Descriptor(1) Standard Audio Control Interface Descriptor
2016-01-22 11:10
429 查看
Standard Audio Control Interface Descriptor
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的字符串描述符索引。
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的字符串描述符索引。
相关文章推荐
- BootISO:从 ISO 文件中创建一个可启动的 USB 设备
- android USB如何修改VID具体实现
- 用vbs确定计算机是否有 USB 2.0 端口的代码
- Android中查看USB连接的外接设备信息的代码实例
- C#获取USB事件API实例分析
- 网络资料备忘录
- 用u盘安装操作系统
- 从usb启动安装linux
- 利用4G U盘安装Fedora Linux
- 用组策略彻低禁止USB存储设备、光驱、软驱、ZIP软驱
- usb禁用原理
- USB有关的编程
- usb
- USB硬件***危险性初步分析
- 关于禁用USB存储设备,而不禁使用USB键盘,鼠标
- 用USB安装esxi
- 量产化工具
- 用DriverStudio制作简单USB驱动程序
- USB设备驱动程序开发框架
- 如何在XenDesktop中映射USB设备