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

Methods to read manufacturer codeplug files. More...

#include <md390_filereader.hh>

Static Public Member Functions

static bool read (const QString &filename, MD390Codeplug *codeplug, const ErrorStack &err=ErrorStack())
 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

Member Function Documentation

◆ read()

bool MD390FileReader::read ( const QString &  filename,
MD390Codeplug codeplug,
const ErrorStack err = ErrorStack() 
)
static

Reads manufacturer codeplug file into given codeplug object.

Parameters
filenameSpecifies the file to read.
codeplugSpecifies the codeplug object to store read codeplug.
errError stack.
Returns
true on success and false on error.

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