public class UsbCdcConnection
extends java.lang.Object
Constructor and Description |
---|
UsbCdcConnection(Context context) |
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Closes devices
|
UsbDeviceConnection |
getConnection()
Gets UsbDeviceConnection for CDC
|
UsbDeviceConnection |
getConnection(int ch)
Gets UsbDeviceConnection for CDC
|
UsbEndpoint |
getEndpointIn()
Gets IN UsbEndpoint for CDC
|
UsbEndpoint |
getEndpointIn(int ch)
Gets IN UsbEndpoint for CDC
|
UsbEndpoint |
getEndpointOut()
Gets OUT UsbEndpoint for CDC
|
UsbEndpoint |
getEndpointOut(int ch)
Gets OUT UsbEndpoint for CDC
|
boolean |
open(UsbVidPid ids)
Open first device with VID and PID
|
boolean |
open(UsbVidPid ids,
int ch)
Open channel-th device with VID and PID
|
public boolean open(UsbVidPid ids)
ids
- vid and pidpublic boolean open(UsbVidPid ids, int ch)
ids
- vid and pidch
- channelpublic boolean close()
public UsbDeviceConnection getConnection()
public UsbDeviceConnection getConnection(int ch)
ch
- channelpublic UsbEndpoint getEndpointIn()
public UsbEndpoint getEndpointIn(int ch)
ch
- channelpublic UsbEndpoint getEndpointOut()
public UsbEndpoint getEndpointOut(int ch)
ch
- channel