You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
855 B
C++
37 lines
855 B
C++
#pragma once
|
|
#include "Global.h"
|
|
#include "resource.h"
|
|
#include "GlobalMessage.h"
|
|
#include "ComControlFunction.h"
|
|
#include "Serial.h"
|
|
|
|
// CDlgIMP 对话框
|
|
|
|
class CDlgIMP : public CDialogEx
|
|
{
|
|
DECLARE_DYNAMIC(CDlgIMP)
|
|
|
|
public:
|
|
CDlgIMP();
|
|
virtual ~CDlgIMP();
|
|
|
|
// 对话框数据
|
|
enum { IDD = IDD_DLG_IMP };
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
void SetIMPData(CFrameIMPDown_ data);
|
|
afx_msg void OnBnClickedButton1();
|
|
afx_msg LRESULT ImpSerialConnectMessage(WPARAM param, LPARAM lparam); //IMP通信开始
|
|
virtual BOOL OnInitDialog();
|
|
|
|
CSerial m_SerialIMP; // IMP通信串口
|
|
char pSerialPort[20];//串口号
|
|
DWORD pSerialPortBaud;//端口号
|
|
//void onInitIMPFrame();//初始化IMP协议
|
|
afx_msg LRESULT OnUpdateIMPDownDataChecked(WPARAM param, LPARAM lparam); //处理IMP下行通过校验的遥测数据
|
|
};
|