You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.0 KiB

#ifndef FT232_REIGN_H
#define FT232_REIGN_H
#include <QMainWindow>
#include <qtimer.h>
namespace Ui {
class ft232_reign;
}
class ft232_reign : public QMainWindow
{
Q_OBJECT
public:
explicit ft232_reign(QWidget *parent = 0);
~ft232_reign();
public slots:
void tmr_fxn();
private slots:
void toLog(QString info);
QString char_to_str(char *data, int len);
void on_clr_log_clicked();
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_connect_clicked();
void on_i2c_length_valueChanged(int arg1);
void on_i2c_write_data_textChanged(const QString &arg1);
void on_i2c_write_clicked();
void on_i2c_read_clicked();
void on_read_i2c_hid_desc_clicked();
void on_read_hid_report_desc_clicked();
void on_read_input_report_int_clicked();
void on_read_input_report_cmd_clicked();
private:
Ui::ft232_reign *ui;
QString log;
int res;
unsigned char data[1001];
unsigned char i2c_hid_descr[30];
QTimer *tmr;
};
#endif // FT232_REIGN_H