|
libdrmconf
0.12.0
A library to program DMR radios.
|
Methods to read manufacturer codeplug files. More...
#include <dm1701_filereader.hh>
Static Public Member Functions | |
| static bool | read (const QString &filename, DM1701Codeplug *codeplug, const ErrorStack &err=ErrorStack()) |
| Reads manufacturer codeplug file into given codeplug object. More... | |
Methods to read manufacturer codeplug files.
The file format of the stock CPS is still pretty simple. The first part of the file consists of a mal-formed DFU file. This contains a single image with a single element containing the first section of the memory written to the device. The second section is then added as-is to the end of the file. Due to the DFU header/footer, the file and memory offsets differ.
| File Start | Memory Start | Size |
|---|---|---|
| 0x002225 | 0x002000 | 0x03e000 |
| 0x040235 | 0x110000 | 0x090000 |
|
static |
Reads manufacturer codeplug file into given codeplug object.
| filename | Specifies the file to read. |
| codeplug | Specifies the codeplug object to store read codeplug. |
| err | Error stack. |
true on success and false on error.