Treehopper C++ API
UsbConnection Class Referenceabstract

#include <UsbConnection.h>

Inheritance diagram for UsbConnection:
LibUsbConnection MacUsbConnection WinUsbConnection

Public Member Functions

virtual ~UsbConnection ()=default
 
virtual bool open ()=0
 
virtual void close ()=0
 
virtual wstring serialNumber ()=0
 
virtual wstring name ()=0
 
virtual wstring devicePath ()=0
 
virtual void sendDataPinConfigChannel (uint8_t *data, size_t len)=0
 
virtual void sendDataPeripheralChannel (uint8_t *data, size_t len)=0
 
virtual bool receiveDataPeripheralChannel (uint8_t *data, size_t len)=0
 
virtual bool receivePinReportPacket (uint8_t *data)=0
 

Constructor & Destructor Documentation

◆ ~UsbConnection()

virtual ~UsbConnection ( )
virtualdefault

Member Function Documentation

◆ close()

virtual void close ( )
pure virtual

◆ devicePath()

virtual wstring devicePath ( )
pure virtual

◆ name()

virtual wstring name ( )
pure virtual

◆ open()

virtual bool open ( )
pure virtual

◆ receiveDataPeripheralChannel()

virtual bool receiveDataPeripheralChannel ( uint8_t *  data,
size_t  len 
)
pure virtual

◆ receivePinReportPacket()

virtual bool receivePinReportPacket ( uint8_t *  data)
pure virtual

◆ sendDataPeripheralChannel()

virtual void sendDataPeripheralChannel ( uint8_t *  data,
size_t  len 
)
pure virtual

◆ sendDataPinConfigChannel()

virtual void sendDataPinConfigChannel ( uint8_t *  data,
size_t  len 
)
pure virtual

◆ serialNumber()

virtual wstring serialNumber ( )
pure virtual

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