Changeset 1727 for trunk/MagicSoft/Cosy/candrv/nodedrv.h
- Timestamp:
- 01/23/03 13:32:58 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/candrv/nodedrv.h
r1703 r1727 20 20 class Network; 21 21 22 class NodeDrv : public Log 22 class NodeDrv : public Log, public TObject 23 23 { 24 24 private: … … 30 30 int fError; 31 31 32 Bool_t fIsZombie; // A Zombie node is a node which doesn't answer... 33 34 TTimer *fTimeout; 35 Int_t fGuardTime; // Guardtime [ms] 36 Int_t fLifeTimeFactor; 37 Double_t fTimeoutTime; 38 Bool_t fTimerOn; 39 40 Bool_t HandleTimer(TTimer *t); 41 32 42 protected: 33 43 void SetError(int err) { fError = err; } 34 44 void DelError() { fError = 0; } 35 45 36 Bool_t fIsZombie; // A Zombie node is a node which doesn't answer... 46 Int_t GetLifeTimeFactor() const { return fLifeTimeFactor; } 47 Int_t GetGuardTime() const { return fGuardTime; } 48 49 virtual void SetZombie(); 37 50 38 51 public: … … 56 69 57 70 virtual void HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, timeval_t *tv); 58 virtual void HandleSDOOK(WORD_t idx, BYTE_t subidx );71 virtual void HandleSDOOK(WORD_t idx, BYTE_t subidx, timeval_t *tv); 59 72 virtual void HandleSDOError(LWORD_t data); 60 73 61 virtual void HandlePDO1(BYTE_t *data, timeval_t *tv) {}; 62 virtual void HandlePDO2(BYTE_t *data, timeval_t *tv) {}; 63 virtual void HandlePDO3(BYTE_t *data, timeval_t *tv) {}; 64 virtual void HandlePDO4(BYTE_t *data, timeval_t *tv) {}; 74 virtual void HandlePDO1(BYTE_t *data, timeval_t *tv) {} 75 virtual void HandlePDO2(BYTE_t *data, timeval_t *tv) {} 76 virtual void HandlePDO3(BYTE_t *data, timeval_t *tv) {} 77 virtual void HandlePDO4(BYTE_t *data, timeval_t *tv) {} 78 virtual void HandleNodeguard(timeval_t *tv); 79 virtual void HandleEmergency(timeval_t *tv) {} 65 80 66 81 bool SendPDO1(BYTE_t data[8]); … … 80 95 81 96 bool SendNMT(BYTE_t cmd); 97 virtual void SendNodeguard(); 82 98 83 99 bool RequestSDO(WORD_t idx, BYTE_t subidx=0); … … 93 109 void EnableCanMsg(BYTE_t fcode); 94 110 111 void StartGuarding(); 112 void StartGuarding(Int_t ms, Int_t ltf); 113 void StopGuarding(); 114 95 115 ClassDef(NodeDrv, 0) // base class for an object describing hardware 96 116 };
Note:
See TracChangeset
for help on using the changeset viewer.