public class UsbBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static UsbDeviceConnection |
mConnection |
byte[] |
printf1 |
static int |
USB_DIR_IN |
static int |
USB_DIR_OUT |
static int |
USB_ENDPOINT_XFER_BULK |
static int |
USB_ENDPOINT_XFER_INT |
| Constructor and Description |
|---|
UsbBase(UsbManager mManager,
UsbDevice mDev) |
| Modifier and Type | Method and Description |
|---|---|
int |
close() |
java.lang.String |
getProductDescriptor() |
int |
getProductId() |
int |
getVendorId() |
int |
open() |
java.lang.String |
printf_fun() |
int |
scsi_cmd(TPCCmd cmd,
byte[] sendBuf,
byte[] receiveBuf,
int[] receiveBufLen) |
int |
scsi_recv_1(byte[] receiveBuf,
int[] receiveBufLen) |
static int |
scsi_recv_data_1(byte[] recviveBuf,
int[] receiveLen) |
static int |
scsi_recv_data_2(byte[] recviveBuf,
int[] receiveLen) |
int |
scsi_recv_Image(byte[] receiveBuf,
int len,
int offset) |
int |
scsi_recv(TPCCmd cmd,
byte[] receiveBuf,
int[] receiveBufLen) |
int |
scsi_send_1(byte[] sendBuf,
int sendBufLen) |
static int |
scsi_send_data(byte[] cmd,
byte[] sendBuf,
int sendBufLen) |
int |
scsi_send(TPCCmd cmd,
byte[] sendBuf,
int sendBufLen) |
int |
synoDownData(byte[] sendBuf,
int sendBufLen) |
int |
synoGetData(byte[] DataBuf,
int[] getLen) |
public static UsbDeviceConnection mConnection
public static final int USB_DIR_OUT
public static final int USB_ENDPOINT_XFER_BULK
public static final int USB_ENDPOINT_XFER_INT
public static final int USB_DIR_IN
public byte[] printf1
public java.lang.String getProductDescriptor()
public int close()
public int open()
public int getVendorId()
public int getProductId()
public int synoDownData(byte[] sendBuf,
int sendBufLen)
public static int scsi_send_data(byte[] cmd,
byte[] sendBuf,
int sendBufLen)
public int scsi_send_1(byte[] sendBuf,
int sendBufLen)
public int synoGetData(byte[] DataBuf,
int[] getLen)
public static int scsi_recv_data_1(byte[] recviveBuf,
int[] receiveLen)
public static int scsi_recv_data_2(byte[] recviveBuf,
int[] receiveLen)
public int scsi_recv_1(byte[] receiveBuf,
int[] receiveBufLen)
public int scsi_recv_Image(byte[] receiveBuf,
int len,
int offset)
public java.lang.String printf_fun()
public int scsi_send(TPCCmd cmd, byte[] sendBuf, int sendBufLen)
public int scsi_recv(TPCCmd cmd, byte[] receiveBuf, int[] receiveBufLen)
public int scsi_cmd(TPCCmd cmd, byte[] sendBuf, byte[] receiveBuf, int[] receiveBufLen)