在线时间321 小时
UID3079600
注册时间2014-12-1
NXP金币0
TA的每日心情 | 开心 2024-7-31 10:09 |
---|
签到天数: 392 天 连续签到: 1 天 [LV.9]以坛为家II
金牌会员
 
- 积分
- 3163
- 最后登录
- 2024-12-27
|
/********************************************************************
* Interface Descriptor 9位 接口描述符
********************************************************************/
0x09, //blength该描述符的个数
0x04, //bDescriptorType - Interface descriptor 04接口描述符
0x00, //bInterfaceNumber - Zero based value identifying the index of the config.接口号0
0x00, //bAlternateSetting;可替换的接口描述符编号。实际就是接口的描述符的编号。
0x01, //bNumEndpoints - 2 endpoints该接口使用的端点数为1,不包括端点0
0x02, //bInterfaceClass - mass storage 接口所属的USB设备类,02表示为通信类CDC
0x02, //bInterfaceSubClass - SCSI Transparent command Set接口所属的USB设备子类,0无引导,1支持引导
0x01, //bInterfaceProtocol - Bulk-Only transport接口采用的USB设备类协议,1:键盘接口,2鼠标接口。???
0x01, //iInterface - Index to String descriptor 接口字符串描述符的索引
0x05, //这一段是对什么的描述???
0x24,
0x00,
0x10,
0x01,
0x05,
0x24,0x01,
0x00,0x01,
0x04,0x24,
0x02,0x00,
0x05,0x24,
0x06,0x00,
0x01, //19位
/********************************************************************
* Endpoint Descriptor 7位 端点描述符
********************************************************************/
0x07, //blength长度
0x05, //bDescriptorType - EndPoint 05号为端点描述符
0x81, //bEndpointAddress 端点地址以及方向1000 0001端点号1,in
0x03, //bmAttributes 描述了该端点的传输特性,03->0000 0011 中断传输,数据端点非同步
0x20,0x00, //wMaxPacketSize 最大包长度
0x02, //bInterval 定义了该端点被主机访问的周期1ms单位
|
|