fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/Hw/FltStatistic.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     FltStatistic.h  -  description
00003 
00004     begin                : Mon Oct 9 2000
00005     copyright            : (C) 2000 by Andreas Kopmann
00006     email                : kopmann@hpe.fzk.de
00007  ***************************************************************************/
00008 
00009 
00010 #ifndef FLTSTATISTIC_H
00011 #define FLTSTATISTIC_H
00012 
00013 #include <Hw/FltDef.h>
00014 #include <Hw/FltPixRegister.h>
00015 
00016 
00017 #if defined (FLT_VER) && (FLT_VER >= 200)
00018 
00037 class FltStatistic : public FltPixRegister  {
00038 public: 
00039         FltStatistic(const char * name, int slotID, int regID, int r, int w, int len);
00040         ~FltStatistic();
00041 
00047   int writeBitsByName(int ch, char *name, unsigned long data);
00048 
00050   void enable(int ch);
00052   void disable(int ch);
00054   void enable();
00056   void disable();
00060   bool isEnabled(int ch);
00061 
00071   void setOffset(int ch, int offset);
00073   void setOffset(int offset);
00075   int getOffset(int ch);
00076 
00082   void setSamples(int ch, int n);
00084   void setSamples(int n);
00087   int getSamples(int ch);
00088 
00090   bool get(int ch, int *offset, unsigned long *n);
00092   void set(bool enabled, int offset, unsigned long n);
00093 
00094 };
00095 
00096 
00097 #endif
00098 #endif