From 4acd7cfd96f2099772497713e17ca8bfaf5cf4ec Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期二, 25 二月 2025 14:35:17 +0800
Subject: [PATCH] 1.CStep完善;

---
 SourceCode/Bond/Servo/CStep.h |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/CStep.h b/SourceCode/Bond/Servo/CStep.h
index 052d4e4..628f116 100644
--- a/SourceCode/Bond/Servo/CStep.h
+++ b/SourceCode/Bond/Servo/CStep.h
@@ -3,6 +3,16 @@
 
 
 namespace SERVO {
+#define STEP_EVENT_READDATA			0x01
+#define STEP_EVENT_COMPLETE			0x02
+
+	typedef std::function<void(void* pStep, int code, void* pData)> ONSTEPEVENT;
+	typedef struct _StepListener
+	{
+		ONSTEPEVENT			onEvent;
+	} StepListener;
+
+	class CEquipment;
 	class CStep
 	{
 	public:
@@ -11,7 +21,12 @@
 
 	public:
 		unsigned WorkingProc();
+		void setListener(StepListener listener);
 		void setCcLink(CCCLinkIEControl* pCcLink);
+		void setEquipment(CEquipment* pEquipment);
+		CEquipment* getEquipment();
+		void setName(const char* pszName);
+		std::string& getName();
 		virtual void setWriteSignalDev(int dev);
 		virtual void init();
 		virtual void CStep::term();
@@ -27,7 +42,10 @@
 		inline void resetStep();
 
 	protected:
+		StepListener m_listener;
 		StationIdentifier m_station;
+		std::string m_strName;
+		CEquipment* m_pEquipment;
 		CCCLinkIEControl* m_pCclink;
 		CRITICAL_SECTION m_criticalSection;
 		std::string strName;

--
Gitblit v1.9.3