libdrmconf 0.14.1
A library to program DMR radios.
Loading...
Searching...
No Matches
OpenGD77BaseSatelliteConfig Class Referenceabstract

Implements the satellite tracking configuration for the OpenGD77 type radios. More...

#include <opengd77base_satelliteconfig.hh>

Inheritance diagram for OpenGD77BaseSatelliteConfig:
Collaboration diagram for OpenGD77BaseSatelliteConfig:

Public Types

enum  ImageType { EEPROM = 0 , FLASH = 1 }
 Possible image types.

Public Member Functions

 OpenGD77BaseSatelliteConfig (QObject *parent=nullptr)
 Default constructor.
virtual bool isValid () const =0
 Returns true, if the additional settings element is valid, that should contain the satellite settings.
virtual void initialize ()=0
 Initializes and clears the additional settings element.
virtual bool encode (SatelliteDatabase *db, const ErrorStack &err=ErrorStack())=0
 Encodes the given satellite database.
Public Member Functions inherited from DFUFile
 DFUFile (QObject *parent=nullptr)
 Constructs an empty DFU file object.
uint32_t size () const
 Returns the total size of the DFU file.
uint32_t memSize () const
 Returns the total memory size stored in the DFU file.
int numImages () const
 Returns the number of images within the DFU file.
const Imageimage (int i) const
 Returns a reference to the i-th image of the file.
Imageimage (int i)
 Returns a reference to the i-th image of the file.
void addImage (const QString &name, uint8_t altSettings=1)
 Adds a new image to the file.
void addImage (const Image &img)
 Adds an image to the file.
void remImage (int i)
 Deletes the i-th image from the file.
bool isAligned (unsigned blocksize) const
 Checks if all image addresses and sizes is aligned with the given block size.
bool read (const QString &filename, const ErrorStack &err=ErrorStack())
 Reads the specified DFU file.
bool read (QFile &file, const ErrorStack &err=ErrorStack())
 Reads the specified DFU file.
bool write (const QString &filename, const ErrorStack &err=ErrorStack())
 Writes to the specified file.
bool write (QFile &file, const ErrorStack &err=ErrorStack())
 Writes to the specified file.
void dump (QTextStream &stream) const
 Dumps a text representation of the DFU file structure to the specified text stream.
virtual bool isAllocated (uint32_t offset, uint32_t img=0) const
 Returns true if the specified address (and image) is allocated.
virtual unsigned char * data (uint32_t offset, uint32_t img=0)
 Returns a pointer to the encoded raw data at the specified offset.
virtual const unsigned char * data (uint32_t offset, uint32_t img=0) const
 Returns a const pointer to the encoded raw data at the specified offset.

Static Public Member Functions

static constexpr unsigned int size ()
 Size of the image to write.

Additional Inherited Members

Protected Member Functions inherited from SatelliteConfig
 SatelliteConfig (QObject *parent=nullptr)
 Hidden constructor.
Protected Attributes inherited from DFUFile
QVector< Image_images
 The list of images.

Detailed Description

Implements the satellite tracking configuration for the OpenGD77 type radios.

Member Function Documentation

◆ encode()

virtual bool OpenGD77BaseSatelliteConfig::encode ( SatelliteDatabase * db,
const ErrorStack & err = ErrorStack() )
pure virtual

Encodes the given satellite database.

Implements SatelliteConfig.

Implemented in OpenGD77SatelliteConfig, and OpenUV380SatelliteConfig.

◆ initialize()

virtual void OpenGD77BaseSatelliteConfig::initialize ( )
pure virtual

Initializes and clears the additional settings element.

Implemented in OpenGD77SatelliteConfig, and OpenUV380SatelliteConfig.

◆ isValid()

virtual bool OpenGD77BaseSatelliteConfig::isValid ( ) const
pure virtual

Returns true, if the additional settings element is valid, that should contain the satellite settings.

Implemented in OpenGD77SatelliteConfig, and OpenUV380SatelliteConfig.


The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/qdmr-0.14.1-build/qdmr-0.14.1/lib/opengd77base_satelliteconfig.hh
  • /builddir/build/BUILD/qdmr-0.14.1-build/qdmr-0.14.1/lib/opengd77base_satelliteconfig.cc