Input Terminal Descriptor
struct usb_input_terminal_descriptor
{
U8 bLength; /*Size of this descriptor, in bytes: 12*/
U8 bDescriptorType; /*CS_INTERFACE descriptor type.*/
U8 bDescriptorSubtype; /*INPUT_TERMINAL descriptor subtype.*/
U8 bTermialID; /*Constant uniquely identifying the
Terminal within the audio function. This
value is used in all requests to address
this Terminal.*/
U16 wTerminalType; /*Constant characterizing the type of
Terminal. See USB Audio Terminal
Types.*/
U8 bAssocTerminal; /*ID of the Output Terminal to which this
Input Terminal is associated.*/
U8 bNrChannels; /*Number of logical output channels in the
Terminal’s output audio channel cluster.*/
U16 wChannelConfig; /*Describes the spatial location of the
logical channels.*/
U8 iChannelNames; /*Index of a string descriptor, describing
the name of the first logical channel.*/
U8 iTerminal; /*Index of a string descriptor, describing
the Input Terminal.*/
};
bLength = 12;
bDescriptorType = 0x24; 说明这是 class-specific interface;
bDescriptorSubtype = 0x02;说明这是 input terminal descriptor;
bTerminalID: Terminal ID, 值唯一;
wTerminalType: USB streaming (0x101), ……;
bAssocTerminal: 与之相关联的output terminal ID,如果为0,则表示此值未使用;
bNrChannels: 逻辑输出声道数;
wChannelConfig: Describes the spatial location of the logical channels;
iChannelNames: logical channel string index;
iTerminal: string index;