public enum UsbClass Inheritance Enum UsbClass Fields 展開資料表 NameValueDescription PerInterface 0 USB class indicating that the class is determined on a per-interface basis. Audio 1 USB class for audio devices. Comm 2 USB class for communication devices. Hid 3 USB class for human interface...
There are three classes that make up the definition for communication devices: the Communication Device Class,Communication Interface Class and the Data Interface Class. The Communication Device Class is a device level definition and is used by the host to properly identify a communication device that...
=null){// 创建输入输出端点UsbEndpointendpointIn=null;UsbEndpointendpointOut=null;for(inti=0;i<targetDevice.getInterfaceCount();i++){UsbInterfaceusbInterface=targetDevice.getInterface(i);if(usbInterface.getInterfaceClass()==UsbConstants.USB_CLASS_COMM){for(intj=0;j<usbInterface.getEndpointCount()...
UsbInterface usbInterface = device.getInterface(interfaceIndex); if ((UsbConstants.USB_CLASS_CDC_DATA != usbInterface.getInterfaceClass()) && (UsbConstants.USB_CLASS_COMM != usbInterface.getInterfaceClass())) { continue; } for (int i = 0; i < usbInterface.getEndpointCount(); i++) { ...
USB NCM,属于USB-IF定义的CDC(Communication Device Class)下的一个子类:Network Control Model,用于Host和Device之间交换以太网帧。NCM主要用于高速网络场景下比如HSPA和LTE数据服务。NCM协议规范基于ECM改进而来,支持了更高的数据率。使用NCM的主要优点在于它在单个USB批量传输中传输多个数据报。NCM允许设备和主机使用一...
bInterfaceClass:用于指定USB设备所属的接口类,比如USB_INTERFACE_CLASS_HID、USB_CLASS_VIDEO、USB_CLASS_APP_SPEC、USB_CLASS_COMM、USB_CLASS_MASS_STORAGE、USB_CLASS_COMM等。 bInterfaceSubClass,用于指定接口子类; bInterfaceProtocol :用于指定接口协议; ...
Class=USB ClassGUID={36fc9e60-c465-11cf-8056-444553540000} Provider=%FTDI% CatalogFile=ftdibus.cat DriverVer=04/14/2009,1.00.2154 [SourceDisksNames] 1=%DriversDisk%,,, [SourceDisksFiles] ftcomms.vxd = 1 ftserial.sys = 1 ftsenum.vxd = 1 ...
在之前的文章中已经介绍了USB驱动开发所需要的前置知识,最近在写CDC ACM的驱动,也想趁热打铁来总结以下,所谓CDC ACM驱动就是把一个USB设备枚举成串口,前面的文章提到了USB2.0已经定义了很多设备类,CDC (Communications Device Class)类是USB协议规定的设备类中的一种。
Status Class FriendlyName InstanceId --- --- --- --- OK USB USB Composite Device USB\VID_0D8C&PID_0147&REV_0109\3&2DCEE32&0&TSUSB-SESSION4... OK Ports USB-to-Serial Comm Port (COM6) USB\VID_012A&PID_0123&REV_0202\3&2DCEE32&0&TSUSB-SESSION4... 外设被重定向且...
DIGCF_DEVICEINTERFACE)); // Function class devices. if (hardwareDeviceInfo == INVALID_HANDLE_VALUE) { return FALSE ; } NumberDevices = 4; done = FALSE; deviceInfoData.cbSize = sizeof (SP_DEVICE_INTERFACE_DATA); i=0; while (!done) ...