Treehopper C++ API
WinUsbConnection Class Reference

#include <WinUsbConnection.h>

Inheritance diagram for WinUsbConnection:
UsbConnection

Public Member Functions

 WinUsbConnection (wstring devicePath, wstring friendlyName, wstring serialNumber, int rev)
 
 ~WinUsbConnection () override
 
bool open () override
 
void close () override
 
void sendDataPinConfigChannel (uint8_t *data, size_t len) override
 
void sendDataPeripheralChannel (uint8_t *data, size_t len) override
 
wstring serialNumber () override
 
wstring name () override
 
wstring devicePath () override
 
bool receivePinReportPacket (uint8_t *data) override
 
bool receiveDataPeripheralChannel (uint8_t *data, size_t len) override
 

Static Public Member Functions

static void debugPrintLastError ()
 

Constructor & Destructor Documentation

◆ WinUsbConnection()

WinUsbConnection ( wstring  devicePath,
wstring  friendlyName,
wstring  serialNumber,
int  rev 
)

◆ ~WinUsbConnection()

~WinUsbConnection ( )
override

Member Function Documentation

◆ close()

void close ( )
overridevirtual

Implements UsbConnection.

◆ debugPrintLastError()

static void debugPrintLastError ( )
static

◆ devicePath()

wstring devicePath ( )
overridevirtual

Implements UsbConnection.

◆ name()

wstring name ( )
overridevirtual

Implements UsbConnection.

◆ open()

bool open ( )
overridevirtual

Implements UsbConnection.

◆ receiveDataPeripheralChannel()

bool receiveDataPeripheralChannel ( uint8_t *  data,
size_t  len 
)
overridevirtual

Implements UsbConnection.

◆ receivePinReportPacket()

bool receivePinReportPacket ( uint8_t *  data)
overridevirtual

Implements UsbConnection.

◆ sendDataPeripheralChannel()

void sendDataPeripheralChannel ( uint8_t *  data,
size_t  len 
)
overridevirtual

Implements UsbConnection.

◆ sendDataPinConfigChannel()

void sendDataPinConfigChannel ( uint8_t *  data,
size_t  len 
)
overridevirtual

Implements UsbConnection.

◆ serialNumber()

wstring serialNumber ( )
overridevirtual

Implements UsbConnection.


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