stddesc.b16

来自「台湾凌阳方案300万数码相机源代码」· B16 代码 · 共 1,192 行 · 第 1/5 页

B16
1,192
字号
        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        
        0x80, 0x00,             //wMaxPacketSize: 128 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 9 (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x04,                   //bDescriptorType: INTERFACE
        0x03,                   //bInterfaceNumber: interface 3
        0x09,                   //bAlternateSetting: alternate setting 9
        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        
        0x90, 0x00,             //wMaxPacketSize: 144 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 a (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x04,                   //bDescriptorType: INTERFACE
        0x03,                   //bInterfaceNumber: interface 3
        0x0a,                   //bAlternateSetting: alternate setting a
        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        
        0xa0, 0x00,             //wMaxPacketSize: 160 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 b (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x04,                   //bDescriptorType: INTERFACE
        0x03,                   //bInterfaceNumber: interface 3
        0x0b,                   //bAlternateSetting: alternate setting b
        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        
        0xb0, 0x00,             //wMaxPacketSize: 176 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 c (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x04,                   //bDescriptorType: INTERFACE
        0x03,                   //bInterfaceNumber: interface 3
        0x0c,                   //bAlternateSetting: alternate setting c
        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        
        0xc0, 0x00,             //wMaxPacketSize: 192 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 d (0x09 byte)
        0x09,                   //bLength: 0x09 byte
        0x04,                   //bDescriptorType: INTERFACE
        0x03,                   //bInterfaceNumber: interface 3
        0x0d,                   //bAlternateSetting: alternate setting d
        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

⌨️ 快捷键说明

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