fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/Hw/FltCntrlStatus.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     FltCntrlStatus.h  -  description
00003 
00004     begin                : Mon Jul 3 2000
00005     copyright            : (C) 2000 by Andreas Kopmann
00006     email                : kopmann@hpe.fzk.de
00007  ***************************************************************************/
00008 
00009 
00010 #if defined (_MSC_VER) && (_MSC_VER >= 1000)
00011 #pragma once
00012 #endif
00013 #ifndef _INC_FLTCNTRLSTATUS_38BB801E0382_INCLUDED
00014 #define _INC_FLTCNTRLSTATUS_38BB801E0382_INCLUDED
00015 
00016 #include <Hw/FltDef.h>
00017 #include <Hw/FltRegister.h>
00018 
00019 
00035 //##ModelId=399121FE02E1
00036 class FltCntrlStatus : public FltRegister
00037 {
00038 public:
00039         //##ModelId=399121FE0313
00040   FltCntrlStatus(const char *name, int slotID, int regID, int r, int w);
00041 
00046   int writeBitsByName(char *name, unsigned long data);
00047 
00048   //##ModelId=399121FE030D
00049   int getCardId();
00050 
00051   //##ModelId=399121FE030B
00052   void setCardId(int id);
00053 
00054   //##ModelId=399121FE030A
00055   void forceSoftReset();
00056 
00061   void forceTestIR();
00062 
00067   //##ModelId=399121FE0309
00068   int getHitrateCountingLength();
00069 
00080   //##ModelId=399121FE0304
00081   void setHitrateCountingLength(int ta);
00082 
00085   //##ModelId=399121FE0302
00086   bool isOnLed(int id);
00087 
00088   //##ModelId=399121FE0300
00089   void setLedOn(int id);
00090 
00091   //##ModelId=399121FE02FA
00092   void setLedOff(int id);
00093 
00106   int getInterruptSource();
00107 
00108   //##ModelId=399121FE02F8
00109   bool isInterrupt(int source);
00110 
00112   int getInterruptMask();
00113 
00115   void setInterruptMask(int mask);
00116 
00118   //##ModelId=399121FE02F6
00119   void enableInterrupt(int source);
00120 
00121   //##ModelId=399121FE02F0
00122   void disableInterrupt(int source);
00123 
00124   //##ModelId=399121FE02EE
00125   bool isEnabledInterrupt(int source);
00126 
00133   //##ModelId=399121FE02ED
00134   int getTestMode();
00135 
00136   //##ModelId=399121FE02EB
00137   void setTestMode(int mode);
00138 
00139 #if defined (FLT_VER) && (FLT_VER >= 200)
00140 
00141   int getVersion();
00142 
00146   int getAnalogBoardType();
00147 
00148 
00152   void setAnalogBoardType(int type);
00153 #endif
00154 };
00155 
00156 #endif /* _INC_FLTCNTRLSTATUS_38BB801E0382_INCLUDED */
00157