UsbConstants
USB_ENDPOINT_NUMBER_MASK
Bitmask used for extracting the UsbEndpoint number its address field.
位請(qǐng)求用于提取UsbEndpoint號(hào)碼及其地址字段 Constant Value: 15 (0x0000000f)
USB_TYPE_CLASS
Used to specify that an endpoint zero control request is a class specific request.
用于指定端點(diǎn)零控制請(qǐng)求是類特定的請(qǐng)求 Constant Value: 32 (0x00000020)
USB_TYPE_MASK
Bitmask used for encoding the request type for a control request on endpoint zero.
位請(qǐng)求,用于對(duì)端點(diǎn)零上的控制請(qǐng)求的請(qǐng)求類型進(jìn)行編碼 Constant Value: 96 (0x00000060)
USB_TYPE_RESERVED
Reserved endpoint zero control request type (currently unused).
保留的端點(diǎn)零控制請(qǐng)求類型(當(dāng)前未使用)Constant Value: 96 (0x00000060)
USB_TYPE_STANDARD
Used to specify that an endpoint zero control request is a standard request.
用于指定端點(diǎn)零控制請(qǐng)求是標(biāo)準(zhǔn)請(qǐng)求 Constant Value: 0 (0x00000000)
USB_TYPE_VENDOR
Used to specify that an endpoint zero control request is a vendor specific request.
用于指定端點(diǎn)零控制請(qǐng)求是供應(yīng)商特定的請(qǐng)求 Constant Value: 64 (0x00000040)
UsbInterface.getInterfaceClass() == 對(duì)應(yīng)UsbConstants 已下參數(shù)(個(gè)人猜測(cè)瞎想 不一定準(zhǔn)確)
USB_CLASS_PER_INTERFACE
USB class indicating that the class is determined on a per-interface basis.
USB類,指示基于每個(gè)接口確定類。Constant Value: 0 (0x00000000)
USB_CLASS_AUDIO`
USB class for audio devices.
音頻設(shè)備的USB類 Constant Value: 1 (0x00000001)
USB_CLASS_COMM`
USB class for communication devices.
通信設(shè)備的USB類 Constant Value: 2 (0x00000002)
USB_CLASS_HID`
USB class for human interface devices (for example, mice and keyboards).
用于人機(jī)接口設(shè)備(例如,鼠標(biāo)和鍵盤)的USB類 Constant Value: 3 (0x00000003)
USB_CLASS_PHYSICA
USB class for physical devices.
物理設(shè)備的USB類。Constant Value: 5 (0x00000005)
USB_CLASS_STILL_IMAGE
USB class for still image devices (digital cameras).
用于靜止圖像設(shè)備(數(shù)碼相機(jī))的USB類。 Constant Value: 6 (0x00000006)
USB_CLASS_PRINTER`
USB class for printers.
打印機(jī)的USB類 Constant Value: 7 (0x00000007)
USB_CLASS_MASS_STORAGE
USB class for mass storage devices.
用于大容量存儲(chǔ)設(shè)備的USB類。Constant Value: 8 (0x00000008)
USB_CLASS_HUB
USB class for USB hubs.
USB集線器的USB類 Constant Value: 9 (0x00000009)
USB_CLASS_CDC_DATA`
USB class for CDC devices (communications device class).
CDC設(shè)備的USB類(通信設(shè)備類)。Constant Value: 10 (0x0000000a)
USB_CLASS_CSCID`
USB class for content smart card devices.
內(nèi)容智能卡設(shè)備的USB類 Constant Value: 11 (0x0000000b)
USB_CLASS_CONTENT_SEC
USB class for content security devices.
內(nèi)容安全設(shè)備的USB類 Constant Value: 13 (0x0000000d)
USB_CLASS_VIDEO
USB class for video devices.
視頻設(shè)備的USB類。Constant Value: 14 (0x0000000e)
USB_CLASS_WIRELESS_CONTROLLER
USB class for wireless controller devices.
無(wú)線控制器設(shè)備的USB類。 Constant Value: 224 (0x000000e0)
USB_CLASS_MISC
USB class for wireless miscellaneous devices
無(wú)線雜項(xiàng)設(shè)備的USB類 Constant Value: 239 (0x000000ef)
USB_CLASS_APP_SPEC
Application specific USB class.
應(yīng)用程序特定的USB類 Constant Value: 254 (0x000000fe)
USB_CLASS_VENDOR_SPEC
Vendor specific USB class.
供應(yīng)商特定的USB類 Constant Value: 255 (0x000000ff)
USB_INTERFACE_SUBCLASS_BOOT
Boot subclass for HID devices.
HID設(shè)備的引導(dǎo)子類。Constant Value: 1 (0x00000001)
USB_SUBCLASS_VENDOR_SPEC
Vendor specific USB subclass.
供應(yīng)商特定的USB子類。Constant Value: 255 (0x000000ff)
UsbEndpoint.getType 對(duì)應(yīng)的UsbConstants 有以下4個(gè)
USB_ENDPOINT_XFER_CONTROL
Control endpoint type (endpoint zero)
控制端點(diǎn)類型(端點(diǎn)零)Constant Value: 0 (0x00000000)
USB_ENDPOINT_XFER_ISOC
Isochronous endpoint type (currently not supported)
等時(shí)端點(diǎn)類型(當(dāng)前不支持)Constant Value: 1 (0x00000001)
USB_ENDPOINT_XFER_BULK
Bulk endpoint type
批量端點(diǎn)類型 Constant Value: 2 (0x00000002)
USB_ENDPOINT_XFER_INT
Interrupt endpoint type
中斷端點(diǎn)類型 Constant Value: 3 (0x00000003)
USB_ENDPOINT_XFERTYPE_MASK
Bitmask used for extracting the UsbEndpoint type from its address field.
用于從地址字段中提取UsbEndpoint類型的位請(qǐng)求 Constant Value: 3 (0x00000003)
UsbEndpoint.getDirection()對(duì)應(yīng)的UsbConstants
USB_ENDPOINT_DIR_MASK
Bitmask used for extracting the UsbEndpoint direction from its address field
用于從地址字段中提取UsbEndpoint方向的位請(qǐng)求 Constant Value: 128 (0x00000080
USB_DIR_IN
Used to signify direction of data for a UsbEndpoint is IN (device to host)
用于表示UsbEndpoint的數(shù)據(jù)方向?yàn)镮N(設(shè)備到主機(jī))Constant Value: 128 (0x00000080)
USB_DIR_OUT
Used to signify direction of data for a UsbEndpoint is OUT (host to device)
用于表示UsbEndpoint的數(shù)據(jù)方向的是OUT(主機(jī)到設(shè)備)Constant Value: 0 (0x00000000