- Timestamp:
- 12/21/01 12:24:24 (23 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 4 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r1111 r1139 1 1 -*-*- END -*-*- 2 2 3 2001/12/21 - Thomas Bretz: 4 5 * candrv/*.cc: 6 - added comments 7 8 * .rootrc: 9 - added 10 11 * Makefile: 12 - changed to create a shared object (for html docu) 13 14 * macros/dohtml.C: 15 - added 16 17 * macros/rootlogon.C: 18 - added 19 20 * subdir lib: 21 - added 22 3 23 2001/12/12 - Thomas Bretz: 4 24 -
trunk/MagicSoft/Cosy/candrv/network.h
r1109 r1139 33 33 bool HasError() const; 34 34 35 ClassDef(Network, 0) 35 ClassDef(Network, 0) // collection of nodes (nodedrv) 36 36 }; 37 37 -
trunk/MagicSoft/Cosy/candrv/nodedrv.cc
r1138 r1139 29 29 // Base class for a class describing the interface for the CAN nodes. 30 30 // 31 // to be overloaded: 32 // virtual void InitDevice(Network *net) 33 // virtual void StopDevice() 34 // virtual void HandleSDO(WORD_t idx, BYTE_t subidx, LWORD_t val, struct timeval *tv) 35 // virtual void HandleSDOOK(WORD_t idx, BYTE_t subidx) 36 // virtual void HandleSDOError(LWORD_t data) 37 // virtual void HandlePDO1(BYTE_t *data, struct timeval *tv) 38 // virtual void HandlePDO2(BYTE_t *data, struct timeval *tv) 39 // virtual void HandlePDO3(BYTE_t *data, struct timeval *tv) 40 // virtual void HandlePDO4(BYTE_t *data, struct timeval *tv) 41 // 31 42 /////////////////////////////////////////////////////////////////////// 32 43 #include "nodedrv.h" … … 47 58 NodeDrv::NodeDrv(BYTE_t nodeid, const char *name, MLog &out) : Log(out), fNetwork(NULL), fId(32), fError(0) 48 59 { 49 if (nodeid> 31)60 if (nodeid>0x1f) 50 61 { 51 62 cout << "SetNode - Error: Only node Numbers < 32 are allowed"<< endl; … … 60 71 { 61 72 fName = "Node#"; 62 fName += nodeid;73 fName += (int)nodeid; 63 74 } 64 75 } -
trunk/MagicSoft/Cosy/candrv/nodedrv.h
r1138 r1139 1 1 #ifndef NODEDRV_H 2 2 #define NODEDRV_H 3 4 #include <TString.h> 3 5 4 6 #include "log.h" … … 36 38 virtual ~NodeDrv(); 37 39 38 BYTE_t GetId() const { return fId; }39 c har*GetNodeName() const { return fName; }40 Network *GetNetwork() { return fNetwork; }40 BYTE_t GetId() const { return fId; } 41 const char *GetNodeName() const { return fName; } 42 Network *GetNetwork() { return fNetwork; } 41 43 42 44 virtual void InitDevice(Network *net); … … 83 85 void EnableCanMsg(BYTE_t fcode); 84 86 85 ClassDef(NodeDrv, 0) 87 ClassDef(NodeDrv, 0) // base class for an object describing hardware 86 88 }; 87 89 -
trunk/MagicSoft/Cosy/candrv/vmodican.h
r1109 r1139 76 76 BYTE_t m4=0, BYTE_t m5=0, BYTE_t m6=0, BYTE_t m7=0); 77 77 78 ClassDef(VmodIcan, 0) 78 ClassDef(VmodIcan, 0) // hardware interface to the vmodican can module (Janz) 79 79 }; 80 80
Note:
See TracChangeset
for help on using the changeset viewer.