1、宏定义 AI检测代码解析 #define DEVICE_DESCRIPTOR 0x01 //设备描述符 #define CONFIGURATION_DESCRIPTOR 0x02 //配置描述符 #define STRING_DESCRIPTOR 0x03 //字符串描述符 #define INTERFACE_DESCRIPTOR 0x04 //接口描述符 #define ENDPOINT_DESCRIPTOR 0x05 //端点描述符 #define HID_DESCRIPTOR 0x21 //HID...
个人健康设备10hinterfaceaudiovideodevices音频视频设备dchbothdiagnosticdevice诊断设备usb2兼容设备e0hinterfacewirelesscontroller无线控制器蓝牙设备等efhbothmiscellaneous杂项activesyncpalmsync各种协会等fehinterfaceapplicationspecific应用专有规范固件升级红外usb测试与测量等ffhbothvendorspecific供应商自定义规范手机classffsubclass...
/* USB_DT_DEVICE: Device descriptor */struct usb_device_descriptor{__u8 bLength;__u8 bDescriptorType;__le16 bcdUSB;__u8 bDeviceClass;__u8 bDeviceSubClass;__u8 bDeviceProtocol;__u8 bMaxPacketSize0;__le16 idVendor;__le16 idProduct;__le16 bcdDevice;__u8 iManufacturer;__u8 iProduct;...
0xE0, // bmAttributes 0x32, // MaxPower 100mA //***接口1配置*** 0x09, USBINTERFACEDESCRIPTOR_TYPE, 0x00, //接口编号 0x00, 0x, //端点数 0x03, 0x, //1 = boot 0 = no boot 0x01, //0 = none 1 = keyboard 2 = mouse 0, //接口符索引值 //***HID 描述符*...
Virtual USB Hub Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 9 Hub bDeviceSubClass 0 Unused bDeviceProtocol 0 Full speed (or root) hub bMaxPacketSize0 8 idVendor 0x0e0f VMware, Inc. idProduct 0x0002 Virtual USB Hub bcdDevice 1.00 iManufacturer 1 VMware, ...
{ USB_INTERFACE_INFO(USB_INTERFACE_CLASS_HID, USB_INTERFACE_SUBCLASS_BOOT, USB_INTERFACE_PROTOCOL_MOUSE) }, { } /* Terminating entry */ }; static struct usb_driver usbtouch_driver = { .name = "myusb", .probe = usbtouch_probe, ...
1、USB设备类及设备子类及接口采用的设备类协议USB Class CodesNovember17,2009USB defines class code information that is used to identify a devices functionality and to nominally load a device driver based on that functionality.The information is contained in three bytes with the names Base Class,...
[root@localhost ~]# lsusb -v |grep -Ei '(idVendor|Mass\ Storage)'idVendor 0x0bda Realtek Semiconductor Corp.idVendor 0x0951 Kingston TechnologybInterfaceClass 8 Mass StorageidVendor 0x1d6b Linux FoundationidVendor 0x0e0f VMware, Inc.idVendor 0x0e0f VMware, Inc.idVendor 0x1d6b Linux Founda...
类规范bDeviceClass Code驱动程序名称Windows 支持 蓝牙类 0xE0 Bthusb.sys Windows XP 及更高版本 芯片/智能卡接口设备 (CCID) 0x0B Usbccid.sys Windows Server 2008 及更高版本 Windows Vista 及更高版本 Windows Server 2003 Windows XP Windows 2000 Hub 类 0x09 Usbhub.sys Windows Server 2003 及更高版...
表11、USB协议定义的接口类别(bInterfaceClass) 4、端点描述符 端点是设备与主机之间进行数据传输的逻辑接口,除配置使用的端点0(控制端点,一般一个设备只有一个控制端点)为双向端口外,其它均为单向。端点描述符描述了数据的传输类型、传输方向、数据包大小和端点号(也可称为端点地址)等。