![]()  | 
  
    Imt.Base C++ API V4.1.1.0
    
   | 
 
The SRecConverter is used to read a Motorola srecord binary file. More...
#include <Imt.Base.Lib.SRecConverter/inc/Imt.Base.Lib.SRecConverter/SRecConverter.h>
  
Public Member Functions | |
| SRecConverter (uint32_t const pageSizeKb, uint32_t const flashSizeKb) | |
| Constructor.   | |
| bool | convert (std::string const &fileName) | 
| Converts the srecord.   | |
| uint8_t | getPageCount () const | 
| Returns the number of pages (1kB || 2kB) containing in Motorola srecord file.   | |
| std::vector< uint8_t > | getPageNumberList () const | 
| Returns the page number list.   | |
| uint32_t | getRecordCount () const | 
| Returns the number of records.   | |
| DataRecord const * | getDataRecord (uint32_t const recordNr) const | 
| Gets the data of a single record.   | |
| uint32_t | getDataSize () const | 
| Returns the data size of program or eeprom data in bytes.   | |
The SRecConverter is used to read a Motorola srecord binary file.
Definition at line 22 of file SRecConverter.h.
| imt::base::lib::srecconverter::SRecConverter::SRecConverter | ( | uint32_t const | pageSizeKb, | 
| uint32_t const | flashSizeKb | ||
| ) | 
Constructor.
| pageSizeKb | Size of a single page in kilobytes. | 
| flashSizeKb | Size of the avaliable memory in kilobytes. | 
| bool imt::base::lib::srecconverter::SRecConverter::convert | ( | std::string const & | fileName | ) | 
Converts the srecord.
| fileName | File name of motorola file to convert | 
| DataRecord const * imt::base::lib::srecconverter::SRecConverter::getDataRecord | ( | uint32_t const | recordNr | ) | const | 
Gets the data of a single record.
One record contains 256 bytes of program data.
| recordNr | record number | 
| uint32_t imt::base::lib::srecconverter::SRecConverter::getDataSize | ( | ) | const | 
Returns the data size of program or eeprom data in bytes.
Without address and checksum.
| uint8_t imt::base::lib::srecconverter::SRecConverter::getPageCount | ( | ) | const | 
Returns the number of pages (1kB || 2kB) containing in Motorola srecord file.
| std::vector< uint8_t > imt::base::lib::srecconverter::SRecConverter::getPageNumberList | ( | ) | const | 
Returns the page number list.
First page has number 1.
| uint32_t imt::base::lib::srecconverter::SRecConverter::getRecordCount | ( | ) | const | 
Returns the number of records.
One record contains 256 bytes of program data.