CH582USB模拟340

/* 配置描述符 */
const UINT8 TAB_USB_CDC_CFG_DES[ ] =
{
  0x09,0x02,0x43,0x00,0x02,0x01,0x00,0x80,0x30,

  //以下为接口0(CDC接口)描述符
  0x09, 0x04,0x00,0x00,0x01,0x02,0x02,0x01,0x00,

  0x05,0x24,0x00,0x10,0x01,
  0x04,0x24,0x02,0x02,
  0x05,0x24,0x06,0x00,0x01,
  0x05,0x24,0x01,0x01,0x00,

  0x07,0x05,0x84,0x03,0x08,0x00,0x01,                       //中断上传端点描述符

  //以下为接口1(数据接口)描述符
  0x09,0x04,0x01,0x00,0x02,0x0a,0x00,0x00,0x00,

  0x07,0x05,0x01,0x02,0x40,0x00,0x00,                       //端点描述符  第四个字节是0x02,代表是批量传输,此时的间隔就没有意义了
  0x07,0x05,0x81,0x02,0x40,0x00,0x00,                       //端点描述符  
};

 

posted @ 2024-04-12 15:09  SweetTea_lllpc  阅读(21)  评论(0编辑  收藏  举报