android.hardware.usb
Class UsbDeviceConnection
java.lang.Object
android.hardware.usb.UsbDeviceConnection
public class UsbDeviceConnection
- extends Object
Method Summary |
int |
bulkTransfer(UsbEndpoint endpoint,
byte[] buffer,
int length,
int timeout)
|
boolean |
claimInterface(UsbInterface intf,
boolean force)
|
void |
close()
|
int |
controlTransfer(int requestType,
int request,
int value,
int index,
byte[] buffer,
int length,
int timeout)
|
int |
getFileDescriptor()
|
byte[] |
getRawDescriptors()
|
String |
getSerial()
|
boolean |
releaseInterface(UsbInterface intf)
|
UsbRequest |
requestWait()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
close
public void close()
getFileDescriptor
public int getFileDescriptor()
getRawDescriptors
public byte[] getRawDescriptors()
claimInterface
public boolean claimInterface(UsbInterface intf,
boolean force)
releaseInterface
public boolean releaseInterface(UsbInterface intf)
controlTransfer
public int controlTransfer(int requestType,
int request,
int value,
int index,
byte[] buffer,
int length,
int timeout)
bulkTransfer
public int bulkTransfer(UsbEndpoint endpoint,
byte[] buffer,
int length,
int timeout)
requestWait
public UsbRequest requestWait()
getSerial
public String getSerial()
Copyright © 2008-2012. All Rights Reserved.