fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/Hw/FltTestPattern.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     FltTestPattern.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_FLTTESTPATTERN_38BB82350128_INCLUDED
00014 #define _INC_FLTTESTPATTERN_38BB82350128_INCLUDED
00015 
00016 #include <Hw/FltDef.h>
00017 #include <Hw/FltPixRegister.h>
00018 
00019 
00020 #define FLT_TP_CNTRL 0x02000000
00021 #define FLT_TP_END   0x01000000
00022 
00023 #define FLT_TP_RESET 0x00000010
00024 #define FLT_TP_MASK  0xffffffff // 22bit + Multiplicity
00025 
00026 
00049 //##ModelId=3991220C01A0
00050 class FltTestPattern : public FltPixRegister {
00051 public:
00052         //##ModelId=3991220C01C3
00053         FltTestPattern(const char * name, int slotID, int regID, int r, int w, int len);
00054 
00061   int read(unsigned long * data);
00062 
00066   void write(unsigned long * data);
00067 
00072   void write(unsigned long * data, int n);
00073 
00074 
00077   unsigned long readFirst();
00078 
00081   unsigned long readNext();
00082 
00085   void writeFirst(unsigned long data);
00086 
00089   void writeNext(unsigned long data);
00090 
00091 
00095   void rewind();
00096 
00097 
00100   void setMode(int mode);
00101 
00102 };
00103 
00104 #endif /* _INC_FLTTESTPATTERN_38BB82350128_INCLUDED */
00105