Ignore:
Timestamp:
09/07/01 12:44:16 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/devdrv/macs.h

    r920 r925  
    11#ifndef MACS_H
    22#define MACS_H
     3
     4#include <TObject.h>
    35
    46#include "nodedrv.h"
    57#include "base/timer.h"
    68
    7 class Macs : public NodeDrv
     9class Macs : public NodeDrv, public TObject
    810{
    911private:
     
    2224    BYTE_t   fRpmActive;
    2325
     26    TTimer  *fTimeout;
     27    Bool_t   fTimerOn;
     28    LWORD_t  fTimeoutTime;
     29
    2430    LWORD_t string(BYTE_t b0=0, BYTE_t b1=0, BYTE_t b2=0, BYTE_t b3=0)
    2531    {
    2632        return (LWORD_t)(b0<<24 | b1<<16 | b2<<8 | b3);
    2733    }
     34
     35    Bool_t HandleTimer(TTimer *t);
    2836
    2937public:
     
    7078    void StartAbsPos(LWORDS_t pos);
    7179
     80    void SetTimeoutTime(LWORD_t ms);
     81    void ReqTimeoutTime();
     82
     83    void EnableTimeout(bool enable=true, LWORDS_t ms=-1);
     84
    7285    void StopMotor();
    7386
Note: See TracChangeset for help on using the changeset viewer.