UAC麦克风配置描述符
2021-07-22
684
0
配置描述符包含了设备的配置信息,随配置描述符一起返回给主机的其它描述符代表了该设备的特性。
UAC麦克风配置描述符的数据配置如下:
数据结构定义如下:
struct usb_config_descriptor {
__u8 bLength;
__u8 bDescriptorType;
__le16 wTotalLength;
__u8 bNumInterfaces;
__u8 bConfigurationValue;
__u8 iConfiguration;
__u8 bmAttributes;
__u8 bMaxPower;
}
__attribute__((packed));
通过Free Device Monitoring Studio 抓取设备的配置信息:
- descriptors[0] = “Configuration Descriptor”
- bLength = 9 b
- DescriptorType = USB_CONFIGURATION_DESCRIPTOR_TYPE (2)
- wTotalLength = 100 //包括后续描述符的总长度
- bNumInterfaces = 2
- bConfigurationValue = 1
- iConfiguration = 4
- Reserved = 0
- SupportsRemoteWakeup = 0
- SelfPowered = 0
- PoweredByBus = 1
- MaxPower = 0x1 -> 2 mA
关于配置描述符的分析可详见:http://www.usbzh.com/article/detail-67.html
HID人机交互QQ群:564808376
UAC音频QQ群:218581009
UVC相机QQ群:331552032
BOT&UASP大容量存储QQ群:258159197
STC-USB单片机QQ群:315457461
USB技术交流QQ群2:580684376
USB技术交流QQ群:952873936