00001 00028 #ifndef __CONFIG_FILES_H__ 00029 #define __CONFIG_FILES_H__ 00030 00031 #include <string> 00032 using namespace std; 00033 00034 // Common definition used 00035 typedef unsigned char byte; 00036 00045 class CConfigFiles { 00046 00047 private: 00048 // Intel Hex File data members 00049 FILE* ihxFile; 00050 00051 // Xilinx Bit File data members 00052 FILE* xbtFile; 00053 00054 public: 00055 00057 CConfigFiles(){;} 00059 virtual ~CConfigFiles(){;} 00060 00062 static const int MAX_IHX_RECORD_LEN = 16; 00063 int ihxLen; 00064 int ihxType; 00065 int ihxAddress; 00066 00067 int ihxOpen(string fileName); 00068 int ihxRead(byte* b); 00069 int ihxClose(); 00070 00072 int xbtTotalBytes; 00073 int xbtPAddr; 00074 int xbtOpen(string fileName); 00075 int xbtRead(byte* b, int& N); 00076 int xbtClose(); 00077 00079 00081 00082 }; 00083 00084 00085 #endif // ifdef __CONFIG_FILES_H__ 00086 00087
1.5.1-p1