usbhostcontrollerapi.java

来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 39 行

JAVA
39
字号
/*
 * $Id: USBHostControllerAPI.java,v 1.1 2003/11/25 11:41:20 epr Exp $
 */
package org.jnode.driver.usb;

import org.jnode.driver.DeviceAPI;

/**
 * @author Ewout Prangsma (epr@users.sourceforge.net)
 */
public interface USBHostControllerAPI extends DeviceAPI {

	/**
	 * Create a default control pipe for a given device.
	 * @param device
	 * @return The created pipe.
	 */
	public USBControlPipe createDefaultControlPipe(USBDevice device);
	
	/**
	 * Create a new pipe for a given endpoint.
	 * Depending on the type of endpoint, this method will return an instance
	 * of USBControlType for control type endpoints and an instance of
	 * USBDataPipe for other endpoint transfer types.
	 * 
	 * @param endPoint
	 * @return The new pipe.
	 * @see USBControlPipe
	 * @see USBDataPipe
	 */
	public USBPipe createPipe(USBEndPoint endPoint);
	
	/**
	 * Gets the API to control the root HUB.
	 */
	public USBHubAPI getRootHUB();
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?