Treehopper Java API
io.treehopper.UsbConnection Class Reference

Android Connection implementation. More...

Inheritance diagram for io.treehopper.UsbConnection:
io.treehopper.interfaces.Connection io.treehopper.interfaces.Connection

Public Member Functions

 UsbConnection (UsbDevice device, Context appContext)
 
 UsbConnection (UsbDevice device, UsbManager manager)
 
boolean open ()
 
boolean isConnected ()
 
void close ()
 
String getSerialNumber ()
 
String getName ()
 
void sendDataPinConfigChannel (byte[] data)
 
void sendDataPeripheralChannel (byte[] data)
 
byte [] readPeripheralResponsePacket (int numBytesToRead)
 
void setPinReportListener (TreehopperUsb board)
 
Device getDevice ()
 
 UsbConnection (Device device)
 
boolean open ()
 
void sendDataPinConfigChannel (byte[] data)
 
void sendDataPeripheralChannel (byte[] data)
 
byte [] readPeripheralResponsePacket (int numBytesToRead)
 
boolean isConnected ()
 
void close ()
 
String getSerialNumber ()
 
String getName ()
 
void setPinReportListener (TreehopperUsb board)
 
void setSerialNumber (String serialNumber)
 
void setName (String name)
 

Detailed Description

Android Connection implementation.

javax-usb Connection

Constructor & Destructor Documentation

◆ UsbConnection() [1/3]

io.treehopper.UsbConnection.UsbConnection ( UsbDevice  device,
Context  appContext 
)

◆ UsbConnection() [2/3]

io.treehopper.UsbConnection.UsbConnection ( UsbDevice  device,
UsbManager  manager 
)

◆ UsbConnection() [3/3]

io.treehopper.UsbConnection.UsbConnection ( Device  device)

Member Function Documentation

◆ close() [1/2]

void io.treehopper.UsbConnection.close ( )

◆ close() [2/2]

void io.treehopper.UsbConnection.close ( )

◆ getDevice()

Device io.treehopper.UsbConnection.getDevice ( )

◆ getName() [1/2]

String io.treehopper.UsbConnection.getName ( )

◆ getName() [2/2]

String io.treehopper.UsbConnection.getName ( )

◆ getSerialNumber() [1/2]

String io.treehopper.UsbConnection.getSerialNumber ( )

◆ getSerialNumber() [2/2]

String io.treehopper.UsbConnection.getSerialNumber ( )

◆ isConnected() [1/2]

boolean io.treehopper.UsbConnection.isConnected ( )

◆ isConnected() [2/2]

boolean io.treehopper.UsbConnection.isConnected ( )

◆ open() [1/2]

boolean io.treehopper.UsbConnection.open ( )

◆ open() [2/2]

boolean io.treehopper.UsbConnection.open ( )

◆ readPeripheralResponsePacket() [1/2]

byte [] io.treehopper.UsbConnection.readPeripheralResponsePacket ( int  numBytesToRead)

◆ readPeripheralResponsePacket() [2/2]

byte [] io.treehopper.UsbConnection.readPeripheralResponsePacket ( int  numBytesToRead)

◆ sendDataPeripheralChannel() [1/2]

void io.treehopper.UsbConnection.sendDataPeripheralChannel ( byte []  data)

◆ sendDataPeripheralChannel() [2/2]

void io.treehopper.UsbConnection.sendDataPeripheralChannel ( byte []  data)

◆ sendDataPinConfigChannel() [1/2]

void io.treehopper.UsbConnection.sendDataPinConfigChannel ( byte []  data)

◆ sendDataPinConfigChannel() [2/2]

void io.treehopper.UsbConnection.sendDataPinConfigChannel ( byte []  data)

◆ setName()

void io.treehopper.UsbConnection.setName ( String  name)

◆ setPinReportListener() [1/2]

void io.treehopper.UsbConnection.setPinReportListener ( TreehopperUsb  board)

◆ setPinReportListener() [2/2]

void io.treehopper.UsbConnection.setPinReportListener ( TreehopperUsb  board)

◆ setSerialNumber()

void io.treehopper.UsbConnection.setSerialNumber ( String  serialNumber)

The documentation for this class was generated from the following file: