1 #ifndef AVR_HEXPROGRAM_H
2 #define AVR_HEXPROGRAM_H
12 * @brief Support for the Intel Hex file format
14 * HexProgram is an implementation of a Program that
15 * can read Intel Hex format files as generated by
16 * avra and avr studio. This is usually also the format
17 * supplied to avrdude for programming.
19 class HexProgram
: public Program
{
22 HexProgram(const char *filename
);
27 * Opens and loads a file.
29 void load(const char * filename
);
32 * Reads the next available section from the file
33 * and returns the data in \e sec.
35 * \returns false if no further sections are available.
37 bool readNextSection(Section
& sec
);
48 inline HexProgram::HexProgram() : end(true) {}
49 inline HexProgram::HexProgram(const char *filename
) : end(true) {
55 #endif /*AVR_HEXPROGRAM_H*/