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