libdrmconf  0.10.4
A library to program DMR radios.
Static Public Member Functions | List of all members
MD2017FileReader Class Reference

Methods to read manufacturer codeplug files. More...

#include <md2017_filereader.hh>

Static Public Member Functions

static bool read (const QString &filename, MD2017Codeplug *codeplug, QString &errorMessage)
 Reads manufacturer codeplug file into given codeplug object. More...
 

Detailed Description

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

Member Function Documentation

◆ read()

bool MD2017FileReader::read ( const QString &  filename,
MD2017Codeplug codeplug,
QString &  errorMessage 
)
static

Reads manufacturer codeplug file into given codeplug object.

Parameters
filenameSpecifies the file to read.
codeplugSpecifies the codeplug object to store read codeplug.
errorMessageOn error, contains an error message.
Returns
true on success and false on error.

The documentation for this class was generated from the following files: