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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? device.java

?? JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB JAVA 訪問USB
?? JAVA
字號:
/* * Java USB Library * Copyright (C) 2000 by David Brownell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package usb.core;import java.io.IOException;import java.io.Serializable;/** * Provides access to a USB device. * * <p> To use a device, first make sure that * you can use its current configuration. * Then get the interfaces for that configuration and claim the ones * you want to use.  Then just use the endpoints from those interfaces. * You might want to switch some interfaces * to their alternate settings before you start using endpoints. * * <p> To provide behaviors specific to a device, or type of device, * wrap one of these Device objects in a class that understands how * to perform device-specific operations. * * <hr> * * <p> Except for a root hub, or when interrupted by disconnection, * <code><em>dev</em>.getHub().getChild(<em>dev</em>.getHubPortNum()</code> * is equal to <code><em>dev</em></code>.  However, it is good to avoid * assuming that disconnects don't happen; they can be caused just by * surge currents through hubs. * Somewhat related:  the best available view of hub parent/child * relationships may not always match physical reality because of an * inherent scheduling lag, and sometimes event reordering, that also * affects {@link USBListener}. * * @see Bus#getDevice * @see USBListener * @see #getHub * @see #getChild * * @author David Brownell * @version $Id: Device.java,v 1.26 2002/04/19 21:53:07 dbrownell Exp $ */abstract public class Device implements java.io.Serializable{    /** @serial handle to device implementation */    private DeviceSPI		spi;    /** @serial The bus we're connected to */    private Bus			bus;    /** @serial Bus address for this device connection */    private int			address;    /** Used when deserializing. */    protected Device () { }    /**     * Used by implementations of {@link Host} and {@link Bus}.     */    protected Device (DeviceSPI spi, Bus bus, int address)    {	// we are a "smart proxy" or a real implementation	if (spi != null)	    this.spi = spi;	else	    this.spi = (DeviceSPI) this;	this.bus = bus;	this.address = address;    }    protected DeviceSPI getSPI () { return spi; }    /**     * Device status bit that reports the device is self powered.     * You can't set or clear this feature.     */    public static final int DEVICE_SELFPOWERED = 0;    /**     * Device status bit used to enable and disable remote     * wakeup; this feature may be set and cleared.     */    public static final int DEVICE_REMOTE_WAKEUP = 1;    /**     * Returns the bus with which the device is associated.     */    public final Bus getBus () { return bus; }    /**     * Returns port identifier associated with this device.     */    public final String getPortIdentifier ()    {	try { return new PortIdentifier (this).toString (); }	catch (IOException x) { return null; }    }    /**     * Returns address assigned to this device on its USB {@link Bus}.     * Addresses are established when the device is connected, get reused     * after devices disconnect, and don't correspond to anything that     * users can affect.  In short, avoid using these.     *     * @see #getPortIdentifier     * @see Bus#getDevice     */// FIXME:  this  method should just go away// "avoid using these" is easier if it's not there...    public final int getAddress () { return address; }    /**     * Returns the hub to which this device is connected, or null if     * this device is disconnected or is the root hub for its bus.     */    abstract public Device getHub ();    /**     * Returns the number of the hub port to which this device is connected.     */    abstract public int getHubPortNum ();    /**     * Returns the speed of the connection the device is using.      * The return value is either "high", "full", or  "low"; or else null.     * Null is used for root hubs, or indicates some error prevented     * determining the speed being used for the device's hub port.     */    abstract public String getSpeed ();    /**     * Returns the number of ports in this hub; or zero.     * This should return the same value as {@link Hub#getNumPorts}.     */    abstract public int getNumPorts ();        /**     * Returns the device descriptor.     */    abstract public DeviceDescriptor getDeviceDescriptor ();    /**     * Returns the current device configuration's descriptor.     */    abstract public Configuration getConfiguration ()    throws IOException;    // the rest are less likely to be able to use local caches    /**     * Returns the device connected to this hub's specified port     * (origin one), or null.     */    abstract public Device getChild (int port)    throws IOException;    /**     * Returns the specified configuration descriptor.     */    abstract public Configuration getConfiguration (int index)    throws IOException;//    /**//     * Assigns a device configuration, which must be one of those//     * supported by this device.//     *///    public void setConfiguration (int index)//    throws IOException;    /**     * Returns the string index with the specified ID and language,     * or null if there is no such string.      * Zero as a language ID means to pick a default.     */    public String getString (int id, int language)    throws IOException    {	return ControlMessage.getString (this, (byte) id, language);    }    /**     * Sends a control message to the device, optionally sending or     * receiving associated data.  Control messages may be used     * whether or not you have claimed some interface.      *     * @exception USBException if exchanging a control message     *	with an interface or endpoint some other driver has claimed     */    public void control (ControlMessage msg)    throws IOException    {	byte data [];	if ((msg.getRequestType () & msg.DIR_TO_HOST) == msg.DIR_TO_HOST)	    msg.setBuffer (spi.readControl (		    msg.getRequestType (), msg.getRequest (),		    msg.getValue (), msg.getIndex (), msg.getLength ()));	else	    spi.writeControl (msg.getRequestType (), msg.getRequest (),		    msg.getValue (), msg.getIndex (), msg.getBuffer ());    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日本乱大交xxxxx| 日韩理论在线观看| 一区二区三区欧美日| 免费在线成人网| 91在线视频官网| 欧美sm美女调教| 亚洲一区二区不卡免费| 成人深夜在线观看| 2021中文字幕一区亚洲| 亚洲国产美国国产综合一区二区| 丰满亚洲少妇av| 精品三级在线观看| 视频一区视频二区中文| 色婷婷综合久久久久中文一区二区| 日韩欧美一区电影| 日精品一区二区| 欧美三级日韩三级国产三级| 国产精品不卡视频| 成人综合婷婷国产精品久久蜜臀| 日韩视频免费直播| 肉丝袜脚交视频一区二区| 色婷婷精品大在线视频| 亚洲欧洲精品一区二区精品久久久| 极品少妇一区二区| 欧美不卡123| 久久精品国产在热久久| 69久久99精品久久久久婷婷 | 日韩午夜三级在线| 亚洲一区二区三区小说| av电影一区二区| 国产精品电影院| 99久久婷婷国产综合精品| 国产精品美女久久久久久久| 国产成人免费视| 国产日韩精品视频一区| 国产精品乡下勾搭老头1| 欧美成人官网二区| 国产乱子伦视频一区二区三区 | 亚洲欧洲色图综合| 成人福利视频网站| 国产精品国产三级国产| 91啪在线观看| 亚洲综合免费观看高清完整版| 91久久精品一区二区二区| 一片黄亚洲嫩模| 在线看日本不卡| 日韩高清国产一区在线| 欧美成人精品3d动漫h| 久久国产福利国产秒拍| 久久久久久久久久电影| 成人黄页毛片网站| 依依成人精品视频| 日韩一区二区免费在线观看| 国产精品影视在线| 亚洲欧洲另类国产综合| 在线免费不卡电影| 全国精品久久少妇| 久久久99精品免费观看不卡| aaa欧美色吧激情视频| 亚洲在线视频网站| 欧美成人福利视频| 不卡在线观看av| 亚洲大片一区二区三区| 精品伦理精品一区| 色婷婷综合久久久中文字幕| 日韩精品一区第一页| 久久精品免视看| 欧美三片在线视频观看| 久久99久久99小草精品免视看| 欧美国产日韩一二三区| 欧美日韩激情一区| 成人一区二区三区| 五月天网站亚洲| 国产精品水嫩水嫩| 欧美精品久久99久久在免费线| 国产馆精品极品| 丝袜脚交一区二区| 国产精品的网站| 精品乱人伦一区二区三区| 在线免费观看视频一区| 韩国女主播成人在线| 一区二区三区毛片| 国产视频视频一区| 91精品国产色综合久久ai换脸 | 亚洲欧洲综合另类| 亚洲精品一区二区三区福利| 欧美性感一类影片在线播放| 国产成人8x视频一区二区| 日韩—二三区免费观看av| 国产精品久久久久影院老司| 欧美大片顶级少妇| 欧美理论片在线| 91高清在线观看| av爱爱亚洲一区| 国产乱码精品一区二区三| 五月天亚洲婷婷| 亚洲一区二区三区免费视频| 亚洲欧洲精品成人久久奇米网| 日韩女优毛片在线| 欧美日韩国产高清一区二区三区 | 一区二区三区中文免费| 中文一区二区在线观看| 精品粉嫩aⅴ一区二区三区四区| 欧美亚洲高清一区| 日本韩国欧美国产| 99国产精品国产精品毛片| 国产不卡视频在线播放| 国产乱人伦精品一区二区在线观看| 日韩二区在线观看| 婷婷综合久久一区二区三区| 亚洲第一狼人社区| 亚洲国产精品一区二区久久| 亚洲精选免费视频| 亚洲精品五月天| 一区二区三区色| 亚洲一区二区在线视频| 一级特黄大欧美久久久| 亚洲免费伊人电影| 一区二区在线观看不卡| 亚洲精品成人a在线观看| 国产精品福利影院| 亚洲欧美色图小说| 亚洲一区二区三区在线看| 亚洲综合一区在线| 亚洲成a人在线观看| 日韩精品免费专区| 久久se精品一区精品二区| 国模冰冰炮一区二区| 激情成人综合网| 成人精品高清在线| 99精品久久只有精品| 日本精品一级二级| 欧美肥妇free| 国产人成亚洲第一网站在线播放 | av亚洲精华国产精华| 成人黄色小视频| 欧美午夜影院一区| 欧美xxxxxxxx| 中文字幕综合网| 亚洲国产中文字幕在线视频综合 | 一区2区3区在线看| 蜜臀av国产精品久久久久| 国产精品18久久久久久久久 | 亚洲免费av高清| 视频一区二区三区入口| 国内欧美视频一区二区| 99综合电影在线视频| 欧美日韩色一区| 久久久久久久国产精品影院| 最近中文字幕一区二区三区| 天天av天天翘天天综合网| 激情小说亚洲一区| 一本到不卡精品视频在线观看| 欧美丰满一区二区免费视频| 国产午夜精品福利| 亚洲成av人在线观看| 国产成人av一区二区三区在线观看| 在线中文字幕一区二区| 久久久久久麻豆| 亚洲一区视频在线| 国产一区二区剧情av在线| 日本韩国精品一区二区在线观看| 精品久久久久久久久久久久久久久| 日韩一区中文字幕| 久久国产精品99精品国产| 欧洲中文字幕精品| 亚洲国产成人午夜在线一区 | 成人av在线资源网站| 欧美一区二区视频在线观看2022| 中文字幕一区二区三区四区不卡| 午夜精品久久久久久久久久| 99久久国产综合精品麻豆| 日韩精品一区二区三区视频在线观看| 亚洲日韩欧美一区二区在线| 久久成人久久爱| 欧美日韩成人一区二区| 亚洲欧美日韩国产中文在线| 狠狠色狠狠色综合系列| 欧美日韩成人综合天天影院| 成人免费小视频| 国产成人免费9x9x人网站视频| 正在播放亚洲一区| 亚洲精品国产精品乱码不99| 成人av一区二区三区| 日韩欧美区一区二| 日韩福利视频导航| 欧美日韩夫妻久久| 亚洲电影一区二区三区| 色综合一区二区三区| 综合久久一区二区三区| 成人app软件下载大全免费| 精品国产乱码久久久久久免费 | 亚洲欧美日韩国产中文在线| 国产v日产∨综合v精品视频| 精品国产一区二区三区久久影院 | 日韩影院在线观看| 欧美精品1区2区3区| 亚洲国产cao| 欧美精品久久天天躁| 日韩中文字幕区一区有砖一区 |