1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
/** @defgroup md390 TYT MD-390 (U/V)
* Device specific classes for TyT MD-390, both the VHF and UHF version.
*
* \image html md390.jpg "MD-390" width=200px
* \image latex md390.jpg "MD-390" width=200px
*
* The TYT MD-390 is a decent VHF or UHF FM and DMR handheld radio.
* The radio is available with and without an GPS option. @c libdmrconf will support that
* feature. Non-GPS variants of that radio will simply ignore any GPS system settings.
*
* These radios support up to 1000 channels organized in 250 zones. Each zone may hold up to 16
* channels. There are also up to 250 scanlists
* holding up to 31(?) channels each.
*
* The radio can hold up to 1000 contacts (DMR contacts) and 250 RX group lists as well as up to 50
* pre-programmed messages.
*
* @ingroup tyt */
#ifndef MD390_HH
#define MD390_HH
#include "tyt_radio.hh"
#include "md390_codeplug.hh"
/** Implements an USB interface to the TYT MD-390 VHF/UHF 5W DMR (Tier I&II) radio.
*
* The TYT MD-390 radio use the TyT typical DFU-style communication protocol
* to read and write codeplugs onto the radio (see @c TyTRadio).
*
* @ingroup md390 */
class MD390 : public TyTRadio
{
Q_OBJECT
public:
/** Constructor.
* @param device Specifies the DFU device to use for communication with the device.
* @param err Passes an error stack to put error messages on.
* @param parent The QObject parent. */
MD390(TyTInterface *device=nullptr, const ErrorStack &err=ErrorStack(), QObject *parent=nullptr);
const QString &name() const;
const RadioLimits &limits() const;
const Codeplug &codeplug() const;
Codeplug &codeplug();
const CallsignDB *callsignDB() const;
CallsignDB *callsignDB();
/** Returns the default radio information. The actual instance may have different properties
* due to variants of the same radio. */
static RadioInfo defaultRadioInfo();
private:
/** Holds the name of the device. */
QString _name;
/** The codeplug object. */
MD390Codeplug _codeplug;
private:
/** Instance of limits for this radio. Gets intantiated for every radio as it depends on the
* radio variant. */
RadioLimits *_limits;
};
#endif // MD2017_HH
|