Instrument Neutral Distributed Interface INDI  1.9.2
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() [1/2]

USBDevice::USBDevice ( )

Definition at line 40 of file indiusbdevice.cpp.

◆ USBDevice() [2/2]

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

◆ ~USBDevice()

USBDevice::~USBDevice ( )

Definition at line 57 of file indiusbdevice.cpp.

Member Function Documentation

◆ Close()

void USBDevice::Close ( )

Definition at line 133 of file indiusbdevice.cpp.

◆ ControlMessage()

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.

◆ FindDevice()

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

Definition at line 62 of file indiusbdevice.cpp.

◆ FindEndpoints()

int USBDevice::FindEndpoints ( )

Definition at line 138 of file indiusbdevice.cpp.

◆ Open()

int USBDevice::Open ( )

Definition at line 103 of file indiusbdevice.cpp.

◆ ReadBulk()

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

Definition at line 193 of file indiusbdevice.cpp.

◆ ReadInterrupt()

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

Definition at line 171 of file indiusbdevice.cpp.

◆ WriteBulk()

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

Definition at line 204 of file indiusbdevice.cpp.

◆ WriteInterrupt()

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

Definition at line 182 of file indiusbdevice.cpp.

Member Data Documentation

◆ dev

libusb_device* INDI::USBDevice::dev

Definition at line 40 of file indiusbdevice.h.

◆ InputEndpoint

int INDI::USBDevice::InputEndpoint

Definition at line 49 of file indiusbdevice.h.

◆ InputType

int INDI::USBDevice::InputType

Definition at line 48 of file indiusbdevice.h.

◆ OutputEndpoint

int INDI::USBDevice::OutputEndpoint

Definition at line 47 of file indiusbdevice.h.

◆ OutputType

int INDI::USBDevice::OutputType

Definition at line 46 of file indiusbdevice.h.

◆ ProductId

int INDI::USBDevice::ProductId

Definition at line 43 of file indiusbdevice.h.

◆ usb_handle

libusb_device_handle* INDI::USBDevice::usb_handle

Definition at line 41 of file indiusbdevice.h.

◆ VendorId

int INDI::USBDevice::VendorId

Definition at line 44 of file indiusbdevice.h.

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