Treehopper C++ API
LibUsbConnection Class Reference

#include <LibUsbConnection.h>

Inheritance diagram for LibUsbConnection:
UsbConnection

Public Member Functions

 LibUsbConnection (libusb_device *device)
 
 ~LibUsbConnection ()
 
bool open ()
 
void close ()
 
std::wstring serialNumber ()
 
wstring name ()
 
wstring devicePath ()
 
void sendDataPinConfigChannel (uint8_t *data, size_t len)
 
void sendDataPeripheralChannel (uint8_t *data, size_t len)
 
bool receiveDataPeripheralChannel (uint8_t *data, size_t len)
 
bool receivePinReportPacket (uint8_t *data)
 

Constructor & Destructor Documentation

◆ LibUsbConnection()

LibUsbConnection ( libusb_device *  device)

◆ ~LibUsbConnection()

Member Function Documentation

◆ close()

void close ( )
virtual

Implements UsbConnection.

◆ devicePath()

wstring devicePath ( )
virtual

Implements UsbConnection.

◆ name()

wstring name ( )
virtual

Implements UsbConnection.

◆ open()

bool open ( )
virtual

Implements UsbConnection.

◆ receiveDataPeripheralChannel()

bool receiveDataPeripheralChannel ( uint8_t *  data,
size_t  len 
)
virtual

Implements UsbConnection.

◆ receivePinReportPacket()

bool receivePinReportPacket ( uint8_t *  data)
virtual

Implements UsbConnection.

◆ sendDataPeripheralChannel()

void sendDataPeripheralChannel ( uint8_t *  data,
size_t  len 
)
virtual

Implements UsbConnection.

◆ sendDataPinConfigChannel()

void sendDataPinConfigChannel ( uint8_t *  data,
size_t  len 
)
virtual

Implements UsbConnection.

◆ serialNumber()

std::wstring serialNumber ( )
virtual

Implements UsbConnection.


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