1 Star 0 Fork 0

nongxiaoming/UpdateTool_wifi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainwindow.h 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
nongxiaoming 提交于 2014-07-19 18:28 . 加入初始化工程
#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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/nongxiaoming/UpdateTool_wifi.git
git@gitee.com:nongxiaoming/UpdateTool_wifi.git
nongxiaoming
UpdateTool_wifi
UpdateTool_wifi
master

搜索帮助