gbcflsh/USBPortWin.h

35 lines
561 B
C++

/*
#ifndef _USBPORTWIN_H_
#define _USBPORTWIN_H_
#include <windows.h>
#include "AbstractPort.h"
#include <ftd2xx.h>
#include <time.h>
class USBPortWin : public AbstractPort
{
Q_OBJECT
FT_HANDLE ftHandle;
FT_STATUS ftStatus;
bool opened;
public:
USBPortWin();
bool open_port (QString port_name);
bool close_port ();
int receive_char ();
bool send_char (unsigned char character);
int receive_packet (unsigned char *packet);
int send_packet (unsigned char *packet);
bool isOpen()
{
return opened;
}
signals:
void error(int err);
};
#endif
*/