gccDppConsole Test C++ SDK
20170920
DPP C++ Console Demonstration
|
#include <DppLibUsb.h>
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 |
Definition at line 36 of file DppLibUsb.h.
CDppLibUsb::CDppLibUsb | ( | void | ) |
Definition at line 3 of file DppLibUsb.cpp.
CDppLibUsb::~CDppLibUsb | ( | void | ) |
Definition at line 7 of file DppLibUsb.cpp.
void CDppLibUsb::CloseUSBDevice | ( | libusb_device_handle * | devh | ) |
void CDppLibUsb::DeinitializeLibusb | ( | ) |
Definition at line 25 of file DppLibUsb.cpp.
libusb_device_handle * CDppLibUsb::FindUSBDevice | ( | int | idxAmptekDevice | ) |
int CDppLibUsb::InitializeLibusb | ( | ) |
bool CDppLibUsb::isAmptekDP5Device | ( | libusb_device_descriptor | desc | ) |
const char * CDppLibUsb::libusb_strerror | ( | enum libusb_error | error_code | ) |
void CDppLibUsb::PrintDevices | ( | ) |
int CDppLibUsb::SendPacketUSB | ( | libusb_device_handle * | devh, |
unsigned char | data_out[], | ||
unsigned char | data_in[] | ||
) |
Definition at line 103 of file DppLibUsb.cpp.
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.
unsigned char CDppLibUsb::data_in[MAX_BULK_IN_TRANSFER_SIZE] |
Definition at line 42 of file DppLibUsb.h.
unsigned char CDppLibUsb::data_out[MAX_BULK_OUT_TRANSFER_SIZE] |
Definition at line 43 of file DppLibUsb.h.
libusb_device_handle* CDppLibUsb::DppLibusbHandle |
Definition at line 45 of file DppLibUsb.h.
char CDppLibUsb::LastLibUsbError[256] |
Definition at line 50 of file DppLibUsb.h.
Definition at line 46 of file DppLibUsb.h.