Usb Audio Device Descriptor(8) Type I Format Type Descriptor
来源:互联网 发布:淘宝主播薇娅个人资料 编辑:程序博客网 时间:2024/05/16 13:57
Type I Format Type Descriptor
struct usb_format_type_1{ U8 bLength; /*Size of this descriptor, in bytes: 8+(ns*3)*/ U8 bDescriptorType; /*CS_INTERFACE descriptor type*/ U8 bDescriptorSubtype; /*FORMAT_TYPE descriptor subtype.*/ U8 bFormatType; /*FORMAT_TYPE_I. Constant identifying the Format Type the AudioStreaming interface is using.*/ U8 bNrChannels; /*Indicates the number of physical channels in the audio data stream.*/ U8 bSubframeSize; /*The number of bytes occupied by one audio subframe. Can be 1, 2, 3 or 4.*/ U8 bBitResolution; /*The number of effectively used bits from the available bits in an audio subframe.*/ U8 bSamFreqType; /*Indicates how the sampling frequency can be programmed: 0: Continuous sampling frequency 1..255: The number of discrete sampling frequencies supported by the isochronous data endpoint of the AudioStreaming interface (ns)*/ U8 tLowerSamFreq[3]; /*Lower bound in Hz of the sampling frequency range for this isochronous data endpoint.*/ U8 tUpperSamFreq[3]; /*Upper bound in Hz of the sampling frequency range for this isochronous data endpoint.*/};
bLength = 8+(ns*3); 当为continous frequecy 时, ns = 2;
bDescriptorType = 0x24; class-specific interface;
bDescriptorSubtype = 0x02; 同input terminal->bDescriptorSubtype, 此时要通过bLength来区别,input terminal->bLength = 12;
bFormatType = 0x01; FORMAT_TYPE_I;
bNrChannels: audio streaming 物理声道数;
bSubframeSize: 对于一个subframe, 需要多少bytes;
bBitResolution: bit resolution,即多少位的pcm数据;
bSamFreqType: 0 表示 continuous sampling frequecy; 1…ns(max=255)表示离散的sampling freqency;
tLowSamFreq/tUpperSamFreq: Sampling Frequency的高低位;
0 0
- Usb Audio Device Descriptor(8) Type I Format Type Descriptor
- Usb Audio Device Descriptor(1) Standard Audio Control Interface Descriptor
- Usb Audio Device Descriptor(10) Hid Device
- Usb Audio Device Descriptor(3) Input Terminal Descriptor
- Usb Audio Device Descriptor(4) Output Terminal Descriptor
- Usb Audio Device Descriptor(5) Feature Unit Descriptor
- Usb Audio Device Descriptor(6) Standard AS Interface Descriptor
- Usb Composite Device (audio+hid) Descriptor
- Usb Audio Device Descriptor(9) Standard Audio Streaming Isochronous Audio Data Endpoint Descriptor
- Usb Audio Device Descriptor(2) Class-Specific Audio Control Interface Header Descriptor
- Usb Audio Device Descriptor(7) Class-Specific Audio Streaming Interface Descriptor
- USB Device Descriptor for AMP Controller
- USB Descriptor
- USB descriptor
- USB descriptor
- usb 音频类描述符及其说明(usb audio descriptor)
- usb 音频类描述符及其说明(usb audio descriptor)
- Descriptor
- do while 2
- uva12124
- Java Collections.synchronizedMap方法分析
- 空间向量坐标运算
- UITableView的属性
- Usb Audio Device Descriptor(8) Type I Format Type Descriptor
- Codeforces Round #339 (Div. 2) A. Link/Cut Tree - Codeforces(思维)
- mac 命令大全
- c++ 纯虚函数
- Http通信过程(7步)
- hibernate缓存
- Ionic在Android上部署app步骤
- opencv学习笔记(1) TermCriteria 和 光流法特征点
- WIFI