Changeset 1139 for trunk


Ignore:
Timestamp:
12/21/01 12:24:24 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/Changelog

    r1111 r1139  
    11                                                                  -*-*- END -*-*-
    22
     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 
    323 2001/12/12 - Thomas Bretz:
    424 
  • trunk/MagicSoft/Cosy/candrv/network.h

    r1109 r1139  
    3333    bool HasError() const;
    3434
    35     ClassDef(Network, 0)
     35    ClassDef(Network, 0) // collection of nodes (nodedrv)
    3636};
    3737
  • trunk/MagicSoft/Cosy/candrv/nodedrv.cc

    r1138 r1139  
    2929// Base class for a class describing the interface for the CAN nodes.
    3030//
     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//
    3142///////////////////////////////////////////////////////////////////////
    3243#include "nodedrv.h"
     
    4758NodeDrv::NodeDrv(BYTE_t nodeid, const char *name, MLog &out) : Log(out), fNetwork(NULL), fId(32), fError(0)
    4859{
    49     if (nodeid>31)
     60    if (nodeid>0x1f)
    5061    {
    5162        cout << "SetNode - Error: Only node Numbers < 32 are allowed"<< endl;
     
    6071    {
    6172        fName = "Node#";
    62         fName += nodeid;
     73        fName += (int)nodeid;
    6374    }
    6475}
  • trunk/MagicSoft/Cosy/candrv/nodedrv.h

    r1138 r1139  
    11#ifndef NODEDRV_H
    22#define NODEDRV_H
     3
     4#include <TString.h>
    35
    46#include "log.h"
     
    3638    virtual ~NodeDrv();
    3739
    38     BYTE_t   GetId() const       { return fId;   }
    39     char    *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; }
    4143
    4244    virtual void InitDevice(Network *net);
     
    8385    void EnableCanMsg(BYTE_t fcode);
    8486
    85     ClassDef(NodeDrv, 0)
     87    ClassDef(NodeDrv, 0) // base class for an object describing hardware
    8688};
    8789
  • trunk/MagicSoft/Cosy/candrv/vmodican.h

    r1109 r1139  
    7676                      BYTE_t m4=0, BYTE_t m5=0, BYTE_t m6=0, BYTE_t m7=0);
    7777
    78     ClassDef(VmodIcan, 0)
     78    ClassDef(VmodIcan, 0) // hardware interface to the vmodican can module (Janz)
    7979};
    8080
Note: See TracChangeset for help on using the changeset viewer.