gccDppConsole Test C++ SDK  20170920
DPP C++ Console Demonstration
Public Member Functions | Public Attributes
CDppLibUsb Class Reference

#include <DppLibUsb.h>

List of all members.

Public Member Functions

 CDppLibUsb (void)
 ~CDppLibUsb (void)
int InitializeLibusb ()
void DeinitializeLibusb ()
libusb_device_handle * FindUSBDevice (int idxAmptekDevice)
void CloseUSBDevice (libusb_device_handle *devh)
int SendPacketUSB (libusb_device_handle *devh, unsigned char data_out[], unsigned char data_in[])
bool isAmptekDP5Device (libusb_device_descriptor desc)
int CountDP5LibusbDevices ()
void PrintDevices ()
const char * libusb_strerror (enum libusb_error error_code)

Public Attributes

unsigned char data_in [MAX_BULK_IN_TRANSFER_SIZE]
unsigned char data_out [MAX_BULK_OUT_TRANSFER_SIZE]
libusb_device_handle * DppLibusbHandle
int NumDevices
int CurrentDevice
bool bLibusbReady
bool bDeviceReady
char LastLibUsbError [256]
bool bDeviceConnected

Detailed Description

Definition at line 36 of file DppLibUsb.h.


Constructor & Destructor Documentation

Definition at line 3 of file DppLibUsb.cpp.

Definition at line 7 of file DppLibUsb.cpp.


Member Function Documentation

void CDppLibUsb::CloseUSBDevice ( libusb_device_handle *  devh)

Definition at line 91 of file DppLibUsb.cpp.

Here is the call graph for this function:

Definition at line 154 of file DppLibUsb.cpp.

Here is the call graph for this function:

Definition at line 25 of file DppLibUsb.cpp.

libusb_device_handle * CDppLibUsb::FindUSBDevice ( int  idxAmptekDevice)

Definition at line 32 of file DppLibUsb.cpp.

Here is the call graph for this function:

Definition at line 13 of file DppLibUsb.cpp.

Here is the call graph for this function:

bool CDppLibUsb::isAmptekDP5Device ( libusb_device_descriptor  desc)

Definition at line 142 of file DppLibUsb.cpp.

Here is the caller graph for this function:

const char * CDppLibUsb::libusb_strerror ( enum libusb_error  error_code)

Definition at line 207 of file DppLibUsb.cpp.

Here is the caller graph for this function:

Definition at line 179 of file DppLibUsb.cpp.

Here is the call graph for this function:

int CDppLibUsb::SendPacketUSB ( libusb_device_handle *  devh,
unsigned char  data_out[],
unsigned char  data_in[] 
)

Definition at line 103 of file DppLibUsb.cpp.


Member Data Documentation

Definition at line 51 of file DppLibUsb.h.

Definition at line 49 of file DppLibUsb.h.

Definition at line 48 of file DppLibUsb.h.

Definition at line 47 of file DppLibUsb.h.

Definition at line 42 of file DppLibUsb.h.

Definition at line 43 of file DppLibUsb.h.

libusb_device_handle* CDppLibUsb::DppLibusbHandle

Definition at line 45 of file DppLibUsb.h.

Definition at line 50 of file DppLibUsb.h.

Definition at line 46 of file DppLibUsb.h.


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