⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stddesc.b16

📁 dz3000_51.0.0.4.rar
💻 B16
📖 第 1 页 / 共 5 页
字号:
        0xFF,                   //bInterfaceClass: Mass Storage devices
        0x00,                   //bInterfaceSubClass: UFI
	0x00,			// Bulk Only Rechie
        0x00,                   //iInterface: index of string

        //Endpoint 2 (0x07 byte)
        0x07,                   //bLength: 0x07 byte
        0x05,                   //bDescriptorType: ENDPOINT
        0x82,                   //bEndpointAddress: IN endpoint 2
        0x02,                   //bmAttributes: Bulk
        0x40, 0x00,             //wMaxPacketSize: 64 byte
        0x00,                   //bInterval: ignored

        //Endpoint 3 (0x07 byte)
        0x07,                   //bLength: 0x07 byte
        0x05,                   //bDescriptorType: ENDPOINT
        0x03,                   //bEndpointAddress: OUT endpoint 3
        0x02,                   //bmAttributes: Bulk
        0x40, 0x00,             //wMaxPacketSize: 64 byte
        0x00,                   //bInterval: ignored

        //Endpoint 4 (0x07 byte)
        0x07,                   //bLength: 0x07 byte
        0x05,                   //bDescriptorType: ENDPOINT
        0x84,                   //bEndpointAddress: IN endpoint 4
        0x03,                   //bmAttributes: Interrupt
        0x01, 0x00,             //wMaxPacketSize: 1 byte
        0x01,                   //bInterval: polling interval is 1 ms

        //-------------------------------------------------------------------
        //SubLength = 0x0027 byte ???? 
        //-------------------------------------------------------------------

        //Interface 2: Audio Control Interface Descriptor
        //Standard AC Interface Descriptor (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x04,                   //bDescriptorType: INTERFACE
        0x02,                   //bInterfaceNumber: interface 2
        0x00,                   //bAlternateSetting: alternate setting 0
        0x00,                   //bNumEndpoints: 0 endpoint
        0x01,                   //bInterfaceClass: AUDIO
        0x01,                   //bInterfaceSubClass: AUDIO_CONTROL
        0x00,                   //bInterfaceProtocol: 0
        0x00,                   //iInterface: index of string

        //Class-specific AC Interface Descriptor (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x24,                   //bDescriptorType: CS_INTERFACE          
        0x01,                   //bDescriptorSubType: HEADER subtype        
        0x00, 0x01,             //bcdADC: revision of class specification - 1.00
        0x1e, 0x00,             //wTotalLength: 0x1e byte ????
        0x01,                   //bInCollection: 1 streaming interface
        0x03,                   //baInterfaceNr(1): AudioStreaming interface 3 belongs to the AudioControl interface

        //Input Terminal Descriptor (0x0c byte)
        0x0c,                   //bLength: 0x0c byte
        0x24,                   //bDescriptorType: CS_INTERFACE
        0x02,                   //bDescriptorSubType: INPUT_TERMINAL subtype
        0x01,                   //bTerminalID: ID of this input terminal is 1
        0x01, 0x02,             //wTerminalType: Microphone
        0x04,                   //bAssocTerminal: ID of the associated output terminal is 4
        0x01,                   //bNrChannels: 1 channel
        0x00, 0x00,             //wChannelConfig: no position bits
        0x00,                   //iChannelNames: index of string
        0x00,                   //iTerminal: index of string

#if 0
        //Input Terminal Descriptor (0x0c byte)
        0x0c,                   //bLength: 0x0c byte
        0x24,                   //bDescriptorType: CS_INTERFACE
        0x02,                   //bDescriptorSubType: INPUT_TERMINAL subtype
        0x02,                   //bTerminalID: ID of this input terminal is 2
        0x03, 0x06,             //wTerminalType: Line Connector
        0x04,                   //bAssocTerminal: ID of the associated output terminal is 4
        0x02,                   //bNrChannels: 2 channels
        0x00, 0x00,             //wChannelConfig: no position bits
        0x00,                   //iChannelNames: index of string
        0x00,                   //iTerminal: index of string

        //Feature Unit Descriptor (0x08 byte)
        0x08,                   //bLength: 0x08 byte
        0x24,                   //bDescriptorType: CS_INTERFACE
        0x03,                   //bUnitID: ID of this feature unit is 3
        0x01,                   //bSourceID: ID of source terminal is 1 (Microphone)
        0x01,                   //bControlSize: size in byte of an element of bmaControls() array is 1
        0x00,                   //bmaControls(0): control for master channel
        0x00,                   //bmaControls(1): control for logical channel 1
        0x00,                   //iFeature: index of string
#endif

        //Output Terminal Descriptor (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x24,                   //bDescriptorType: CS_INTERFACE
        0x03,                   //bDescriptorSubType: OUTPUT_TERMINAL subtype
        0x04,                   //bTerminalID: ID of this output terminal is 4
        0x01, 0x01,             //wTerminalType: USB streaming
        0x01,                   //bAssocTerminal: ID of the associated input terminal is 1
        0x01,                   //bSourceID: ID of source terminal is 1 (Microphone)
        0x00,                   //iTerminal: index of string

        //-------------------------------------------------------------------
        //SubLength = 0x0136 byte 
        //-------------------------------------------------------------------

        //Interface 3: Audio Streaming Interface Descriptor
        //Standard AS Interface Descriptor, AlternateSetting 0 (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x04,                   //bDescriptorType: INTERFACE
        0x03,                   //bInterfaceNumber: interface 3
        0x00,                   //bAlternateSetting: alternate setting 0
        0x00,                   //bNumEndpoints: 0 endpoint
        0x01,                   //bInterfaceClass: AUDIO
        0x02,                   //bInterfaceSubClass: AUDIO_STREAMING
        0x00,                   //bInterfaceProtocol: 0
        0x00,                   //iInterface: index of string

        //Standard AS Interface Descriptor, AlternateSetting 1 (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x04,                   //bDescriptorType: INTERFACE
        0x03,                   //bInterfaceNumber: interface 3
        0x01,                   //bAlternateSetting: alternate setting 1
        0x01,                   //bNumEndpoints: 1 endpoint
        0x01,                   //bInterfaceClass: AUDIO
        0x02,                   //bInterfaceSubClass: AUDIO_STREAMING
        0x00,                   //bInterfaceProtocol: 0
        0x00,                   //iInterface: index of string

        //Class-specific AS General Interface Descriptor (0x07 byte)
        0x07,                   //bLength: 0x07 byte
        0x24,                   //bDescriptorType: CS_INTERFACE
        0x01,                   //bDescriptorSubType: GENERAL subtype
        0x04,                   //bTerminalLink: ID of output terminal is 4 (USB streaming)
        0x01,                   //bDelay: interface delay is 1 frame
        0x01, 0x00,             //wFormatTag: PCM format

        //Type I format Type Descriptor (0x0b byte)
        0x0b,                   //bLength: 0x0b byte
        0x24,                   //bDescriptorType: CS_INTERFACE
        0x02,                   //bDescriptorSubType: FORMAT_TYPE subtype
        0x01,                   //bFormatType: FORMAT_TYPE_I
        0x01,                   //bNrChannels: 1 channel
        0x02,                   //bSubFrameSize: 2 byte per audio subframe
        0x10,                   //bBitResolution: 16 bits per sample
        0x01,                   //bSamFreqType: 1 frequency supported
        0x00, 0x00, 0x00,       //tSamFreq: 0 Hz

        //Standard AS Endpoint Descriptor (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x05,                   //bDescriptorType: ENDPOINT
        0x86,                   //bEndpointAddress: IN endpoint 6
        0x01,                   //bmAttributes: Isochronous        
        0x10, 0x00,             //wMaxPacketSize: 16 byte
        0x01,                   //bInterval:  polling interval is 1 ms
        0x00,                   //bRefresh: 0 
        0x00,                   //bSyncAddress: 0

        //Class-specific AS Endpoint Descriptor (0x07 byte)
        0x07,                   //bLength: 0x07 byte
        0x25,                   //bDescriptorType: CS_ENDPOINT
        0x01,                   //bDescriptorSubType: GENERAL subtype
        0x00,                   //bmAttributes: no control is supported
        0x00,                   //bLockDelayUnits: 0
        0x00, 0x00,             //wLockDelay: 0

        //Standard AS Interface Descriptor, AlternateSetting 2 (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x04,                   //bDescriptorType: INTERFACE
        0x03,                   //bInterfaceNumber: interface 3
        0x02,                   //bAlternateSetting: alternate setting 2
        0x01,                   //bNumEndpoints: 1 endpoint
        0x01,                   //bInterfaceClass: AUDIO
        0x02,                   //bInterfaceSubClass: AUDIO_STREAMING
        0x00,                   //bInterfaceProtocol: 0
        0x00,                   //iInterface: index of string

        //Class-specific AS General Interface Descriptor (0x07 byte)
        0x07,                   //bLength: 0x07 byte
        0x24,                   //bDescriptorType: CS_INTERFACE
        0x01,                   //bDescriptorSubType: GENERAL subtype
        0x04,                   //bTerminalLink: ID of output terminal is 4 (USB streaming)
        0x01,                   //bDelay: interface delay is 1 frame
        0x01, 0x00,             //wFormatTag: PCM format

        //Type I format Type Descriptor (0x0b byte)
        0x0b,                   //bLength: 0x0b byte
        0x24,                   //bDescriptorType: CS_INTERFACE
        0x02,                   //bDescriptorSubType: FORMAT_TYPE subtype
        0x01,                   //bFormatType: FORMAT_TYPE_I
        0x01,                   //bNrChannels: 1 channel
        0x02,                   //bSubFrameSize: 2 byte per audio subframe
        0x10,                   //bBitResolution: 16 bits per sample
        0x01,                   //bSamFreqType: 1 frequency supported
        0x00, 0x00, 0x00,       //tSamFreq: 0 Hz

        //Standard AS Endpoint Descriptor (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x05,                   //bDescriptorType: ENDPOINT
        0x86,                   //bEndpointAddress: IN endpoint 6
        0x01,                   //bmAttributes: Isochronous        
        0x20, 0x00,             //wMaxPacketSize: 32 byte
        0x01,                   //bInterval:  polling interval is 1 ms
        0x00,                   //bRefresh: 0 
        0x00,                   //bSyncAddress: 0

        //Class-specific AS Endpoint Descriptor (0x07 byte)
        0x07,                   //bLength: 0x07 byte
        0x25,                   //bDescriptorType: CS_ENDPOINT
        0x01,                   //bDescriptorSubType: GENERAL subtype
        0x00,                   //bmAttributes: no control is supported
        0x00,                   //bLockDelayUnits: 0
        0x00, 0x00,             //wLockDelay: 0

        //Standard AS Interface Descriptor, AlternateSetting 3 (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x04,                   //bDescriptorType: INTERFACE
        0x03,                   //bInterfaceNumber: interface 3
        0x03,                   //bAlternateSetting: alternate setting 3 
        0x01,                   //bNumEndpoints: 1 endpoint
        0x01,                   //bInterfaceClass: AUDIO
        0x02,                   //bInterfaceSubClass: AUDIO_STREAMING
        0x00,                   //bInterfaceProtocol: 0
        0x00,                   //iInterface: index of string

        //Class-specific AS General Interface Descriptor (0x07 byte)
        0x07,                   //bLength: 0x07 byte
        0x24,                   //bDescriptorType: CS_INTERFACE
        0x01,                   //bDescriptorSubType: GENERAL subtype
        0x04,                   //bTerminalLink: ID of output terminal is 4 (USB streaming)
        0x01,                   //bDelay: interface delay is 1 frame
        0x01, 0x00,             //wFormatTag: PCM format

        //Type I format Type Descriptor (0x0b byte)
        0x0b,                   //bLength: 0x0b byte
        0x24,                   //bDescriptorType: CS_INTERFACE
        0x02,                   //bDescriptorSubType: FORMAT_TYPE subtype
        0x01,                   //bFormatType: FORMAT_TYPE_I
        0x01,                   //bNrChannels: 1 channel
        0x02,                   //bSubFrameSize: 2 byte per audio subframe
        0x10,                   //bBitResolution: 16 bits per sample

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -