QlightRead package | ESS final project 1.22-beta

/home/ron/Desktop/Frontend/src/tools.h

Go to the documentation of this file.
00001 
00043 #ifndef TOOLS_H
00044 #define TOOLS_H
00045 
00046 #include <stdio.h>
00047 #include <stdlib.h>
00048 #include <QtGui>
00049 #include <iostream>
00050 #include <libusb-1.0/libusb.h>
00051 
00052 
00053        #define OUT      libusb_close(devh); libusb_exit(NULL);
00054        #define DATAOUTEP        4  //(4 | LIBUSB_ENDPOINT_IN)
00055        #define DATAINEP (0x80 | 3)
00056        #define DATAINSIZE       16
00057        #define DATAOUTSIZE      16
00058        #define VID      0x03eb
00059        #define PID      0x0666
00060 
00061 
00062 int printdev(libusb_device *dev);
00063 int find_estick_device(struct libusb_device_handle **pdevh);
00064 static unsigned char indata[DATAINSIZE];
00065 
00066 //int transferred = 0;
00067 static struct libusb_device_handle *devh;
00068 
00069 
00070 #endif // TOOLS_H
 All Classes Files Functions Variables Defines