Ignore:
Timestamp:
05/09/09 13:48:12 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/candrv
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/candrv/CandrvLinkDef.h

    r8841 r9439  
    55#pragma link off all functions;
    66
    7 #pragma link C++ class VmodIcan+;
    87#pragma link C++ class CanOpen+;
    98#pragma link C++ class Network+;
    10 #pragma link C++ class Ethernet+;
    11 //#pragma link C++ class Interface+;
    129
    1310#pragma link C++ class NodeDrv+;
  • trunk/MagicSoft/Cosy/candrv/Makefile

    r8809 r9439  
    1717
    1818SRCFILES = nodedrv.cc \
    19            vmodican.cc \
    2019           sdolist.cc \
    2120           canopen.cc \
  • trunk/MagicSoft/Cosy/candrv/canopen.h

    r9132 r9439  
    44#ifndef ROOT_TCondition
    55#include <TCondition.h>
     6#endif
     7
     8#ifdef __CINT__
     9typedef Byte_t   BYTE_t;
     10typedef UShort_t WORD_t;
     11typedef Short_t  WORDS_t;
     12typedef UInt_t   LWORD_t;
     13typedef Int_t    LWORDS_t;
     14struct Message;
     15struct FastMessage;
     16#else
     17#include "gendef.h"
     18#include "dpm.h"
    619#endif
    720
     
    1225#ifndef COSY_MTimeout
    1326#include "MTimeout.h"
    14 #endif
    15 
    16 #ifdef __CINT__
    17 typedef UInt_t LWORD_t;
    18 typedef Short_t WORDS_t;
    1927#endif
    2028
  • trunk/MagicSoft/Cosy/candrv/ethernet.cc

    r8865 r9439  
    3737#include <TSocket.h>
    3838
    39 ClassImp(Ethernet);
     39//ClassImp(Ethernet);
    4040
    4141#undef DEBUG
     
    5656//
    5757Ethernet::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)
    5959{
    6060    gLog << inf2 << "- Ethernet initialized." << endl;
     
    6868Ethernet::~Ethernet()
    6969{
    70     CancelThread();
     70    MTcpIpI::CancelThread();
    7171    gLog << inf2 << "- Ethernet stopped." << endl;
    7272}
     
    8585    const TString address = MTcpIpO::GetSocketAddress(rx);
    8686
    87     while (!IsThreadCanceled())
     87    while (!MTcpIpI::IsThreadCanceled())
    8888    {
    8989        unsigned char c;
     
    281281#endif
    282282    MTcpIpO::SendFrame(fTxAddress, fTxPort, (char*)(msg.data+1), msg.len-1);
     283//    Send((char*)(msg.data+1), msg.len-1);
    283284#ifdef DEBUG
    284285    st.Print();
  • trunk/MagicSoft/Cosy/candrv/ethernet.h

    r8864 r9439  
    2020
    2121    // Start/stop communication inherited from Interface
    22     void Start() { RunThread(); }
    23     void Stop()  { CancelThread(); }
     22    void Start() { MTcpIpI::RunThread(); }
     23    void Stop()  { MTcpIpI::CancelThread(); }
    2424
    25     Bool_t HasConnection() const { return IsConnectionEstablished(); }
     25    Bool_t HasConnection() const { return MTcpIpI::IsConnectionEstablished(); }
    2626
    2727public:
     
    3232    void SendCanFrame(WORD_t cobid, BYTE_t m[8], BYTE_t rtr=0);
    3333
    34     ClassDef(Ethernet, 0) // hardware interface to the vmodican can module (Janz)
     34//    ClassDef(Ethernet, 0) // hardware interface to the vmodican can module (Janz)
    3535};
    3636
Note: See TracChangeset for help on using the changeset viewer.