Changeset 1727 for trunk/MagicSoft/Cosy/devdrv/macs.h
- Timestamp:
- 01/23/03 13:32:58 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/devdrv/macs.h
r1703 r1727 1 1 #ifndef MACS_H 2 2 #define MACS_H 3 4 #include <TObject.h>5 3 6 4 #include "nodedrv.h" 7 5 #include "base/timer.h" 8 6 9 class Macs : public NodeDrv , public TObject7 class Macs : public NodeDrv 10 8 { 11 9 private: … … 30 28 BYTE_t fStatus; 31 29 32 TTimer *fTimeout;33 Bool_t fTimerOn;34 LWORD_t fGuardTime;35 double fTimeoutTime;36 37 30 LWORD_t string(BYTE_t b0=0, BYTE_t b1=0, BYTE_t b2=0, BYTE_t b3=0) 38 31 { … … 40 33 } 41 34 42 void ResetTimeout();43 Bool_t HandleTimer(TTimer *t);44 45 35 void Init(); 46 //bool Reboot();47 48 //bool InitDevice(Network *);49 50 //void StartDevice();51 36 void StopDevice(); 52 37 53 38 void HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, timeval_t *tv); 54 void HandleSDOOK(WORD_t idx, BYTE_t subidx );55 void HandleSDOError(LWORD_t data){ NodeDrv::HandleSDOError(data); }39 void HandleSDOOK(WORD_t idx, BYTE_t subidx, timeval_t *tv); 40 //void HandleSDOError(LWORD_t data) { NodeDrv::HandleSDOError(data); } 56 41 57 42 void HandlePDO1(BYTE_t *data, timeval_t *tv); 58 43 void HandlePDO2(BYTE_t *data, timeval_t *tv); 44 //void HandleNodeguard(timeval_t *tv); 45 46 void SendNodeguard(); 59 47 60 48 void CheckConnection(); … … 108 96 void StartAbsPos(LWORDS_t pos); 109 97 110 void SetTimeoutTime(LWORD_t ms);111 void ReqTimeoutTime();112 113 void EnableTimeout(bool enable=true, LWORDS_t ms=-1);114 115 98 void StopMotor(); 116 99 … … 131 114 LWORD_t GetRes() const { return fRes; } // Encoder resolution 132 115 116 void StartHostGuarding(); 117 void StopHostGuarding(); 118 133 119 void HandleError(); 134 120
Note:
See TracChangeset
for help on using the changeset viewer.