qt 通过hid获取指定usb设备 并读取数据
文件夹中包含hidapi.hhidapi.dllhidapi.lib,我是在windows10系统中用VS2013编译的release版本,我用于qt的调用,是可以实现的。
调用过程:
intres;
res=hid_init();
wchar_twstr[MAX_STR];
inti;
//OpenthedeviceusingtheVID,PID,
//andoptionallytheSerialnumber.
handle=hid_open(0x0483,0x5750,NULL);
下载地址
用户评论