Usb Audio Device Descriptor(3) Input Terminal Descriptor

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;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值