fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/Hw/FltThreshold.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     FltThreshold.h  -  description
00003 
00004     begin                : Mon Aug 7 2000
00005     copyright            : (C) 2000 by Andreas Kopmann
00006     email                : kopmann@hpe.fzk.de
00007  ***************************************************************************/
00008 
00009 
00010 #ifndef FLTTHRESHOLD_H
00011 #define FLTTHRESHOLD_H
00012 
00013 #include <Hw/FltDef.h>
00014 #include <Hw/FltPixRegister.h>
00015 
00016 class Flt;
00017 
00043 //##ModelId=399122010136
00044 class FltThreshold : public FltPixRegister  {
00045 public: 
00046         //##ModelId=39912201014E
00047         FltThreshold(Flt *parent, const char *name, int slotID, int regID, int r, int w, int len);
00048         //##ModelId=39912201014D
00049         ~FltThreshold();
00050 
00054   int writeBitsByName(int ch, char *name, unsigned long data);
00055 
00056 #if defined (FLT_VER) && (FLT_VER >= 200)
00057 
00060   void get(int ch, int * actual, int * previous = 0);
00061 
00063   int get(int ch);
00064 
00069   void get(unsigned long data, int * actual, int *previous = 0);
00070 
00072   int getActual(int ch);
00073 
00075   int getPrevious(int ch);
00076 
00078   void set(int ch, int actual);
00079 
00081   void set(int actual);
00082 
00083 #else
00084         //##ModelId=399122010146
00085   unsigned long read(int ch);
00086 
00087         //##ModelId=399122010141
00088   void write(int ch, unsigned long data);
00089 
00090         //##ModelId=39912201014B
00091   void read(unsigned long *data);
00092 
00093         //##ModelId=399122010144
00094   void write(unsigned long *data);
00095 #endif
00096 
00097 private:
00098 
00099   Flt *parent;
00100 };
00101 
00102 #endif