fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/Hw/sltmultiplicity.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     sltmultiplicity.h  -  description
00003 
00004     begin                : Mon Jun 24 2002
00005     copyright            : (C) 2002 by A Kopmann
00006     email                : kopmann@ipe.fzk.de
00007     status               :
00008     test                 :
00009     history              :
00010  ***************************************************************************/
00011 
00012 
00013 #ifndef SLTMULTIPLICITY_H
00014 #define SLTMULTIPLICITY_H
00015 
00016 #include <Pbus/Pbus.h>
00017 #include <Hw/SltDef.h>
00018 #include <Hw/SltMemory.h>
00019 
00020 
00030 class SltMultiplicity: public SltMemory  {
00031 public:
00032 
00033   SltMultiplicity(const char * name, int slotID, unsigned long regID, int len);
00034 
00035   ~SltMultiplicity();
00036 
00044   void read(int page, unsigned long * data);
00045 
00053   void read(int page, int start, unsigned long *data);
00054 
00064   void read(int page, int start, unsigned long *data, int n);
00065 
00068   unsigned long read(int page, unsigned long addr);
00069 
00070 
00073   void read(int page, unsigned char *data);
00074 
00075 
00083   void read(int page, int start, unsigned char *data);
00084 
00096   void read(int page, int start, unsigned char *data, int n);
00097 
00098 
00101   void write(int page, unsigned long * data);
00102 
00106   void write(int page, unsigned long addr, unsigned long data);
00107 
00111   void clear(int page, unsigned long data=0);
00112 
00113 
00115   char * getName();
00116 
00119   int getLength();
00120 
00121 /*  
00122 private:
00123 
00124   unsigned long addr;
00125 
00126   unsigned long len;
00127 
00128   const char * name;
00129 
00130 */
00131   
00132 };
00133 
00134 #endif