Changeset 925 for trunk/MagicSoft/Cosy/devdrv/macs.h
- Timestamp:
- 09/07/01 12:44:16 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/devdrv/macs.h
r920 r925 1 1 #ifndef MACS_H 2 2 #define MACS_H 3 4 #include <TObject.h> 3 5 4 6 #include "nodedrv.h" 5 7 #include "base/timer.h" 6 8 7 class Macs : public NodeDrv 9 class Macs : public NodeDrv, public TObject 8 10 { 9 11 private: … … 22 24 BYTE_t fRpmActive; 23 25 26 TTimer *fTimeout; 27 Bool_t fTimerOn; 28 LWORD_t fTimeoutTime; 29 24 30 LWORD_t string(BYTE_t b0=0, BYTE_t b1=0, BYTE_t b2=0, BYTE_t b3=0) 25 31 { 26 32 return (LWORD_t)(b0<<24 | b1<<16 | b2<<8 | b3); 27 33 } 34 35 Bool_t HandleTimer(TTimer *t); 28 36 29 37 public: … … 70 78 void StartAbsPos(LWORDS_t pos); 71 79 80 void SetTimeoutTime(LWORD_t ms); 81 void ReqTimeoutTime(); 82 83 void EnableTimeout(bool enable=true, LWORDS_t ms=-1); 84 72 85 void StopMotor(); 73 86
Note:
See TracChangeset
for help on using the changeset viewer.