fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 kafltcontrolstatusreg.h - description 00003 ------------------- 00004 begin : Mo Jul 11 2005 00005 copyright : (C) 2005 by 00006 email : 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef KAFLTCONTROLSTATUSREG_H 00019 #define KAFLTCONTROLSTATUSREG_H 00020 00021 00022 #define KAFLT_DEBUG_MODE 0 00023 #define KAFLT_RUN_MODE 1 00024 #define KAFLT_MEASURE_MODE 2 00025 #define KAFLT_TEST_MODE 3 00026 00027 00028 #include <Hw/FltRegister.h> 00029 00038 class KaFltControlStatusReg : public FltRegister { 00039 public: 00040 KaFltControlStatusReg(const char * name, int slotID, int regID, int r, int w); 00041 00043 int getVersion(); 00044 00046 int getCardId(); 00047 00049 void setCardId(int id); 00050 00052 bool hasData(); 00053 00055 bool isOverflow(); 00056 00073 int getMode(); 00074 00076 void setMode(int value); 00077 00079 void setRunMode(); 00080 00081 void setTestMode(); 00082 00083 bool isInRunMode(); 00084 00085 bool isInTestMode(); 00086 00088 unsigned long getReadPointer(); 00089 00091 unsigned long getWritePointer(); 00092 00094 void setWritePointer(unsigned long value); 00095 00097 void reset(); 00098 00099 }; 00100 00101 #endif