⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 motordlg.h

📁 wince开发的xbase270开发板实现电机的控制。可控制步进电机和直流电机的运转时间
💻 H
字号:
// MotorDlg.h : header file
//

#pragma once
#include "afxwin.h"
#include <afxmt.h>

// CMotorDlg dialog
class CMotorDlg : public CDialog
{
// Construction
public:
	CMotorDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_MOTOR_DIALOG };


	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
#if defined(_DEVICE_RESOLUTION_AWARE) && !defined(WIN32_PLATFORM_WFSP)
	afx_msg void OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/);
#endif
	DECLARE_MESSAGE_MAP()
public:
	int m_DCRunTime;
	int m_StepRunTime;
	int m_RatioH;
	int m_RatioL;

	UINT g_HighTimeA;	
	UINT g_LowTimeA;

	CButton m_DCContinue;
	CButton m_StepContinue;
	CButton m_DCMotorPositive;
	CButton m_StepMotorPositive;
public:
	BOOL InitGPIO(void);

public:
	afx_msg void OnBnClickedStepmotorstart();
	afx_msg void OnBnClickedStepmotorstop();
	afx_msg void OnBnClickedDcmotorstart();
	afx_msg void OnBnClickedDcmotorstop();
public:
	CEvent StepThreadBegin;
	CEvent StepThreadEnd;
	CEvent DCThreadBegin;
	CEvent DCThreadEnd;

};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -