#include <config_files.h>
Public Member Functions | |
| CConfigFiles () | |
| Constructor. | |
| virtual | ~CConfigFiles () |
| Destructor. | |
| int | ihxOpen (string fileName) |
| Open an Intel Hex File. | |
| int | ihxRead (byte *b) |
| Read N bytes (unsigned chars) from the opened file, returns an error if a file hasn't been open. | |
| int | ihxClose () |
| Close an Intel Hex File, closes the currently open hex file. | |
| int | xbtOpen (string fileName) |
| int | xbtRead (byte *b, int &N) |
| int | xbtClose () |
Data Fields | |
| int | ihxLen |
| int | ihxType |
| int | ihxAddress |
| int | xbtTotalBytes |
| Xilinx Bit File Data Types and Methods. | |
| int | xbtPAddr |
Static Public Attributes | |
| static const int | MAX_IHX_RECORD_LEN = 16 |
| Intel Hex File Data Types and Methods. | |
TODO: Generate a generic class that can read and write different configuraiton files and store in a common structure. Many different formats to add.
Definition at line 45 of file config_files.h.
| CConfigFiles::CConfigFiles | ( | ) | [inline] |
| virtual CConfigFiles::~CConfigFiles | ( | ) | [inline, virtual] |
| int CConfigFiles::ihxOpen | ( | string | fileName | ) |
Open an Intel Hex File.
This function has only been used and tested with .hex files produced by the SDCC compiler for the 8051 microcontrollers.
| [in] | file | string, the hexfiles file name |
Definition at line 67 of file config_files.cpp.
Referenced by FX2LP_8051::downloadFirmware().
| int CConfigFiles::ihxRead | ( | byte * | b | ) |
Read N bytes (unsigned chars) from the opened file, returns an error if a file hasn't been open.
| [in] | b | byte buffer at least MAX_RECORD_LEN. |
Some infromation about the Intel Hex Record File.
Position Description
Definition at line 122 of file config_files.cpp.
References ihxAddress, ihxLen, ihxType, and MAX_IHX_RECORD_LEN.
Referenced by FX2LP_8051::downloadFirmware().
| int CConfigFiles::ihxClose | ( | ) |
Close an Intel Hex File, closes the currently open hex file.
Definition at line 190 of file config_files.cpp.
Referenced by FX2LP_8051::downloadFirmware().
| int CConfigFiles::xbtOpen | ( | string | fileName | ) |
Definition at line 244 of file config_files.cpp.
References _VERBOSE_, hexDump(), and xbtTotalBytes.
Referenced by XILINX_XS3::downloadConfigFile().
| int CConfigFiles::xbtRead | ( | byte * | b, | |
| int & | N | |||
| ) |
Definition at line 276 of file config_files.cpp.
References _VERBOSE_, hexDump(), and xbtTotalBytes.
Referenced by XILINX_XS3::downloadConfigFile().
| int CConfigFiles::xbtClose | ( | ) |
Definition at line 299 of file config_files.cpp.
References _VERBOSE_, and xbtTotalBytes.
Referenced by XILINX_XS3::downloadConfigFile().
const int CConfigFiles::MAX_IHX_RECORD_LEN = 16 [static] |
Intel Hex File Data Types and Methods.
Definition at line 62 of file config_files.h.
Referenced by FX2LP_8051::downloadFirmware(), and ihxRead().
Definition at line 63 of file config_files.h.
Referenced by FX2LP_8051::downloadFirmware(), and ihxRead().
Definition at line 64 of file config_files.h.
Referenced by FX2LP_8051::downloadFirmware(), and ihxRead().
Definition at line 65 of file config_files.h.
Referenced by FX2LP_8051::downloadFirmware(), and ihxRead().
Xilinx Bit File Data Types and Methods.
Definition at line 72 of file config_files.h.
Referenced by xbtClose(), xbtOpen(), and xbtRead().
Definition at line 73 of file config_files.h.
1.5.1-p1