hidapi:hid的USB设备通讯

preview
共59个文件
tlog:18个
ipch:6个
h:5个
需积分: 0 0 下载量 29 浏览量 更新于2024-05-08 收藏 15.4MB ZIP 举报
遍历设备中所有hid设备找的自己的并进行通讯; devs = hid_enumerate(0x0, 0x0); cur_dev = devs; while (cur_dev) { printf("Device Found\n type: %04hx %04hx\n path: %s\n serial_number: %ls", cur_dev->vendor_id, cur_dev->product_id, cur_dev->path, cur_dev->serial_number); printf("\n"); printf(" Manufacturer: %ls\n", cur_dev->manufacturer_string); printf(" Product: %ls\n", cur_dev->product_string); printf(" Release: %hx\n", cur_dev->release_number); printf(" Interface: %d\n", cur_dev->interface_nu
芦芭荞
  • 粉丝: 186
  • 资源: 12
上传资源 快速赚钱
voice
center-task 前往需求广场,查看用户热搜