Instrument Neutral Distributed Interface INDI  1.6.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
INDI::USBDevice Class Reference

#include <indiusbdevice.h>

Inheritance diagram for INDI::USBDevice:
GPUSBDriver HitecAstroDCFocuser

Public Member Functions

int WriteInterrupt (unsigned char *, int, int)
 
int ReadInterrupt (unsigned char *, int, int)
 
int WriteBulk (unsigned char *buf, int nbytes, int timeout)
 
int ReadBulk (unsigned char *buf, int nbytes, int timeout)
 
int ControlMessage (unsigned char request_type, unsigned char request, unsigned int value, unsigned int index, unsigned char *data, unsigned char len)
 
int FindEndpoints ()
 
int Open ()
 
void Close ()
 
 USBDevice ()
 
 USBDevice (libusb_device *dev)
 
virtual ~USBDevice ()
 

Protected Member Functions

libusb_device * FindDevice (int, int, int)
 

Protected Attributes

libusb_device * dev
 
libusb_device_handle * usb_handle
 
int ProductId
 
int VendorId
 
int OutputType
 
int OutputEndpoint
 
int InputType
 
int InputEndpoint
 

Detailed Description

Definition at line 37 of file indiusbdevice.h.

Constructor & Destructor Documentation

USBDevice::USBDevice ( )

Definition at line 40 of file indiusbdevice.cpp.

INDI::USBDevice::USBDevice ( libusb_device *  dev)
USBDevice::~USBDevice ( )
virtual

Definition at line 57 of file indiusbdevice.cpp.

Member Function Documentation

void USBDevice::Close ( )

Definition at line 133 of file indiusbdevice.cpp.

int USBDevice::ControlMessage ( unsigned char  request_type,
unsigned char  request,
unsigned int  value,
unsigned int  index,
unsigned char *  data,
unsigned char  len 
)

Definition at line 215 of file indiusbdevice.cpp.

libusb_device * USBDevice::FindDevice ( int  vendor,
int  product,
int  searchindex 
)
protected

Definition at line 62 of file indiusbdevice.cpp.

int USBDevice::FindEndpoints ( )

Definition at line 138 of file indiusbdevice.cpp.

int USBDevice::Open ( )

Definition at line 103 of file indiusbdevice.cpp.

int USBDevice::ReadBulk ( unsigned char *  buf,
int  nbytes,
int  timeout 
)

Definition at line 193 of file indiusbdevice.cpp.

int USBDevice::ReadInterrupt ( unsigned char *  buf,
int  count,
int  timeout 
)

Definition at line 171 of file indiusbdevice.cpp.

int USBDevice::WriteBulk ( unsigned char *  buf,
int  nbytes,
int  timeout 
)

Definition at line 204 of file indiusbdevice.cpp.

int USBDevice::WriteInterrupt ( unsigned char *  buf,
int  count,
int  timeout 
)

Definition at line 182 of file indiusbdevice.cpp.

Member Data Documentation

libusb_device* INDI::USBDevice::dev
protected

Definition at line 40 of file indiusbdevice.h.

int INDI::USBDevice::InputEndpoint
protected

Definition at line 49 of file indiusbdevice.h.

int INDI::USBDevice::InputType
protected

Definition at line 48 of file indiusbdevice.h.

int INDI::USBDevice::OutputEndpoint
protected

Definition at line 47 of file indiusbdevice.h.

int INDI::USBDevice::OutputType
protected

Definition at line 46 of file indiusbdevice.h.

int INDI::USBDevice::ProductId
protected

Definition at line 43 of file indiusbdevice.h.

libusb_device_handle* INDI::USBDevice::usb_handle
protected

Definition at line 41 of file indiusbdevice.h.

int INDI::USBDevice::VendorId
protected

Definition at line 44 of file indiusbdevice.h.


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