HIF_DEVICE_USB *device = usb_get_intfdata(intf);structhif_usb_softc*sc=device->sc;HIFDiagWriteCOLDRESET(sc->hif_device);return0; }staticstructusb_device_idhif_usb_id_table[] = {{USB_DEVICE_AND_INTERFACE_INFO(VENDOR_ATHR,0x9378,0xFF,0xFF,0xFF)}, {}/* Terminating entry */}; M...
/*DID_USB_v916_20130116*/staticstructusb_device_id rtw_usb_id_tbl[] ={... #ifdef CONFIG_RTL8723D/*=== Realtek demoboard ===*/{USB_DEVICE_AND_INTERFACE_INFO(USB_VENDER_ID_REALTEK,0xD723,0xff,0xff,0xff), .driver_info = RTL8723D},/*8723DU 1*1*/#endif... {}/*Terminating ...
USB_DEVICE_INTERFACE_CLASS(vend, prod, cl) USB_DEVICE_INTERFACE_PROTOCOL(vend, prod, pr) USB_DEVICE_INTERFACE_NUMBER(vend, prod, num) USB_DEVICE_INFO(cl, sc, pr) USB_INTERFACE_INFO(cl, sc, pr) USB_DEVICE_AND_INTERFACE_INFO(vend, prod, cl, sc, pr) USB_VENDOR_AND_INTERFACE_INFO(ve...
class set by interface descriptordesc->bDeviceSubclass=0;//子类代码desc->bDeviceProtocol=0;//设备使用的协议desc->bMaxPacketSize0=8;//端点0最大包长 control endpoint has 8 byte max packetdesc->idVendor=USB_VID_FTDI;//厂商IDdesc->idProduct=0xFCDC;//产品IDdesc->bcdDevice=0x0100;//设备版本...
As can be seen in the previous directory listing of the USB device and interface, all of the USB specific information is available directly through sysfs (for example, the idVendor, idProduct, and bMaxPower information). One of these files,bConfigurationValue, can be written to in order to...
URS_HOST_INTERFACE_TYPE 定义各种类型的 USB 主机控制器的值。 URS_ROLE 定义USB 双角色控制器支持的角色的值。 USB_CONNECTION_STATUS USB_CONNECTION_STATUS枚举器指示连接到 USB 中心端口上的设备的状态。 USB_CONTROLLER_FLAVOR USB_CONTROLLER_FLAVOR枚举指定 USB 主机控制器的类型。 USB_DEVICE_SPEED USB_DEVIC...
匹配所有设备 if (id == NULL) return NULL; /* It is important to check that id->driver_info is nonzero, since an entry that is all zeroes except for a nonzero id->driver_info is the way to create an entry that indicates that the driver want to examine every device and interface....
getInterface() The following examples show how to use android.hardware.usb.UsbDevice#getInterface() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out ...
从上一次调用 WdfUsbTargetDeviceCreateWithParameters获取的 USB 设备对象的句柄。[out] ConfigDescriptor指向调用方分配的缓冲区的指针,该缓冲区接收 USB_CONFIGURATION_DESCRIPTOR 结构,后跟一个或多个 USB_INTERFACE_DESCRIPTOR 和USB_ENDPOINT_DESCRIPTOR 结构。 此参数是可选的,可以 NULL,在这种情况下,Wdf...
ACCESS_NETWORK_STATE: Used to check if the device is on-line and using which interface. INTERNET: Used to go on-line and download the updated database. WRITE_EXTERNAL_STORAGE: Used to write the database to the SD card. Links Market link:https://market.android.com/details?id=aws.apps....