配置描述符如下:
const configdesc CONFIGDESC =
{
{
//configuration descriptor
0x09,
0x02,
0x4000,
0x02,
0x01,
0x00,
0x80,
0x64
},
{
//interface0 descriptor
0x09,
0x04,
0x00,
0x00,
0x02,
0x03,
0x00,
0x00,
0x00
},
{
//hid_descriptor
0x09,
0x21,
0x1001,
0x00,
0x01,
0x02,
REPORT_DESP_LENGTH
},
{
//IN EP2
0x07,
0x05,
0x82,
0x03,
0x4000,
1
},
{
//OUT EP2
0x07,
0x05,
0x02,
0x03,
0x4000,
1
},
{
//interface2 descriptor
0x09,
0x04,
0x01,
0x00,
0x02,
0xff,
0x00,
0x00,
0x00
},
{
//IN EP1
0x07,
0x05,
0x81,
0x02,
0x4000,
1
},
{
//OUT EP1
0x07,
0x05,
0x01,
0x02,
0x4000,
1
}
} |