亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? usbcontrolirpimp.java

?? usb control test by java ,very userfu
?? JAVA
字號:
package com.ibm.jusb;/** * Copyright (c) 1999 - 2001, International Business Machines Corporation. * All Rights Reserved. * * This software is provided and licensed under the terms and conditions * of the Common Public License: * http://oss.software.ibm.com/developerworks/opensource/license-cpl.html */import java.util.*;import javax.usb.*;import javax.usb.util.*;import javax.usb.event.*;import com.ibm.jusb.os.*;import com.ibm.jusb.util.*;/** * UsbControlIrp implementation. * <p> * This is the same as UsbIrpImp, except this contains Control-specific * setup packet information. * <p> * This does <i>not</i> extend javax.usb.util.DefaultUsbControlIrp. * @author Dan Streetman */public class UsbControlIrpImp extends UsbIrpImp implements UsbControlIrp{	/**	 * Constructor.	 * @param bmRequestType The bmRequestType.	 * @param bRequest The bRequest.	 * @param wValue The wValue.	 * @param wIndex The wIndex.	 */	public UsbControlIrpImp(byte bmRequestType, byte bRequest, short wValue, short wIndex)	{		super();		this.bmRequestType = bmRequestType;		this.bRequest = bRequest;		this.wValue = wValue;		this.wIndex = wIndex;	}	/**	 * Constructor.	 * @param controlUsbIrp The UsbControlIrp this should wrap.	 */	public UsbControlIrpImp(UsbControlIrp controlUsbIrp)	{		super(controlUsbIrp);		this.bmRequestType = controlUsbIrp.bmRequestType();		this.bRequest = controlUsbIrp.bRequest();		this.wValue = controlUsbIrp.wValue();		this.wIndex = controlUsbIrp.wIndex();	}	/**	 * Get the bmRequestType.	 * @return The bmRequestType.	 */	public byte bmRequestType() { return bmRequestType; }	/**	 * Get the bRequest.	 * @return The bRequest.	 */	public byte bRequest() { return bRequest; }	/**	 * Get the wValue.	 * @return The wValue.	 */	public short wValue() { return wValue; }	/**	 * Get the wIndex.	 * @return The wIndex.	 */	public short wIndex() { return wIndex; }	/**	 * Get the wLength.	 * @return The wLength.	 */	public short wLength() { return (short)getLength(); }	/**	 * Complete this submission.	 * <p>	 * If this is a successful {@link #isSetConfiguration() set configuration} request,	 * this will {@link com.ibm.jusb.UsbDeviceImp#setActiveUsbConfigurationNumber(byte) set the active configuration number}.	 * If this is a successful {@link #isSetInterface() set interface} request,	 * this will {@link com.ibm.jusb.UsbInterfaceImp#setActiveSettingNumber(byte) set the active setting number}.	 * Then, it will perform the {@link com.ibm.jusb.UsbIrpImp#complete() superclass's complete}.	 */	public void complete()	{		if (!isUsbException()) {			if (isSetConfiguration()) {				try { getUsbDeviceImp().setActiveUsbConfigurationNumber((byte)wValue()); }				catch ( Exception e ) { /* FIXME - log? */ }			} else if (isSetInterface()) {				try { getUsbDeviceImp().getActiveUsbConfigurationImp().getUsbInterfaceImp((byte)wIndex()).setActiveSettingNumber((byte)wValue()); }				catch ( Exception e ) { /* FIXME - log? */ }			}		}		super.complete();	}	/**	 * If this is a SET_CONFIGURATION UsbIrp.	 * @return If this is a SET_CONFIGURATION UsbIrp.	 */	public boolean isSetConfiguration()	{		return (bmRequestType() == REQUESTTYPE_SET_CONFIGURATION) && (bRequest() == UsbConst.REQUEST_SET_CONFIGURATION);	}	/**	 * If this is a SET_INTERFACE UsbIrp.	 * @return If this is a SET_INTERFACE UsbIrp.	 */	public boolean isSetInterface()	{		return (bmRequestType() == REQUESTTYPE_SET_INTERFACE) && (bRequest() == UsbConst.REQUEST_SET_INTERFACE);	}	/**	 * Get the setup packet (Control header).	 * <p>	 * This creates a new byte[] constructed using the Control-specific methods	 * in this class.  See the USB 1.1 specification section 9.3; specifically,	 * the setup packet is constructed as such:	 * <ol>	 * <li>{@link #bmRequestType() bmRequestType}</li>	 * <li>{@link #bRequest() bRequest}</li>	 * <li>{@link #wValue() wValue}'s LSB (Least Significant Byte)</li>	 * <li>{@link #wValue() wValue}'s MSB (Most Significant Byte)</li>	 * <li>{@link #wIndex() wIndex}'s LSB</li>	 * <li>{@link #wIndex() wIndex}'s MSB</li>	 * <li>{@link #wLength() wLength}'s LSB</li>	 * <li>{@link #wLength() wLength}'s MSB</li>	 * </ol>	 * @return The setup packet (Control header).	 */	public byte[] getSetupPacket()	{		byte[] setupPacket = new byte[8];		setupPacket[0] = bmRequestType();		setupPacket[1] = bRequest();		setupPacket[2] = (byte)wValue();		setupPacket[3] = (byte)(wValue() >> 8);		setupPacket[4] = (byte)wIndex();		setupPacket[5] = (byte)(wIndex() >> 8);		setupPacket[6] = (byte)wLength();		setupPacket[7] = (byte)(wLength() >> 8);		return setupPacket;	}	/**	 * Get the UsbDeviceImp.	 * @return The UsbDeviceImp.	 */	public UsbDeviceImp getUsbDeviceImp() { return usbDeviceImp; }	/**	 * Set the UsbDeviceImp.	 * @param device The UsbDeviceImp.	 */	public void setUsbDeviceImp(UsbDeviceImp device) { usbDeviceImp = device; }	/**	 * Check the specified UsbControlIrp.	 * <p>	 * This may be used to check the validity of an UsbControlIrp.	 * This will throw an IllegalArgumentException if the UsbControlIrp	 * does not behave as specified in the UsbControlIrp interface documentation.	 * This will throw an UsbException if the UsbControlIrp is in a state not	 * ready for submission, such as being complete or having a UsbException.	 * @exception IllegalArgumentException If the UsbControlIrp is not valid.	 * @exception UsbException If the UsbControlIrp is not ready for submission.	 */	public static void checkUsbControlIrp(UsbControlIrp irp) throws IllegalArgumentException,UsbException	{		UsbIrpImp.checkUsbIrp(irp);		/* FIXME - check the setup packet fields here? */	}	protected byte bmRequestType = 0x00;	protected byte bRequest = 0x00;	protected short wValue = 0x0000;	protected short wIndex = 0x0000;	protected UsbDeviceImp usbDeviceImp = null;	private static final byte REQUESTTYPE_SET_CONFIGURATION =		UsbConst.REQUESTTYPE_DIRECTION_OUT | UsbConst.REQUESTTYPE_TYPE_STANDARD | UsbConst.REQUESTTYPE_RECIPIENT_DEVICE;	private static final byte REQUESTTYPE_SET_INTERFACE =		UsbConst.REQUESTTYPE_DIRECTION_OUT | UsbConst.REQUESTTYPE_TYPE_STANDARD | UsbConst.REQUESTTYPE_RECIPIENT_INTERFACE;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本不卡123| 91丨porny丨国产入口| 韩国精品免费视频| 在线免费av一区| 精品国产乱码久久久久久浪潮| 日韩毛片高清在线播放| 久久精品国产久精国产| 欧亚一区二区三区| 国产精品午夜免费| 国内精品久久久久影院薰衣草| 欧美性做爰猛烈叫床潮| 中文字幕欧美国产| 激情五月播播久久久精品| 欧美日韩aaa| 一区二区三区四区视频精品免费| 国产一区二区三区观看| 欧美一级片在线观看| 一区二区三区四区国产精品| 国产大陆亚洲精品国产| 欧美va在线播放| 日韩电影免费在线| 欧美三级乱人伦电影| 亚洲乱码一区二区三区在线观看| 国产麻豆视频精品| 日韩精品一区二区三区中文精品| 午夜激情一区二区三区| 在线免费观看日本一区| 亚洲免费观看在线视频| 丁香桃色午夜亚洲一区二区三区| 日韩精品中文字幕在线不卡尤物| 日产国产欧美视频一区精品| 欧美喷潮久久久xxxxx| 亚洲国产精品综合小说图片区| 成人国产在线观看| 国产精品欧美综合在线| eeuss鲁片一区二区三区在线观看| 国产亚洲欧美日韩日本| 国产激情一区二区三区| 国产日韩欧美精品一区| 国产一区二区三区美女| 久久精品夜夜夜夜久久| 国产精品99久久久久久宅男| 国产亚洲综合av| 丰满岳乱妇一区二区三区| 欧美国产乱子伦| av在线综合网| 亚洲福利视频导航| 337p亚洲精品色噜噜噜| 男女男精品网站| 精品女同一区二区| 成人午夜短视频| 亚洲视频免费观看| 欧美日韩成人在线| 国产一区二区三区香蕉| 亚洲国产高清在线| 色婷婷久久综合| 亚洲成a人v欧美综合天堂下载| 在线播放国产精品二区一二区四区| 日本aⅴ亚洲精品中文乱码| 精品国免费一区二区三区| 国产99久久精品| 一区二区三区欧美在线观看| 日韩免费观看高清完整版| 国产精品1区2区| 一区二区欧美精品| 日韩视频一区在线观看| 成人福利视频网站| 亚洲成人福利片| 337p粉嫩大胆噜噜噜噜噜91av| www.欧美色图| 日韩av电影一区| 国产精品成人一区二区三区夜夜夜| 欧美色中文字幕| 狠狠色丁香久久婷婷综| 九色综合狠狠综合久久| 国产精品国产自产拍高清av王其| 精品视频在线看| 成人av资源站| 免费久久99精品国产| 亚洲婷婷国产精品电影人久久| 91精品国产一区二区三区香蕉| 成人黄色大片在线观看| 日本午夜精品一区二区三区电影| 国产精品传媒在线| 欧美xxx久久| 欧洲一区二区av| 国产成人av一区| 捆绑调教一区二区三区| 一区二区三区四区视频精品免费 | 天堂蜜桃91精品| 欧美经典一区二区三区| 3atv在线一区二区三区| 91麻豆免费看| 国产99久久久精品| 久久99精品久久久久婷婷| 亚洲一区av在线| 综合久久综合久久| 久久久亚洲精品一区二区三区| 在线视频你懂得一区| 成人av午夜影院| 国内外成人在线| 免费久久99精品国产| 亚洲第一电影网| 亚洲卡通欧美制服中文| 国产精品嫩草99a| wwwwww.欧美系列| 日韩三级电影网址| 欧美日韩成人综合天天影院 | 视频一区中文字幕国产| 中文字幕乱码日本亚洲一区二区| 91精品国产一区二区人妖| 欧美午夜精品一区| 色偷偷久久人人79超碰人人澡 | 日韩不卡一区二区| 午夜精品久久一牛影视| 亚洲一区二区三区四区在线免费观看| 国产拍揄自揄精品视频麻豆| 日韩欧美中文字幕精品| 91麻豆精品国产91久久久使用方法 | 九色综合狠狠综合久久| 免费精品视频在线| 久久er99精品| 国产综合色视频| 国产精品一区二区在线播放| 国产精品综合av一区二区国产馆| 激情图片小说一区| 国产精品资源网站| 成人综合日日夜夜| 91日韩在线专区| 欧美午夜在线观看| 欧美一区二区久久久| 日韩视频一区在线观看| 337p粉嫩大胆色噜噜噜噜亚洲 | 91在线云播放| 91国产丝袜在线播放| 欧美三区在线视频| 宅男在线国产精品| 久久久久久电影| 国产精品久久久久久久裸模 | 久久无码av三级| 欧美激情综合在线| 亚洲美女免费视频| 日韩精品视频网站| 懂色av中文字幕一区二区三区| 91视频国产观看| 欧美片在线播放| 久久久91精品国产一区二区精品 | 国产宾馆实践打屁股91| 91啦中文在线观看| 91精品国产欧美日韩| 久久久777精品电影网影网 | 亚洲高清一区二区三区| 日韩国产一二三区| 成人一区二区视频| 欧美日韩国产一级片| 久久久久久日产精品| 亚洲综合色丁香婷婷六月图片| 日本不卡高清视频| 99久久久无码国产精品| 欧美老肥妇做.爰bbww视频| 久久精品一区二区三区不卡牛牛| 亚洲精品视频在线| 精品亚洲porn| 欧美影院精品一区| 中文字幕精品一区二区三区精品| 一区二区三区高清不卡| 国内精品在线播放| 欧美日韩高清一区| 国产精品免费免费| 老司机免费视频一区二区三区| 91啪在线观看| 久久精品欧美一区二区三区麻豆| 亚洲午夜久久久久| 成人黄色综合网站| 欧美精品一区二区三区视频| 亚洲国产精品精华液网站| 久久精品国产亚洲高清剧情介绍| 一本色道亚洲精品aⅴ| 精品福利一区二区三区| 偷拍一区二区三区四区| 波多野洁衣一区| 久久亚洲免费视频| 日韩高清在线一区| 欧美撒尿777hd撒尿| 国产精品色眯眯| 国产乱码精品一区二区三区五月婷| 精品视频一区三区九区| 亚洲人午夜精品天堂一二香蕉| 国产美女精品在线| 精品免费国产二区三区| 香蕉成人伊视频在线观看| 色婷婷狠狠综合| 国产精品久久久久四虎| 成人一区二区三区中文字幕| 精品盗摄一区二区三区| 理论片日本一区| 日韩欧美久久久| 久久99精品久久久久| 日韩一级免费观看| 奇米综合一区二区三区精品视频|