const UINT8 MyDevDescr[] = {
0x12,0x01,0x00,0x02,0x00,0x00,0x00,0x40,0xB6,0x0A,0x65,0x01,0x00,0x01,0x02,0x01,0x03,0x01
};
// 配置描述符
const UINT8 MyCfgDescr[] = {
0x09,0x02,0x29,0x00,0x01,0x01,0x00,0xC0,0x01,
0x09,0x04,0x00,0x00,0x02,0x03,0x00,0x00,0x00,
0x09,0x21,0x11,0x01,0x00,0x01,0x22,0x20,0x00,
0x07,0x05,0x81,0x03,0x40,0x00,0x03,
0x07,0x05,0x01,0x03,0x40,0x00,0x05
};
/*HID类报表描述符*/
const UINT8 HIDRepDesc[32] =
{
/* 0x06, 0xA0,0xff,
0x09, 0x01,
0xa1, 0x01, //集合开始
0x09, 0x01, //Usage Page 用法
0x15, 0x00, //Logical Minimun
0x26, 0xFF,0x00, //Logical Maximun
0x75, 0x08, //Report Size
0x95, 0x40, //Report Counet
0x81, 0x02, //Input
0x09, 0x02, //Usage Page 用法
0x75, 0x08, //Report Size
0x95, 0x40, //Report Counet
0x91, 0x02, //Output
0x09, 0x03,
0x75, 0x08,
0x95, 0x05,
0xB1, 0x02,
0xC0*/
0x06,0x00,0xFF,
0x09,0x01,
0xA1,0x01,
0x09,0x01,
0x15,0x80,
0x25,0x7F,
0x75,0x08,
0x95,0x40,
0x81,0x22,
0x09,0x01,
0x95,0x40,
0x91,0x22,
0x09,0x01,
0x95,0x02,
0xB1,0x22,
0xC0
};
// 语言描述符
const UINT8 MyLangDescr[] = { 0x04, 0x03, 0x09, 0x04 };
// 厂家信息
const UINT8 MyManuInfo[] = { 0x0E, 0x03, 'w', 0, 'c', 0, 'h', 0, '.', 0, 'c', 0, 'n', 0 };
// 产品信息
const UINT8 MyProdInfo[] = { 0x0C, 0x03, 'C', 0, 'H', 0, '5', 0, '7', 0, 'x', 0 };
const UINT8 SNDesc[] ={ //设备序列号信息字符串描述符
24, //长度
0x03, //字符串描述符
0x33, 0x00, //3
0x35, 0x00, //5
0x37, 0x00, //7
0x2d, 0x00, //-
0x39, 0x00, //9
0x31, 0x00, //1
0x33, 0x00, //3
0x30, 0x00, //0
0x33, 0x00, //3
0x39, 0x00, //9
0x54, 0x00, //T
};