Dataflow Runtime API
4.0.1.0
|
The SRecConverter is used to read a Motorola srecord binary file. More...
#include <Imt.Base.Lib.SRecConverter/SRecConverter.h>
Public Member Functions | |
SRecConverter (uint32_t const pageSizeKb, uint32_t const flashSizeKb) | |
Constructor. More... | |
virtual | ~SRecConverter () |
Destructor. More... | |
bool | convert (std::wstring const &fileName) |
Converts the srecord. More... | |
uint8_t | getPageCount () const |
Returns the number of pages (1kB || 2kB) containing in Motorola srecord file. More... | |
std::vector< uint8_t > | getPageNumberList () const |
Returns the page number list. More... | |
uint32_t | getRecordCount () const |
Returns the number of records. More... | |
bool | getDataRecord (uint32_t const recordNr, DataRecord &record) const |
Gets the data of a single record. More... | |
uint32_t | getDataSize () 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 | ( | std::wstring const & | fileName | ) |
Converts the srecord.
fileName | File name of motorola file to convert |
bool imt::base::lib::srecconverter::SRecConverter::getDataRecord | ( | uint32_t const | 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 | ( | ) | 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.