fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/FE/fe4sensor.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     fe4sensor.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 FE4SENSOR_H
00011 #define FE4SENSOR_H
00012 
00013 #include <hw4/subrackauger.h>
00014 
00015 #include <FE/FEdef.h>
00016 
00017 #include <hw4/fltdef.h>
00018 #include <hw4/sltdef.h>
00019 
00020 #include <FE/febasesensor.h>
00021 
00022 
00041 class FE4sensor : public FEbaseSensor {
00042 public:
00043   FE4sensor(hw4::SubrackAuger *s);
00044 
00045   void setRange(int ch, int range);
00046 
00047   int getRange(int ch);
00048 
00052   int read(int ch);
00053 
00054   void setUpperThresh(int ch, int treshold);
00055 
00056   void setLowerThresh(int ch, int treshold);
00057 
00058   int getUpperThresh(int ch);
00059 
00060   int getLowerThresh(int ch);
00061 
00066   int waitForAlarm();
00067 
00069   void enableAlarm(int ch = -1);
00070 
00072   void disableAlarm(int ch = -1);
00073 
00077   bool isEnabledAlarm(int ch = -1);
00078 
00079 #if defined (SLT_VER) && (SLT_VER >= 110)
00080 
00081   int getStatus();
00082 
00085   bool isOutOfRange(int ch);
00086 #endif
00087 
00088 private:
00089   hw4::SubrackAuger *s;
00090 
00091 };
00092 
00093 #endif // of FE4SENSOR_H
00094