代码拉取完成,页面将自动刷新
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtNetwork>
#include "qhexedit.h"
namespace Ui {
class MainWindow;
}
enum Status_code {
NONE = 0x00,
SOH = 0x01,
STX = 0x02,
EOT = 0x04,
ACK = 0x06,
NAK = 0x15,
CAN = 0x18,
CODE_C = 0x43,
};
#define MAGIC1 0x12345678
#define MAGIC2 0x87654321
struct request_resp
{
uint32_t type; //0x00 请求 ,0x01 回应
uint32_t cmd; //0x00 搜索,0x01 擦除,0x02 写,0x03 完成
char sn[24];
};
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void on_UpdateBtn_clicked();
void on_LoadBtn_clicked();
void data_Receive ();
private:
Ui::MainWindow *ui;
QHexEdit *HexEdit;
QUdpSocket *udpSocket;
quint16 hostPort;
quint8 pack_num;
char* m_buf;
int finsh_size;
int total_size;
int step;
void PageInit();
void send_data();
void update_progressbar();
void update_log_output(QString info);
};
#endif // MAINWINDOW_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。