Treehopper Java API
io.treehopper.interfaces.Connection Interface Reference

A USB connection to a TreehopperUsb instance. More...

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

Public Member Functions

boolean open ()
 
void close ()
 
String getSerialNumber ()
 
String getName ()
 
void sendDataPinConfigChannel (byte[] data)
 
void sendDataPeripheralChannel (byte[] data)
 
byte [] readPeripheralResponsePacket (int numBytesToRead)
 
void setPinReportListener (TreehopperUsb board)
 

Detailed Description

A USB connection to a TreehopperUsb instance.

Member Function Documentation

◆ close()

void io.treehopper.interfaces.Connection.close ( )

◆ getName()

String io.treehopper.interfaces.Connection.getName ( )

◆ getSerialNumber()

String io.treehopper.interfaces.Connection.getSerialNumber ( )

◆ open()

boolean io.treehopper.interfaces.Connection.open ( )

◆ readPeripheralResponsePacket()

byte [] io.treehopper.interfaces.Connection.readPeripheralResponsePacket ( int  numBytesToRead)

◆ sendDataPeripheralChannel()

void io.treehopper.interfaces.Connection.sendDataPeripheralChannel ( byte []  data)

◆ sendDataPinConfigChannel()

void io.treehopper.interfaces.Connection.sendDataPinConfigChannel ( byte []  data)

◆ setPinReportListener()

void io.treehopper.interfaces.Connection.setPinReportListener ( TreehopperUsb  board)

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