fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/FE/FEhitrateControl.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     FEhitrateControl.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 #ifndef _INC_FEHITRATECONTROL_392B7C960358_INCLUDED
00011 #define _INC_FEHITRATECONTROL_392B7C960358_INCLUDED
00012 
00013 #include <Hw/Subrack.h>
00014 
00015 #include <FE/FEdef.h>
00016 
00017 #include <Hw/SltDef.h>
00018 #include <Hw/FltDef.h>
00019 
00020 #include <FE/FEhitrateParameter.h>
00021 #include <FE/febasehitratecontrol.h>
00022 
00023 
00024 
00074 class FEhitrateControl : public FEbaseHitrateControl {
00075 public:
00076   FEhitrateControl(Subrack *s);
00077 
00079   int getActThresh(int col,int row);
00080 
00082   int getPrevThresh(int col,int row);
00083 
00086   void getThresh(int *act, int *prev = 0);
00087 
00090   void readThresh(unsigned long *data);
00091 
00099   void setActThresh(int col, int row, int treshold);
00100 
00102   int getHitrate(int col, int row);
00103 
00107   void getHitrate(int col, int *data);
00108 
00110   void getHitrate(int *data);
00111 
00115   void readHitrate(int col, unsigned long *data);
00116 
00119   void readHitrate(unsigned long *data);
00120 
00121 
00123   void getParameters(int col, FEhitrateParameter *parm);
00124 
00126   void setParameters(int col, FEhitrateParameter *parm);
00127 
00128 
00131   unsigned long getMode(int col);
00132 
00135   void setMode(int col, unsigned long mode);
00136 
00139   void setModeOn(int col, unsigned long mask);
00140 
00143   void setModeOff(int col, unsigned long mask);
00144 
00145   int waitForThreshErr();
00146 
00147   void enableThreshErr(int col);
00148 
00149   void disableThreshErr(int col);
00150 
00151   bool isEnabledThreshErr(int col);
00152 
00153   int waitForHitrateErr();
00154 
00155   void enableHitrateErr(int col);
00156 
00157   void disableHitrateErr(int col);
00158 
00159   bool isEnabledHitrateErr(int col);
00160 
00161 private:
00162   Subrack *s;
00163 
00164 };
00165 
00166 #endif /* _INC_FEHITRATECONTROL_392B7C960358_INCLUDED */
00167 
00168