Treehopper C++ API
MacUsbConnection Class Reference

#include <MacUsbConnection.h>

Inheritance diagram for MacUsbConnection:
UsbConnection

Public Member Functions

 MacUsbConnection (io_service_t deviceService, string name, string serial)
 
 ~MacUsbConnection ()
 
bool open ()
 
void close ()
 
void sendDataPinConfigChannel (uint8_t *data, size_t len)
 
void sendDataPeripheralChannel (uint8_t *data, size_t len)
 
wstring serialNumber ()
 
wstring name ()
 
wstring devicePath ()
 
bool receivePinReportPacket (uint8_t *data)
 
bool receiveDataPeripheralChannel (uint8_t *data, size_t len)
 

Constructor & Destructor Documentation

◆ MacUsbConnection()

MacUsbConnection ( io_service_t  deviceService,
string  name,
string  serial 
)

◆ ~MacUsbConnection()

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()

wstring serialNumber ( )
virtual

Implements UsbConnection.


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