⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 find_hubs.cpp

📁 This libusb version 0.1.12. libusb is a library which allows userspace application access to USB de
💻 CPP
字号:
// -*- C++;indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*-/* * find_hubs.cpp * *  Test suite program for C++ bindings */#include <iostream>#include <iomanip>#include <usbpp.h>using namespace std;int main(void){	USB::Busses buslist;	USB::Device *device;	list<USB::Device *> hubList;	list<USB::Device *>::const_iterator iter;	cout << "Class/SubClass/Protocol" << endl;	hubList = buslist.match(0x9);	for (iter = hubList.begin(); iter != hubList.end(); iter++) {		device = *iter;		cout << hex << setw(2) << setfill('0')			 << int(device->devClass()) << "      " 			 << hex << setw(2) << setfill('0')			 << int(device->devSubClass()) << "      "			 << hex << setw(2) << setfill('0')			 << int(device->devProtocol()) << endl;	}	return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -