fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 microenableversion.h - description 00003 00004 begin : Fri Jan 19 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 MICROENABLEVERSION_H 00014 #define MICROENABLEVERSION_H 00015 00016 #include <Pbus/Pbus.h> 00017 00018 #ifdef PBUS_VCLASS 00019 00020 #if defined (PBUS_DIRECT) || (PBUS_TEST) 00021 00022 #ifdef __linux__ 00023 #define LINUX // the microEnable lib need this 00024 #endif 00025 00026 00027 00028 #include <stdio.h> 00029 #include <string> 00030 00031 00032 #include <menable.h> 00033 00034 00035 #include <Pbus/pbusversion.h> 00036 00041 class MicroEnableVersion { 00042 public: 00043 MicroEnableVersion(); 00044 MicroEnableVersion(char *driver, 00045 char *fpga, int fpga_clock, int plx_clock, int board, 00046 int board_revision, int board_serial, int ram_size); 00047 00048 MicroEnableVersion(microenable *board, fpga_design *design); 00049 00050 ~MicroEnableVersion(); 00051 00052 void display(FILE *fout); 00053 00054 int check(char *ini="FE.ini"); 00055 00056 void update(microenable *board, fpga_design *design); 00057 00062 int length(); 00063 00071 int copyTo(unsigned long *data, int n); 00072 00076 int copyFrom(unsigned long *data, int n); 00077 00078 private: 00079 00080 string driver; 00081 string fpga; 00082 int fpga_clock; 00083 int plx_clock; 00084 00085 int board; 00086 int board_revision; 00087 int board_serial; 00088 int ram_size; 00089 00090 }; 00091 00092 #endif 00093 00094 #endif 00095 00096 #endif 00097