Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Attributes | List of all members
USBDevice Class Reference

#include <USBDevice.h>

Inheritance diagram for USBDevice:
Inheritance graph
[legend]

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
 

Detailed Description

Definition at line 9 of file USBDevice.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

uint32_t USBDevice::numDevices ( uint16_t  idVendor,
uint16_t  idProduct 
)
staticprotected

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.

Member Data Documentation

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.


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


crazyflie_cpp
Author(s): Wolfgang Hoenig
autogenerated on Fri Nov 1 2019 03:39:56