libdrmconf  0.12.0
A library to program DMR radios.
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members

Implements the BTECH DR-1801UV (BF-1801 A6). More...

#include <dr1801uv.hh>

Inheritance diagram for DR1801UV:
Inheritance graph
[legend]
Collaboration diagram for DR1801UV:
Collaboration graph
[legend]

Public Member Functions

 DR1801UV (DR1801UVInterface *device=nullptr, QObject *parent=nullptr)
 Constructs a new instance representig a DR-1801UV.
 
const QString & name () const
 Returns the name of the radio (e.g., device identifier).
 
const RadioLimitslimits () const
 Returns the limits for this radio. More...
 
const Codeplugcodeplug () const
 Returns the codeplug instance.
 
Codeplugcodeplug ()
 Returns the codeplug instance.
 
bool startDownload (bool blocking, const ErrorStack &err)
 Starts the download of the codeplug. More...
 
bool startUpload (Config *config, bool blocking, const Codeplug::Flags &flags, const ErrorStack &err)
 Derives the device-specific codeplug from the generic configuration and uploads that codeplug to the radio.
 
bool startUploadCallsignDB (UserDatabase *db, bool blocking, const CallsignDB::Selection &selection, const ErrorStack &err)
 Assembles the callsign DB from the given one and uploads 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. More...
 

Static Public Member Functions

static RadioInfo defaultRadioInfo ()
 Retunrs the default radio info.
 
- 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 ()
 Thread main routine, performs all blocking IO operations for codeplug up- and download.
 

Protected Attributes

DR1801UVInterface_device
 Owns the interface to the device.
 
QString _name
 Holds the device name, once it got identified.
 
DR1801UVCodeplug _codeplug
 The binary codeplug.
 
Config_config
 The generic configuration.
 
Codeplug::Flags _codeplugFlags
 Some codeplug flags.
 
- 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 ,
  StatusError
}
 Possible states of the radio object. More...
 
- Public Slots inherited from Radio
- 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

Implements the BTECH DR-1801UV (BF-1801 A6).

Member Function Documentation

◆ limits()

const RadioLimits & DR1801UV::limits ( ) const
virtual

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.

◆ startDownload()

bool DR1801UV::startDownload ( bool  blocking,
const ErrorStack err 
)
virtual

Starts the download of the codeplug.

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

Implements Radio.


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