libdrmconf 0.14.1
A library to program DMR radios.
Loading...
Searching...
No Matches
DM32UV Class Reference

Represents a Baofeng DM32UV. More...

#include <dm32uv.hh>

Inheritance diagram for DM32UV:
Collaboration diagram for DM32UV:

Classes

class  AddressMap
 Implements a memory map between physical and virtual codeplug addresses. More...
struct  Offset
 Some constants. More...

Public Member Functions

 DM32UV (DM32UVInterface *device=nullptr, QObject *parent=nullptr)
 Default constructor.
const QString & name () const override
 Returns the name of the radio (e.g., device identifier).
const RadioLimitslimits () const override
 Returns the limits for this radio.
const Codeplugcodeplug () const override
 Returns the codeplug instance.
Codeplugcodeplug () override
 Returns the codeplug instance.
bool startDownload (const TransferFlags &flags, const ErrorStack &err=ErrorStack()) override
 Starts the download of the codeplug.
bool startUpload (Config *config, const Codeplug::Flags &flags, const ErrorStack &err) override
 Derives the device-specific codeplug from the generic configuration and uploads that codeplug to the radio.
bool startUploadCallsignDB (UserDatabase *db, const CallsignDB::Flags &selection, const ErrorStack &err) override
 Assembles the callsign DB from the given one and uploads it to the device.
bool startUploadSatelliteConfig (SatelliteDatabase *db, const TransferFlags &flags, const ErrorStack &err) override
 Assembles the satellite config and writes it to the device.
Public Member Functions inherited from Radio
 Radio (QObject *parent=nullptr)
 Default constructor.
virtual const CallsignDBcallsignDB () const
 Returns the call-sign DB instance.
virtual CallsignDBcallsignDB ()
 Returns the call-sign DB instance.
Status status () const
 Returns the current status.
const ErrorStackerrorStack () const
 Returns the error stack, passed to startDownload, startUpload or startUploadCallsignDB.

Static Public Member Functions

static RadioInfo defaultRadioInfo ()
 Returns the default radio information.
Static Public Member Functions inherited from Radio
static Radiodetect (const USBDeviceDescriptor &descr, const RadioInfo &force=RadioInfo(), const ErrorStack &err=ErrorStack())
 Tries to detect the radio connected to the specified interface or constructs the specified radio using the RadioInfo passed by force.

Protected Member Functions

void run () override
 Thread main routine, performs all blocking IO operations for codeplug up- and download.

Protected Attributes

DM32UVInterface_dev
 The interface to the radio.
QString _radioName
 The name of the device.
Codeplug::Flags _codeplugFlags
 Holds the flags to control assembly and upload of code-plugs.
DM32UVCodeplug _codeplug
 Encoded / read codeplug.
DM32UVCallsignDB _callsigns
 Encoded call-sign db.
Config_config
 The generic configuration.
UserDatabase_userDB
 A weak reference to the user-database.
Protected Attributes inherited from Radio
Status _task
 The current state/task.
ErrorStack _errorStack
 The error stack.

Additional Inherited Members

Public Types inherited from Radio
enum  Status {
  StatusIdle , StatusDownload , StatusUpload , StatusUploadCallsigns ,
  StatusUploadSatellites , StatusError
}
 Possible states of the radio object. More...
Signals inherited from Radio
void downloadStarted ()
 Gets emitted once the codeplug download has been started.
void downloadProgress (int percent)
 Gets emitted on download progress (e.g., for progress bars).
void downloadFinished (Radio *radio, Codeplug *codeplug)
 Gets emitted once the codeplug download has been finished.
void downloadError (Radio *radio)
 Gets emitted if there was an error during the codeplug download.
void uploadStarted ()
 Gets emitted once the codeplug upload has been started.
void uploadProgress (int percent)
 Gets emitted on upload progress (e.g., for progress bars).
void uploadError (Radio *radio)
 Gets emitted if there was an error during the upload.
void uploadComplete (Radio *radio)
 Gets emitted once the codeplug upload has been completed successfully.

Detailed Description

Represents a Baofeng DM32UV.

Member Function Documentation

◆ codeplug() [1/2]

const Codeplug & DM32UV::codeplug ( ) const
overridevirtual

Returns the codeplug instance.

Implements Radio.

◆ codeplug() [2/2]

Codeplug & DM32UV::codeplug ( )
overridevirtual

Returns the codeplug instance.

Implements Radio.

◆ defaultRadioInfo()

RadioInfo DM32UV::defaultRadioInfo ( )
static

Returns the default radio information.

The actual instance may have different properties due to variants of the same radio.

◆ limits()

const RadioLimits & DM32UV::limits ( ) const
overridevirtual

Returns the limits for this radio.

Call RadioLimits::verifyConfig to verify a codeplug with respect to a radio.

Since
Version 0.10.2

Implements Radio.

◆ name()

const QString & DM32UV::name ( ) const
overridevirtual

Returns the name of the radio (e.g., device identifier).

Implements Radio.

◆ startDownload()

bool DM32UV::startDownload ( const TransferFlags & flags,
const ErrorStack & err = ErrorStack() )
overridevirtual

Starts the download of the codeplug.

Once the download finished, the codeplug can be accessed and decoded using the codeplug() method.

Implements Radio.

◆ startUpload()

bool DM32UV::startUpload ( Config * config,
const Codeplug::Flags & flags,
const ErrorStack & err )
overridevirtual

Derives the device-specific codeplug from the generic configuration and uploads that codeplug to the radio.

Implements Radio.

◆ startUploadCallsignDB()

bool DM32UV::startUploadCallsignDB ( UserDatabase * db,
const CallsignDB::Flags & selection,
const ErrorStack & err )
overridevirtual

Assembles the callsign DB from the given one and uploads it to the device.

Implements Radio.

◆ startUploadSatelliteConfig()

bool DM32UV::startUploadSatelliteConfig ( SatelliteDatabase * db,
const TransferFlags & flags,
const ErrorStack & err )
overridevirtual

Assembles the satellite config and writes it to the device.

Implements Radio.


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