Traing mode changed from parallel port to usb solution
This commit is contained in:
@@ -2,6 +2,17 @@
|
||||
#define HARDWARESETUP_H
|
||||
|
||||
#include <QtCore>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <usb.h>
|
||||
|
||||
struct TransStruct{
|
||||
uint16_t time;
|
||||
uint8_t id;
|
||||
uint8_t update;
|
||||
};
|
||||
|
||||
class HardwareSetup : public QThread
|
||||
{
|
||||
@@ -11,18 +22,21 @@ protected:
|
||||
private:
|
||||
bool shellBefore;
|
||||
bool deaBefore;
|
||||
usb_dev_handle *handle;
|
||||
|
||||
bool getShell();
|
||||
bool getDea();
|
||||
int* findBit(int *array, int zahl);
|
||||
bool stop;
|
||||
int usbGetDescriptorString(usb_dev_handle *dev, int index, int langid, char *buf, int buflen);
|
||||
usb_dev_handle *usbOpenDevice(int vendor, char *vendorName, int product, char *productName);
|
||||
public:
|
||||
void setStop();
|
||||
~HardwareSetup();
|
||||
HardwareSetup();
|
||||
signals:
|
||||
void Shell();
|
||||
void Dea();
|
||||
void Shell(int, int);
|
||||
void Dea(int, int);
|
||||
};
|
||||
|
||||
#endif // HARDWARESETUP_H
|
||||
|
||||
Reference in New Issue
Block a user