fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/Hw/fltperiphregister.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     fltperiphregister.h  -  description
00003 
00004     begin                : Thu Mar 29 2001
00005     copyright            : (C) 2001 by A Kopmann
00006     email                : kopmann@hpe.fzk.de
00007     status               :
00008     test                 :
00009     history              :
00010  ***************************************************************************/
00011 
00012 
00013 #ifndef FLTPERIPHREGISTER_H
00014 #define FLTPERIPHREGISTER_H
00015 
00016 #include <Hw/FltPixRegister.h>
00017 
00058 class FltPeriphRegister : public FltPixRegister  {
00059 public: 
00060         //##ModelId=399122000395
00061         FltPeriphRegister(const char * name, int slotID, int regID, int r, int w, int len);
00062 
00064   int getFpgaNr(int pixel);
00065 
00067   int getInternalNr(int pixel);
00068   
00070   int getPixelNr(int fpgaNr, int internal=0);
00071 
00076   unsigned long getPixelMask(unsigned long *internalMask);
00077 
00080   void getInternalMask(unsigned long pixelMask,
00081                        unsigned long *internalMask);    
00082   
00085         //##ModelId=399122000391
00086   unsigned long read(int fpgaNr);
00087 
00090         //##ModelId=399122000393
00091   void read(unsigned long *data);
00092 
00093 
00096         //##ModelId=39912200038C
00097   void write(int fpgaNr, unsigned long data);
00098 
00099 
00102         //##ModelId=39912200038F
00103   void write(unsigned long *data);
00104 
00107         //##ModelId=399122000387
00108   void writeBits(int fpgaNr, unsigned long data, unsigned long mask, int shift);
00109 
00110 
00111 };
00112 
00113 #endif