#include <UsbDevice.h>
|
typedef boost::function< void(const void *data, int size)> | Callback |
|
|
int | bulkRead (void *data, int size, unsigned char endpoint, int timeout) |
|
bool | bulkWrite (const void *data, int size, unsigned char endpoint, int timeout) |
|
void | close () |
|
int | getLastError (std::string &str) const |
|
Location | getLocation () const |
|
int | interruptRead (void *data, int size, unsigned char endpoint, int timeout) |
|
bool | interruptWrite (const void *data, int size, unsigned char endpoint, int timeout) |
|
bool | isOpen () const |
|
void | listDevices (std::vector< Location > &list) const |
|
bool | open (const Location &location=Location()) |
|
void | setDebugLevel (uint8_t level) |
|
void | setDevceIds (uint16_t vid, uint16_t pid, uint8_t mi) |
|
void | startBulkReadThread (Callback callback, unsigned char endpoint) |
|
void | startInterruptReadThread (Callback callback, unsigned char endpoint) |
|
void | stopBulkReadThread (unsigned char endpoint) |
|
void | stopInterruptReadThread (unsigned char endpoint) |
|
| UsbDevice (uint16_t vid, uint16_t pid, uint8_t mi) |
|
| UsbDevice (uint16_t vid, uint16_t pid) |
|
| UsbDevice () |
|
| ~UsbDevice () |
|
Definition at line 58 of file UsbDevice.h.
lusb::UsbDevice::UsbDevice |
( |
uint16_t |
vid, |
|
|
uint16_t |
pid, |
|
|
uint8_t |
mi |
|
) |
| |
lusb::UsbDevice::UsbDevice |
( |
uint16_t |
vid, |
|
|
uint16_t |
pid |
|
) |
| |
lusb::UsbDevice::UsbDevice |
( |
| ) |
|
lusb::UsbDevice::~UsbDevice |
( |
| ) |
|
int lusb::UsbDevice::bulkRead |
( |
void * |
data, |
|
|
int |
size, |
|
|
unsigned char |
endpoint, |
|
|
int |
timeout |
|
) |
| |
void lusb::UsbDevice::bulkReadThread |
( |
Callback |
callback, |
|
|
unsigned char |
endpoint |
|
) |
| |
|
private |
bool lusb::UsbDevice::bulkWrite |
( |
const void * |
data, |
|
|
int |
size, |
|
|
unsigned char |
endpoint, |
|
|
int |
timeout |
|
) |
| |
void lusb::UsbDevice::close |
( |
| ) |
|
void lusb::UsbDevice::closeDevice |
( |
| ) |
|
|
private |
int lusb::UsbDevice::getLastError |
( |
std::string & |
str | ) |
const |
Location lusb::UsbDevice::getLocation |
( |
| ) |
const |
|
inline |
bool lusb::UsbDevice::handleError |
( |
int |
err | ) |
|
|
private |
void lusb::UsbDevice::init |
( |
| ) |
|
|
private |
int lusb::UsbDevice::interruptRead |
( |
void * |
data, |
|
|
int |
size, |
|
|
unsigned char |
endpoint, |
|
|
int |
timeout |
|
) |
| |
void lusb::UsbDevice::interruptReadThread |
( |
Callback |
callback, |
|
|
unsigned char |
endpoint |
|
) |
| |
|
private |
bool lusb::UsbDevice::interruptWrite |
( |
const void * |
data, |
|
|
int |
size, |
|
|
unsigned char |
endpoint, |
|
|
int |
timeout |
|
) |
| |
bool lusb::UsbDevice::isOpen |
( |
| ) |
const |
|
inline |
void lusb::UsbDevice::listDevices |
( |
const std::vector< UsbIds > & |
ids, |
|
|
std::vector< Location > & |
list |
|
) |
| |
|
static |
void lusb::UsbDevice::listDevices |
( |
uint16_t |
vid, |
|
|
uint16_t |
pid, |
|
|
std::vector< Location > & |
list |
|
) |
| |
|
static |
void lusb::UsbDevice::listDevices |
( |
std::vector< Location > & |
list | ) |
const |
void lusb::UsbDevice::setDebugLevel |
( |
uint8_t |
level | ) |
|
void lusb::UsbDevice::setDevceIds |
( |
uint16_t |
vid, |
|
|
uint16_t |
pid, |
|
|
uint8_t |
mi |
|
) |
| |
void lusb::UsbDevice::startBulkReadThread |
( |
Callback |
callback, |
|
|
unsigned char |
endpoint |
|
) |
| |
void lusb::UsbDevice::startInterruptReadThread |
( |
Callback |
callback, |
|
|
unsigned char |
endpoint |
|
) |
| |
void lusb::UsbDevice::stopBulkReadThread |
( |
unsigned char |
endpoint | ) |
|
void lusb::UsbDevice::stopInterruptReadThread |
( |
unsigned char |
endpoint | ) |
|
void lusb::UsbDevice::throwError |
( |
int |
err | ) |
|
|
private |
boost::thread lusb::UsbDevice::bulk_threads_[128] |
|
private |
bool lusb::UsbDevice::bulk_threads_enable_[128] |
|
private |
libusb_context* lusb::UsbDevice::ctx_ |
|
private |
int lusb::UsbDevice::error_code_ |
|
private |
std::string lusb::UsbDevice::error_str_ |
|
private |
boost::thread lusb::UsbDevice::interrupt_threads_[128] |
|
private |
bool lusb::UsbDevice::interrupt_threads_enable_[128] |
|
private |
libusb_device_handle* lusb::UsbDevice::libusb_handle_ |
|
private |
uint8_t lusb::UsbDevice::mi_ |
|
private |
bool lusb::UsbDevice::open_ |
|
private |
uint16_t lusb::UsbDevice::pid_ |
|
private |
bool lusb::UsbDevice::throw_errors_ |
uint16_t lusb::UsbDevice::vid_ |
|
private |
The documentation for this class was generated from the following files: