Changeset 9439 for trunk/MagicSoft/Cosy/candrv
- Timestamp:
- 05/09/09 13:48:12 (16 years ago)
- Location:
- trunk/MagicSoft/Cosy/candrv
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/candrv/CandrvLinkDef.h
r8841 r9439 5 5 #pragma link off all functions; 6 6 7 #pragma link C++ class VmodIcan+;8 7 #pragma link C++ class CanOpen+; 9 8 #pragma link C++ class Network+; 10 #pragma link C++ class Ethernet+;11 //#pragma link C++ class Interface+;12 9 13 10 #pragma link C++ class NodeDrv+; -
trunk/MagicSoft/Cosy/candrv/Makefile
r8809 r9439 17 17 18 18 SRCFILES = nodedrv.cc \ 19 vmodican.cc \20 19 sdolist.cc \ 21 20 canopen.cc \ -
trunk/MagicSoft/Cosy/candrv/canopen.h
r9132 r9439 4 4 #ifndef ROOT_TCondition 5 5 #include <TCondition.h> 6 #endif 7 8 #ifdef __CINT__ 9 typedef Byte_t BYTE_t; 10 typedef UShort_t WORD_t; 11 typedef Short_t WORDS_t; 12 typedef UInt_t LWORD_t; 13 typedef Int_t LWORDS_t; 14 struct Message; 15 struct FastMessage; 16 #else 17 #include "gendef.h" 18 #include "dpm.h" 6 19 #endif 7 20 … … 12 25 #ifndef COSY_MTimeout 13 26 #include "MTimeout.h" 14 #endif15 16 #ifdef __CINT__17 typedef UInt_t LWORD_t;18 typedef Short_t WORDS_t;19 27 #endif 20 28 -
trunk/MagicSoft/Cosy/candrv/ethernet.cc
r8865 r9439 37 37 #include <TSocket.h> 38 38 39 ClassImp(Ethernet);39 //ClassImp(Ethernet); 40 40 41 41 #undef DEBUG … … 56 56 // 57 57 Ethernet::Ethernet(const char *addr, const int tx, const int rx, CanOpen *receiver) 58 : MTcpIpI(rx), /*MTcpIpO(addr, tx),*/ Interface(receiver), fTxAddress(addr), fTxPort(tx)58 : MTcpIpI(rx), /*MTcpIpO(addr, tx),*/ Interface(receiver), fTxAddress(addr), fTxPort(tx) 59 59 { 60 60 gLog << inf2 << "- Ethernet initialized." << endl; … … 68 68 Ethernet::~Ethernet() 69 69 { 70 CancelThread();70 MTcpIpI::CancelThread(); 71 71 gLog << inf2 << "- Ethernet stopped." << endl; 72 72 } … … 85 85 const TString address = MTcpIpO::GetSocketAddress(rx); 86 86 87 while (! IsThreadCanceled())87 while (!MTcpIpI::IsThreadCanceled()) 88 88 { 89 89 unsigned char c; … … 281 281 #endif 282 282 MTcpIpO::SendFrame(fTxAddress, fTxPort, (char*)(msg.data+1), msg.len-1); 283 // Send((char*)(msg.data+1), msg.len-1); 283 284 #ifdef DEBUG 284 285 st.Print(); -
trunk/MagicSoft/Cosy/candrv/ethernet.h
r8864 r9439 20 20 21 21 // Start/stop communication inherited from Interface 22 void Start() { RunThread(); }23 void Stop() { CancelThread(); }22 void Start() { MTcpIpI::RunThread(); } 23 void Stop() { MTcpIpI::CancelThread(); } 24 24 25 Bool_t HasConnection() const { return IsConnectionEstablished(); }25 Bool_t HasConnection() const { return MTcpIpI::IsConnectionEstablished(); } 26 26 27 27 public: … … 32 32 void SendCanFrame(WORD_t cobid, BYTE_t m[8], BYTE_t rtr=0); 33 33 34 ClassDef(Ethernet, 0) // hardware interface to the vmodican can module (Janz)34 // ClassDef(Ethernet, 0) // hardware interface to the vmodican can module (Janz) 35 35 }; 36 36
Note:
See TracChangeset
for help on using the changeset viewer.