#include <USBDevice.h>
Public Member Functions | |
USBDevice (uint16_t idVendor, uint16_t idProduct) | |
virtual | ~USBDevice () |
Protected Member Functions | |
void | open (uint32_t devid) |
void | sendVendorSetup (uint8_t request, uint16_t value, uint16_t index, const unsigned char *data, uint16_t length) |
Static Protected Member Functions | |
static uint32_t | numDevices (uint16_t idVendor, uint16_t idProduct) |
Protected Attributes | |
libusb_context * | m_ctx |
libusb_device_handle * | m_handle |
float | m_version |
Private Attributes | |
uint16_t | m_idProduct |
uint16_t | m_idVendor |
Definition at line 9 of file USBDevice.h.
USBDevice::USBDevice | ( | uint16_t | idVendor, |
uint16_t | idProduct | ||
) |
Definition at line 8 of file USBDevice.cpp.
USBDevice::~USBDevice | ( | ) | [virtual] |
Definition at line 23 of file USBDevice.cpp.
uint32_t USBDevice::numDevices | ( | uint16_t | idVendor, |
uint16_t | idProduct | ||
) | [static, protected] |
Definition at line 37 of file USBDevice.cpp.
void USBDevice::open | ( | uint32_t | devid | ) | [protected] |
Definition at line 77 of file USBDevice.cpp.
void USBDevice::sendVendorSetup | ( | uint8_t | request, |
uint16_t | value, | ||
uint16_t | index, | ||
const unsigned char * | data, | ||
uint16_t | length | ||
) | [protected] |
Definition at line 145 of file USBDevice.cpp.
libusb_context* USBDevice::m_ctx [protected] |
Definition at line 33 of file USBDevice.h.
libusb_device_handle* USBDevice::m_handle [protected] |
Definition at line 34 of file USBDevice.h.
uint16_t USBDevice::m_idProduct [private] |
Definition at line 40 of file USBDevice.h.
uint16_t USBDevice::m_idVendor [private] |
Definition at line 39 of file USBDevice.h.
float USBDevice::m_version [protected] |
Definition at line 36 of file USBDevice.h.