public class EFW
extends java.lang.Object
构造器和说明 |
---|
EFW(android.content.Context context,
android.hardware.usb.UsbDevice device) |
限定符和类型 | 方法和说明 |
---|---|
void |
close() |
java.lang.String |
get_EFW_SDK_Ver() |
boolean |
getDirection() |
static java.util.List<android.hardware.usb.UsbDevice> |
getEfwDeviceList() |
android.hardware.usb.UsbDevice |
getMyUsbDevice() |
static int |
getNum(android.content.Context context) |
int |
getPosition() |
EFWProperty |
getProperty() |
int |
getSlotNum() |
int |
getState() |
void |
open() |
void |
sendCMD(byte[] cmdBuf,
int size,
boolean bRead,
byte[] readBuf)
send command to efw and read info if necessary, this operation may fail
|
void |
setDirection(boolean bUnidirectional) |
int |
setPosition(int positon) |
public android.hardware.usb.UsbDevice getMyUsbDevice()
public static int getNum(android.content.Context context)
public static java.util.List<android.hardware.usb.UsbDevice> getEfwDeviceList()
public void open()
public void close()
public int setPosition(int positon)
public int getPosition()
public void setDirection(boolean bUnidirectional)
public java.lang.String get_EFW_SDK_Ver()
public int getSlotNum()
public EFWProperty getProperty()
public boolean getDirection()
public int getState()
public void sendCMD(byte[] cmdBuf, int size, boolean bRead, byte[] readBuf)
cmdBuf
- a ByteArray contain cmdsize
- size of cmdBufbRead
- if need to read information from efwreadBuf
- a buffer to save information read from efw, may be null