USB复合设备的实现

jie.lee posted @ 2010年5月12日 02:00 in 笔记 with tags usb , 12666 阅读

USB复合设备一般用Interface Association Descriptor(IAD)实现,就是在要合并的接口前加上IAD描述符。

IAD描述符:

typedef struct _USBInterfaceAssociationDescriptor {
    BYTE  bLength:                  0x08        //描述符大小
    BYTE  bDescriptorType:          0x0B        //IAD描述符类型
    BYTE  bFirstInterface:          0x00        //起始接口
    BYTE  bInterfaceCount:          0x02        //接口数
    BYTE  bFunctionClass:           0x0E        //类型代码
    BYTE  bFunctionSubClass:        0x03        //子类型代码
    BYTE  bFunctionProtocol:        0x00        //协议代码
    BYTE  iFunction:                0x04        //描述字符串索引
}

参考资料  http://www.microsoft.com/whdc/archive/IAD.mspx

这里有我发布的stm32虚拟双串口的例子http://www.ourdev.cn/bbs/bbs_content.jsp?bbs_sn=4028048 下载

KVS KG1 Model Paper 说:
2022年9月22日 02:54

Kendriya Vidyalaya Sangathan has provided the practice question paper for Preschool Kindergarten education subject-wise practice question paper with model sample paper for all LKG/PP1/KG1 students through KVS Teaching staff at all region schools across the Country. KVS KG1 Model Paper Kendriya Vidyalaya Sangathan has provided the practice question paper for Preschool Kindergarten education subject-wise practice question paper with model sample paper for all LKG/PP1/KG1 students through KVS Teaching staff at all region schools across the Country.

mcdonald cerca de mi 说:
2023年7月29日 22:58

Hoy en día, encontrar McDonald’s cerca de mí es muy simple utilizando varias formas desde su ubicación actual. punzadas de hambre puede ubicar 24 horas Mcdonald’s cerca de su ubicación que está abierta ahora. mcdonald cerca de mi Mc Donalds ofrece horas de desayuno y horas de lanzamiento con opciones de menú muy sabrosas en todos los McDonald’s más cercanos para cenar junto con su comida favorita para llevar.

boardmodelpaper.com 说:
2024年1月19日 00:41

Board Model Papers 2024 provide all states of 6th to 10th text books 2024 Candidates who are Searching for 6th to 10th and 11th to 12th text books and syllabus, sample questions, exam pattern, and Co-Curricular Subject textbooks can refer to this entire article. boardmodelpaper.com and question papers for following the website and Arts, Science, Commerce Stream Subject Wise Solved Question Bank for Hindi & English Medium Students with Exam Pattern & Blueprint and subject Wise with 11th & 12th Question Bank 2024 for General & Vocational Course. Here, we have gathered all subjects of Board textbooks for all Class along with the direct download links.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter