Class UsbDevice
Defined in File UsbDevice.hpp
Nested Relationships
Nested Types
Class Documentation
-
class UsbDevice
Public Types
-
typedef std::function<void(const void *data, int size)> Callback
Public Functions
-
UsbDevice()
-
~UsbDevice()
-
void close()
-
inline bool isOpen() const
-
bool bulkWrite(const void *data, int size, unsigned char endpoint, int timeout)
-
int bulkRead(void *data, int size, unsigned char endpoint, int timeout)
-
bool interruptWrite(const void *data, int size, unsigned char endpoint, int timeout)
-
int interruptRead(void *data, int size, unsigned char endpoint, int timeout)
-
void stopBulkReadThread(unsigned char endpoint)
-
void stopInterruptReadThread(unsigned char endpoint)
-
int getLastError(std::string &str) const
Public Members
-
bool throw_errors_
Public Static Functions
-
class Location
Public Functions
-
inline Location()
Public Members
-
inline Location()
-
struct UsbIds
-
typedef std::function<void(const void *data, int size)> Callback