CCylinder.h 445 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "CIO.h"
  3. class CCylinder
  4. {
  5. public:
  6. CCylinder(CIO* output, CIO*posInput,CIO* negInput,std::string name);
  7. ~CCylinder();
  8. LONG MovePosDir(bool sync = true);
  9. LONG MoveNegDir(bool sync = true);
  10. LONG WaitDone();
  11. private:
  12. const int TIMEOUT = 10000; //ms
  13. bool m_dir{ false };//false:¸º·½Ïò; true:Õý·½Ïò
  14. std::string m_sName = "";
  15. CIO* m_pOutput = nullptr;
  16. CIO* m_pPosInput = nullptr;
  17. CIO* m_pNegInput = nullptr;
  18. };