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.
51 lines
849 B
51 lines
849 B
6 years ago
|
#ifndef LATTICE_COM_REIGN_H
|
||
|
#define LATTICE_COM_REIGN_H
|
||
|
|
||
|
#include <QMainWindow>
|
||
|
|
||
|
#include <QtSerialPort/qserialport.h>
|
||
|
#include <QtSerialPort/qserialportinfo.h>
|
||
|
|
||
|
#include <qtimer.h>
|
||
|
|
||
|
namespace Ui {
|
||
|
class lattice_com_reign;
|
||
|
}
|
||
|
|
||
|
class lattice_com_reign : public QMainWindow
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit lattice_com_reign(QWidget *parent = 0);
|
||
|
~lattice_com_reign();
|
||
|
|
||
|
private slots:
|
||
|
void toLog (QString str);
|
||
|
|
||
|
void on_com_reflseh_clicked();
|
||
|
|
||
|
void on_com_list_currentIndexChanged(int index);
|
||
|
|
||
|
void on_connect_clicked();
|
||
|
|
||
|
void on_com_tx_clicked();
|
||
|
|
||
|
void on_clear_log_clicked();
|
||
|
|
||
|
protected slots:
|
||
|
void com_data_received();
|
||
|
|
||
|
private:
|
||
|
Ui::lattice_com_reign *ui;
|
||
|
QList<QSerialPortInfo> com_list;
|
||
|
QSerialPort com;
|
||
|
|
||
|
QString log;
|
||
|
QString com_outs;
|
||
|
|
||
|
QTimer tmr;
|
||
|
};
|
||
|
|
||
|
#endif // LATTICE_COM_REIGN_H
|