文件名称:基于libUsb库实现Hid USB设备通讯
文件大小:34KB
文件格式:DOC
更新时间:2015-12-11 04:07:59
USB libUsb
OnInitDialog()下添加如下代码: struct usb_bus *busses, *bus; // usb_dev_handle *handle = NULL; //这个需定义为全局变量,在读线程中也许使用 usb_init(); usb_find_busses(); usb_find_devices(); busses = usb_get_busses(); for(bus = busses; bus; bus = bus->next) { struct usb_device *dev;