1 #ifndef GD73CODEPLUG_HH
2 #define GD73CODEPLUG_HH
8 #include "rxgrouplist.hh"
11 #include "radioddity_extensions.hh"
72 static constexpr
unsigned int size() {
return 0x0061; }
99 static constexpr
unsigned int serial() {
return 16; }
101 static constexpr
unsigned int modelName() {
return 16; }
103 static constexpr
unsigned int deviceID() {
return 16; }
115 static constexpr
unsigned int dateCentury() {
return 0x0001; }
116 static constexpr
unsigned int dateYear() {
return 0x0002; }
117 static constexpr
unsigned int dateMonth() {
return 0x0003; }
118 static constexpr
unsigned int dateDay() {
return 0x0004; }
119 static constexpr
unsigned int dateHour() {
return 0x0005; }
120 static constexpr
unsigned int dateMinute() {
return 0x0006; }
121 static constexpr
unsigned int dateSecond() {
return 0x0007; }
122 static constexpr
unsigned int serial() {
return 0x0011; }
123 static constexpr
unsigned int modelName() {
return 0x0021; }
124 static constexpr
unsigned int deviceID() {
return 0x0031; }
125 static constexpr
unsigned int modelNumber() {
return 0x0041; }
141 Call = 0, Message = 1
153 static constexpr
unsigned int size() {
return 0x0005; }
159 static constexpr
unsigned int contact() {
return 0x0001; }
160 static constexpr
unsigned int action() {
return 0x0003; }
161 static constexpr
unsigned int message() {
return 0x0001; }
181 Off = 0, Text = 1,
Image = 2, Both = 3
190 None=0, RadioEnable=1, RadioCheck=2, RadioDisable=3, PowerLevel=4,
191 Monitor=5, EmergencyOn=6, EmergencyOff=7, ZoneSwitch=8, ToggleScan=9, ToggleVOX=10,
192 OneTouch1=11, OneTouch2=12, OneTouch3=13, OneTouch4=14, OneTouch5=15, ToggleTalkaround=16,
193 LoneWorker=17, TBST=18, CallSwell=19
210 static constexpr
unsigned int size() {
return 0x00aa; }
213 QString
name()
const;
218 unsigned int dmrID()
const;
228 unsigned int vox()
const;
230 void setVOX(
unsigned int level);
363 static constexpr
unsigned int name() {
return 16; }
373 static constexpr
unsigned int pin() {
return 6; }
396 static constexpr
unsigned int name() {
return 0x0000; }
397 static constexpr
unsigned int dmrId() {
return 0x0020; }
398 static constexpr
unsigned int language() {
return 0x0024; }
399 static constexpr
unsigned int voxLevel() {
return 0x0026; }
400 static constexpr
unsigned int squelchLevel() {
return 0x0027; }
401 static constexpr
unsigned int tot() {
return 0x0028; }
402 static constexpr
unsigned int txInterrupt() {
return 0x0029; }
403 static constexpr
unsigned int powerSave() {
return 0x002a; }
405 static constexpr
unsigned int readLockEnable() {
return 0x002c; }
406 static constexpr
unsigned int writeLockEnable() {
return 0x002d; }
408 static constexpr
unsigned int readLockPin() {
return 0x0030; }
409 static constexpr
unsigned int writeLockPin() {
return 0x0036; }
410 static constexpr
unsigned int dmrMicGain() {
return 0x003d; }
411 static constexpr
unsigned int fmMicGain() {
return 0x003f; }
413 static constexpr
unsigned int loneWorkerReminderPeriod() {
return 0x0042; }
415 static constexpr
unsigned int bootTextLine1() {
return 0x0044; }
416 static constexpr
unsigned int bootTextLine2() {
return 0x0064; }
417 static constexpr
unsigned int keyToneEnable() {
return 0x0084; }
418 static constexpr
unsigned int keyToneVolume() {
return 0x0085; }
419 static constexpr
unsigned int lowBatToneEnable() {
return 0x0086; }
420 static constexpr
unsigned int lowBatToneVolume() {
return 0x0087; }
422 static constexpr
unsigned int progFuncKey1ShortPress() {
return 0x008b; }
423 static constexpr
unsigned int progFuncKey1LongPress() {
return 0x008c; }
424 static constexpr
unsigned int progFuncKey2ShortPress() {
return 0x008d; }
425 static constexpr
unsigned int progFuncKey2LongPress() {
return 0x008e; }
426 static constexpr
unsigned int oneTouchSettings() {
return 0x0090; }
448 static constexpr
unsigned int size() {
return 0x0031; }
451 QString
name()
const;
475 static constexpr
unsigned int name() {
return 0x0000; }
476 static constexpr
unsigned int channeCount() {
return 0x0010; }
477 static constexpr
unsigned int channelIndices() {
return 0x0011; }
478 static constexpr
unsigned int betweenChannelIndices() {
return 0x0002; }
501 static constexpr
unsigned int size() {
return 0x0c41; }
514 static constexpr
unsigned int zoneCount() {
return 64; }
521 static constexpr
unsigned int zoneCount() {
return 0x0000; }
522 static constexpr
unsigned int zones() {
return 0x0001; }
546 Always = 0, CC_CTCSS = 1, Free=2
554 static constexpr
unsigned int size() {
return 0x0046; }
557 QString
name()
const;
701 static constexpr
unsigned int name() {
return 0x0000; }
702 static constexpr
unsigned int bandwidth() {
return 0x0020; }
703 static constexpr
unsigned int scanList() {
return 0x0021; }
704 static constexpr
unsigned int channelType() {
return 0x0022; }
705 static constexpr
unsigned int talkaround() {
return 0x0023; }
706 static constexpr
unsigned int rxOnly() {
return 0x0024; }
707 static constexpr
unsigned int scanAutoStart() {
return 0x0026; }
708 static constexpr
unsigned int rxFrequency() {
return 0x0027; }
709 static constexpr
unsigned int txFrequency() {
return 0x002b; }
711 static constexpr
unsigned int power() {
return 0x0030; }
712 static constexpr
unsigned int admid() {
return 0x0031; }
713 static constexpr
unsigned int rxToneMode() {
return 0x0034; }
714 static constexpr
unsigned int rxCTCSS() {
return 0x0035; }
715 static constexpr
unsigned int rxDCS() {
return 0x0036; }
716 static constexpr
unsigned int txToneMode() {
return 0x0037; }
717 static constexpr
unsigned int txCTCSS() {
return 0x0038; }
718 static constexpr
unsigned int txDCS() {
return 0x0039; }
719 static constexpr
unsigned int timeslot() {
return 0x003c; }
720 static constexpr
unsigned int colorcode() {
return 0x003d; }
722 static constexpr
unsigned int contactIndex() {
return 0x0040; }
747 static constexpr
unsigned int size() {
return 0x11802; }
767 static constexpr
unsigned int channelCount() {
return 0x0000; }
768 static constexpr
unsigned int channels() {
return 0x0002; }
790 static constexpr
unsigned int size() {
return 0x025; }
793 QString
name()
const;
803 unsigned int id()
const;
805 void setID(
unsigned int id);
823 static constexpr
unsigned int name() {
return 0x0000; }
824 static constexpr
unsigned int type() {
return 0x0020; }
825 static constexpr
unsigned int id() {
return 0x0021; }
848 static constexpr
unsigned int size() {
return 0x9c02; }
866 static constexpr
unsigned int contactCount() {
return 0x0000; }
867 static constexpr
unsigned int contacts() {
return 0x0802; }
889 static constexpr
unsigned int size() {
return 0x0053; }
892 QString
name()
const;
923 static constexpr
unsigned int name() {
return 0x0000; }
924 static constexpr
unsigned int memberCount() {
return 0x0010; }
925 static constexpr
unsigned int members() {
return 0x0011; }
926 static constexpr
unsigned int betweenMembers() {
return 0x0002; }
949 static constexpr
unsigned int size() {
return 0x510f; }
969 static constexpr
unsigned int memberCount() {
return 0x0000; }
970 static constexpr
unsigned int members() {
return 0x0001; }
986 None=0, Fixed=1, Selected=2
998 static constexpr
unsigned int size() {
return 0x005f; }
1001 QString
name()
const;
1101 static constexpr
unsigned int name() {
return 0x0000; }
1102 static constexpr
unsigned int memberCount() {
return 0x0010; }
1103 static constexpr
unsigned int members() {
return 0x0011; }
1104 static constexpr
unsigned int betweenMembers() {
return 0x0002; }
1105 static constexpr
unsigned int priChannel1Mode() {
return 0x0051; }
1106 static constexpr
unsigned int priChannel2Mode() {
return 0x0052; }
1107 static constexpr
unsigned int priChannel1Zone() {
return 0x0053; }
1108 static constexpr
unsigned int priChannel2Zone() {
return 0x0054; }
1109 static constexpr
unsigned int priChannel1Channel() {
return 0x0055; }
1110 static constexpr
unsigned int priChannel2Channel() {
return 0x0057; }
1111 static constexpr
unsigned int txChannelMode() {
return 0x0059; }
1112 static constexpr
unsigned int txChannelZone() {
return 0x005a; }
1113 static constexpr
unsigned int txChannelChannel() {
return 0x005b; }
1114 static constexpr
unsigned int holdTime() {
return 0x005d; }
1115 static constexpr
unsigned int txHoldTime() {
return 0x005e; }
1138 static constexpr
unsigned int size() {
return 0x601; }
1158 static constexpr
unsigned int memberCount() {
return 0x0000; }
1159 static constexpr
unsigned int members() {
return 0x0011; }
1181 static constexpr
unsigned int size() {
return 0x000e; }
1241 static constexpr
unsigned int callHangTime() {
return 0x0000; }
1242 static constexpr
unsigned int activeWaitTime() {
return 0x0001; }
1243 static constexpr
unsigned int activeRetries() {
return 0x0002; }
1244 static constexpr
unsigned int txPreambles() {
return 0x0003; }
1245 static constexpr
unsigned int decodeDisableRadio() {
return 0x0004; }
1246 static constexpr
unsigned int decodeCheckRadio() {
return 0x0005; }
1247 static constexpr
unsigned int decodeEnableRadio() {
return 0x0006; }
1268 static constexpr
unsigned int size() {
return 0x005; }
1285 static constexpr
unsigned int size() {
return 0x0000; }
1286 static constexpr
unsigned int key() {
return 0x0001; }
1307 static constexpr
unsigned int size() {
return 0x0050; }
1318 static constexpr
unsigned int keys() {
return 16; }
1325 static constexpr
unsigned int keys() {
return 0x0000; }
1346 static constexpr
unsigned int size() {
return 0x051; }
1349 QString
text()
const;
1351 void setText(
const QString &message);
1369 static constexpr
unsigned int size() {
return 0x0000; }
1370 static constexpr
unsigned int text() {
return 0x0001; }
1393 static constexpr
unsigned int size() {
return 0x511; }
1419 static constexpr
unsigned int memberCount() {
return 0x0000; }
1420 static constexpr
unsigned int members() {
return 0x0001; }
1441 static constexpr
unsigned int size() {
return 0x005; }
1466 static constexpr
unsigned int sidetone() {
return 0x0000; }
1467 static constexpr
unsigned int preambleDuration() {
return 0x0001; }
1468 static constexpr
unsigned int toneDuration() {
return 0x0002; }
1469 static constexpr
unsigned int pauseDuration() {
return 0x0003; }
1470 static constexpr
unsigned int deadTime() {
return 0x0004; }
1489 static constexpr
unsigned int size() {
return 0x0014; }
1502 static constexpr
unsigned int members() {
return 0x0000; }
1523 static constexpr
unsigned int size() {
return 0x000a; }
1529 static constexpr
unsigned int digits() {
return 16; }
1536 static constexpr
unsigned int count() {
return 0x0000; }
1537 static constexpr
unsigned int digits() {
return 0x0001; }
1556 static constexpr
unsigned int size() {
return 0x0090; }
1569 static constexpr
unsigned int members() {
return 0x0000; }
1590 static constexpr
unsigned int size() {
return 0x0005; }
1596 static constexpr
unsigned int systemIndex() {
return 0x0000; }
1597 static constexpr
unsigned int pttIDType() {
return 0x0001; }
1598 static constexpr
unsigned int pttIDMode() {
return 0x0002; }
1599 static constexpr
unsigned int connectIDIndex() {
return 0x0003; }
1600 static constexpr
unsigned int disconnectIDIndex() {
return 0x0004; }
1619 static constexpr
unsigned int size() {
return 0x00a0; }
1632 static constexpr
unsigned int members() {
return 0x0000; }
1710 static constexpr
unsigned int timestamp() {
return 0x00000; }
1711 static constexpr
unsigned int settings() {
return 0x00061; }
1712 static constexpr
unsigned int zones() {
return 0x0010b; }
1713 static constexpr
unsigned int channels() {
return 0x00d4c; }
1714 static constexpr
unsigned int contacts() {
return 0x125ff; }
1715 static constexpr
unsigned int groupLists() {
return 0x1c201; }
1716 static constexpr
unsigned int scanLists() {
return 0x21310; }
1717 static constexpr
unsigned int dmrSettings() {
return 0x21911; }
1718 static constexpr
unsigned int encryptionKeys() {
return 0x2191f; }
1719 static constexpr
unsigned int messages() {
return 0x2196f; }
1720 static constexpr
unsigned int dtmfSystems() {
return 0x21e80; }
1721 static constexpr
unsigned int dtmfNumbers() {
return 0x21e94; }
1722 static constexpr
unsigned int dtmfPTTSettings() {
return 0x21f24; }
Represents a DMR (basic) encryption key.
Definition: encryptionextension.hh:47
The base class of all channels (analog and digital) of a codeplug configuration.
Definition: channel.hh:34
Power
Specifies the prefix for every ID assigned to every channel during serialization.
Definition: channel.hh:61
Base class for all codeplug contexts.
Definition: codeplug.hh:238
Represents the abstract base class of all codeplug elements.
Definition: codeplug.hh:51
Certain flags passed to CodePlug::encode to control the transfer and encoding of the codeplug.
Definition: codeplug.hh:25
This class defines the interface all device-specific code-plugs must implement.
Definition: codeplug.hh:19
The config class, representing the codeplug configuration.
Definition: config.hh:70
Represents a single image within a DFUFile.
Definition: dfufile.hh:121
TimeSlot
Possible timeslots for digital channels.
Definition: channel.hh:389
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition: errorstack.hh:41
Bandwidth
Possible bandwidth of an analog channel.
Definition: channel.hh:240
Implements the bank of channels within the binary codeplug.
Definition: gd73_codeplug.hh:737
bool linkChannels(Context &ctx, const ErrorStack &err)
Link all decoded channels.
Definition: gd73_codeplug.cc:1274
static constexpr unsigned int size()
Returns the size of the channel bank.
Definition: gd73_codeplug.hh:747
ChannelBankElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:1245
bool encode(Context &ctx, const ErrorStack &err)
Encodes all indexed channels.
Definition: gd73_codeplug.cc:1288
bool createChannels(Context &ctx, const ErrorStack &err)
Creates the encoded channels, also updates context.
Definition: gd73_codeplug.cc:1258
Implements an FM/DMR channel.
Definition: gd73_codeplug.hh:534
bool scanAutoStartEnabled() const
Returns true if scan auto-start is enabled.
Definition: gd73_codeplug.cc:1388
unsigned int txContactIndex() const
Returns the tx contact index.
Definition: gd73_codeplug.cc:1590
Admit admit() const
Returns the admit criterion.
Definition: gd73_codeplug.cc:1455
Channel * toChannel(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes the channel.
Definition: gd73_codeplug.cc:1637
Frequency txFrequency() const
Returns the TX frequency.
Definition: gd73_codeplug.cc:1406
void setColorCode(unsigned int cc)
Sets the color code.
Definition: gd73_codeplug.cc:1556
void setEmergencySystemIndex(unsigned int idx)
Sets the emergency system index.
Definition: gd73_codeplug.cc:1611
void setName(const QString &name)
Sets the channel name.
Definition: gd73_codeplug.cc:1323
Channel::Power power() const
Returns the power setting.
Definition: gd73_codeplug.cc:1432
bool talkaroundEnabled() const
Returns true if talkaround is enabled.
Definition: gd73_codeplug.cc:1370
void setAdmit(Admit admit)
Sets the admit criterion.
Definition: gd73_codeplug.cc:1459
bool hasDTMFPTTSettingsIndex() const
Returns true if channel has DTMF PTT settings index.
Definition: gd73_codeplug.cc:1415
bool groupListAllMatch() const
Returns true, if no group list match is needed (monitor).
Definition: gd73_codeplug.cc:1565
void setGroupListIndex(unsigned int idx)
Sets the group list index.
Definition: gd73_codeplug.cc:1573
Type
Possible channel types.
Definition: gd73_codeplug.hh:541
Type type() const
Returns the channel type.
Definition: gd73_codeplug.cc:1361
void clearEncryptionKeyIndex()
Clears the encryption key index.
Definition: gd73_codeplug.cc:1632
void clearScanListIndex()
Clears the scan list index.
Definition: gd73_codeplug.cc:1356
Signaling::Code txTone() const
Returns the TX tone.
Definition: gd73_codeplug.cc:1498
void enableTalkaround(bool enable)
Enable/disable talkaround.
Definition: gd73_codeplug.cc:1374
QString name() const
Returns the name of the channel.
Definition: gd73_codeplug.cc:1319
void setRXTone(Signaling::Code code)
Sets the RX tone.
Definition: gd73_codeplug.cc:1480
unsigned int groupListIndex() const
Returns the group list index.
Definition: gd73_codeplug.cc:1569
bool hasTXContact() const
Returns true, if the transmit contact is set.
Definition: gd73_codeplug.cc:1586
unsigned int dtmfPTTSettingsIndex() const
Returns the DTMF PTT settings index.
Definition: gd73_codeplug.cc:1419
bool hasScanListIndex() const
Returns true, if a scan list index is set.
Definition: gd73_codeplug.cc:1344
unsigned int colorCode() const
Returns the color code.
Definition: gd73_codeplug.cc:1552
void setScanListIndex(unsigned int idx)
Sets the scan list index.
Definition: gd73_codeplug.cc:1352
FMChannel::Bandwidth bandwidth() const
Returns the bandwidth of the channel.
Definition: gd73_codeplug.cc:1328
unsigned int emergencySystemIndex() const
Returns the emergency system index.
Definition: gd73_codeplug.cc:1607
void setType(Type type)
Sets the channel type.
Definition: gd73_codeplug.cc:1365
void clearEmergencySystemIndex()
Clears the emergency system index.
Definition: gd73_codeplug.cc:1615
void setDTMFPTTSettingsIndex(unsigned int idx)
Sets the DTMF PTT settings index.
Definition: gd73_codeplug.cc:1423
unsigned int scanListIndex() const
Returns the index of the scan list.
Definition: gd73_codeplug.cc:1348
Admit
Possible admit criteria.
Definition: gd73_codeplug.hh:545
void clearTXContactIndex()
Clears the transmit contact index.
Definition: gd73_codeplug.cc:1598
void setTimeSlot(DMRChannel::TimeSlot ts)
Sets the time slot.
Definition: gd73_codeplug.cc:1544
void clearDTMFPTTSettingsIndex()
Resets the DTMF PTT settings index.
Definition: gd73_codeplug.cc:1427
void setBandwidth(FMChannel::Bandwidth bandwidth)
Sets the bandwidth.
Definition: gd73_codeplug.cc:1336
bool groupListMatchesContact() const
Returns true, if group list matches current TX contact.
Definition: gd73_codeplug.cc:1561
unsigned int encryptionKeyIndex() const
Returns the encryption key index.
Definition: gd73_codeplug.cc:1624
void setGroupListAllMatch()
Enables, that no group list match is needed (monitor).
Definition: gd73_codeplug.cc:1577
bool hasEmergencySystemIndex() const
Returns true if an emergency system index is set.
Definition: gd73_codeplug.cc:1603
bool rxOnly() const
Returns true if RX only is enabled.
Definition: gd73_codeplug.cc:1379
void enableScanAutoStart(bool enable)
Enables/disables scan auto-start.
Definition: gd73_codeplug.cc:1392
void setTXContactIndex(unsigned int idx)
Sets the transmit contact index.
Definition: gd73_codeplug.cc:1594
bool hasEncryptionKeyIndex() const
Returns true if an encryption key index is set.
Definition: gd73_codeplug.cc:1620
DMRChannel::TimeSlot timeSlot() const
Returns the time slot.
Definition: gd73_codeplug.cc:1532
void setPower(Channel::Power power)
Sets the power.
Definition: gd73_codeplug.cc:1440
Frequency rxFrequency() const
Returns the RX frequency.
Definition: gd73_codeplug.cc:1397
void setTXFrequency(const Frequency &f)
Sets the TX frequency.
Definition: gd73_codeplug.cc:1410
void setRXFrequency(const Frequency &f)
Sets the RX frequency.
Definition: gd73_codeplug.cc:1401
void setEncryptionKeyIndex(unsigned int idx)
Sets the encryption key index.
Definition: gd73_codeplug.cc:1628
void setTXTone(Signaling::Code code)
Sets the TX tone.
Definition: gd73_codeplug.cc:1514
ChannelElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:1306
Signaling::Code rxTone() const
Returns the RX tone.
Definition: gd73_codeplug.cc:1464
static constexpr unsigned int size()
Returns the size of the channel element.
Definition: gd73_codeplug.hh:554
bool linkChannel(Channel *ch, Context &ctx, const ErrorStack &err=ErrorStack())
Links decoded channel.
Definition: gd73_codeplug.cc:1675
bool encode(Channel *ch, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the given channel.
Definition: gd73_codeplug.cc:1722
void setGroupListMatchesContact()
Enables, that the group list matches the current TX contact.
Definition: gd73_codeplug.cc:1581
void enableRXOnly(bool enable)
Enables/disables RX only.
Definition: gd73_codeplug.cc:1383
Implements the DMR settings element.
Definition: gd73_codeplug.hh:1171
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:1181
bool decodeRadioCheckEnabled() const
Returns true, if decoding of 'radio check' is enabled.
Definition: gd73_codeplug.cc:708
bool updateConfig(Context &ctx, const ErrorStack &err=ErrorStack())
Updates the settings within the config.
Definition: gd73_codeplug.cc:725
bool decodeEnableRadioEnabled() const
Returns true, if decoding of 'enable radio' is enabled.
Definition: gd73_codeplug.cc:716
void setCallHangTime(const Interval &intv)
Sets the call hang time (private & group).
Definition: gd73_codeplug.cc:669
Interval callHangTime() const
Returns the call hang time (private & group).
Definition: gd73_codeplug.cc:665
unsigned int txPreambles() const
Retruns the number of TX preambles.
Definition: gd73_codeplug.cc:691
unsigned int activeRetries() const
Retruns the number of active reties.
Definition: gd73_codeplug.cc:682
void setActiveRetries(unsigned int count)
Sets the number of active retries.
Definition: gd73_codeplug.cc:686
void setActiveWaitTime(const Interval &interval)
Sets the active wait time.
Definition: gd73_codeplug.cc:677
bool encode(Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the settings from the given config.
Definition: gd73_codeplug.cc:740
bool decodeDisableRadioEnabled() const
Returns true, if decoding of 'disable radio' is enabled.
Definition: gd73_codeplug.cc:700
Interval activeWaitTime() const
Returns the active wait time.
Definition: gd73_codeplug.cc:673
void enableDecodeDisableRadio(bool enable)
Enables/disables decoding of 'disable radio'.
Definition: gd73_codeplug.cc:704
void enableDecodeEnableRadio(bool enable)
Enables/disables decoding of 'enable radio'.
Definition: gd73_codeplug.cc:720
DMRSettingsElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:652
void setTXPreambles(unsigned int count)
Sets the number of TX preambles.
Definition: gd73_codeplug.cc:695
void enableDecodeRadioCheck(bool enable)
Enables/disables decoding of 'radio check'.
Definition: gd73_codeplug.cc:712
Implements the bank of 16 DTMF numbers.
Definition: gd73_codeplug.hh:1546
DTMFNumberBankElement(uint8_t *ptr, size_t size)
Hidden constructor.
DTMFNumberBankElement(uint8_t *ptr)
Constructor.
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:1556
Implements a single DTMF number.
Definition: gd73_codeplug.hh:1513
DTMFNumberElement(uint8_t *ptr, size_t size)
Hidden constructor.
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:1523
DTMFNumberElement(uint8_t *ptr)
Constructor.
Implements the bank of 32 DTMF PTT settings.
Definition: gd73_codeplug.hh:1609
DTMFPTTSettingBankElement(uint8_t *ptr, size_t size)
Hidden constructor.
DTMFPTTSettingBankElement(uint8_t *ptr)
Constructor.
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:1619
Implements a single DTMF PTT setting.
Definition: gd73_codeplug.hh:1580
DTMFPTTSettingElement(uint8_t *ptr)
Constructor.
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:1590
DTMFPTTSettingElement(uint8_t *ptr, size_t size)
Hidden constructor.
Implements the bank of 4 DTMF systems.
Definition: gd73_codeplug.hh:1479
DTMFSystemBankElement(uint8_t *ptr, size_t size)
Hidden constructor.
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:1489
DTMFSystemBankElement(uint8_t *ptr)
Constructor.
Implements a single DTMF system.
Definition: gd73_codeplug.hh:1431
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:1441
DTMFSystemElement(uint8_t *ptr, size_t size)
Hidden constructor.
DTMFSystemElement(uint8_t *ptr)
Constructor.
Implements the encryption key-bank.
Definition: gd73_codeplug.hh:1297
bool encodeEncryptionKeys(Context &ctx, const ErrorStack &err=ErrorStack())
Encodes encryption keys.
Definition: gd73_codeplug.cc:851
EncryptionKeyBankElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:820
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:1307
bool createEncryptionKeys(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes and create encryption keys.
Definition: gd73_codeplug.cc:833
Implements the encryption key element.
Definition: gd73_codeplug.hh:1258
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:1268
void clear()
Abstract method to reset the element within the codeplug.
Definition: gd73_codeplug.cc:769
unsigned int keySize() const
Returns the key size in bits.
Definition: gd73_codeplug.cc:779
void setKeySize(unsigned int size)
Sets the key size in bits.
Definition: gd73_codeplug.cc:783
EncryptionKeyElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:756
bool isValid() const
Returns true if the pointer is not null.
Definition: gd73_codeplug.cc:774
Encodes the bank of group lists.
Definition: gd73_codeplug.hh:939
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:949
GroupListBankElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:1101
bool linkGroupLists(Context &ctx, const ErrorStack &err)
Link all decoded group lists.
Definition: gd73_codeplug.cc:1130
bool createGroupLists(Context &ctx, const ErrorStack &err)
Create all encoded group lists, also update context.
Definition: gd73_codeplug.cc:1114
bool encode(Context &ctx, const ErrorStack &err)
Encode group lists.
Definition: gd73_codeplug.cc:1144
Encodes a group list.
Definition: gd73_codeplug.hh:879
QString name() const
Returns the name of the group list.
Definition: gd73_codeplug.cc:1179
RXGroupList * toGroupList(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes the group list.
Definition: gd73_codeplug.cc:1201
bool encode(RXGroupList *lst, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the group list.
Definition: gd73_codeplug.cc:1225
unsigned int memberIndex(unsigned int i) const
Returns the i-th member index.
Definition: gd73_codeplug.cc:1196
unsigned int members() const
Returns the number of entries in the group list.
Definition: gd73_codeplug.cc:1188
bool hasMember(unsigned int i) const
Returns true, if the i-th member is set.
Definition: gd73_codeplug.cc:1192
void setName(const QString &name)
Sets the name of the group list.
Definition: gd73_codeplug.cc:1183
bool linkGroupList(RXGroupList *lst, Context &ctx, const ErrorStack &err=ErrorStack())
Links the given RX group list.
Definition: gd73_codeplug.cc:1207
GroupListElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:1166
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:889
Implements the message bank element.
Definition: gd73_codeplug.hh:1383
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:1393
unsigned int memberCount() const
Returns the member count.
Definition: gd73_codeplug.cc:930
bool encode(const SMSExtension *ext, const ErrorStack &err=ErrorStack())
Encodes all messages defined within the SMS extension.
Definition: gd73_codeplug.cc:961
void setMemberCount(unsigned int count)
Sets the member count.
Definition: gd73_codeplug.cc:934
MessageElement message(unsigned int i)
Returns the i-th message.
Definition: gd73_codeplug.cc:939
bool decode(SMSExtension *ext, const ErrorStack &err=ErrorStack())
Updates the SMS extension by decoding all defined messages.
Definition: gd73_codeplug.cc:945
MessageBankElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:917
Implements a message.
Definition: gd73_codeplug.hh:1336
MessageElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:870
SMSTemplate * decode(const ErrorStack &err=ErrorStack())
Creates a SMS template from this message.
Definition: gd73_codeplug.cc:904
QString text() const
Returns the message text.
Definition: gd73_codeplug.cc:883
void setText(const QString &message)
Set message text.
Definition: gd73_codeplug.cc:889
bool encode(SMSTemplate *message, const ErrorStack &err=ErrorStack())
Sets a message element from an SMS message.
Definition: gd73_codeplug.cc:896
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:1346
Implements one of the 5 one-touch settings elements.
Definition: gd73_codeplug.hh:137
Action
Possible one-touch actions.
Definition: gd73_codeplug.hh:140
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:153
OneTouchSettingElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:636
Implements the bank of scan lists.
Definition: gd73_codeplug.hh:1128
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:1138
ScanListBankElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:1900
bool createScanLists(Context &ctx, const ErrorStack &err)
Creates all encoded scan lists, also updates context.
Definition: gd73_codeplug.cc:1913
bool linkScanLists(Context &ctx, const ErrorStack &err)
Links all decoded scan lists.
Definition: gd73_codeplug.cc:1929
bool encode(Context &ctx, const ErrorStack &err)
Encodes all scan lists.
Definition: gd73_codeplug.cc:1943
Implements a scan list.
Definition: gd73_codeplug.hh:982
void clearSecondaryZoneIndex()
Clears the secondary zone index.
Definition: gd73_codeplug.cc:2044
void setSecondaryChannelIndex(unsigned int idx)
Sets the secondary channel index.
Definition: gd73_codeplug.cc:2056
void setPrimaryChannelMode(ChannelMode mode)
Sets the primary channel mode.
Definition: gd73_codeplug.cc:1987
bool hasPrimaryZoneIndex() const
Returns true, if a primary zone is set.
Definition: gd73_codeplug.cc:1991
void setRevertChannelIndex(unsigned int idx)
Sets the revert channel index.
Definition: gd73_codeplug.cc:2097
bool encode(ScanList *lst, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the scan list.
Definition: gd73_codeplug.cc:2179
void clearSecondaryChannelIndex()
Clears the secondary channel index.
Definition: gd73_codeplug.cc:2060
bool hasPrimaryChannelIndex() const
Returns true, if a primary channel is set.
Definition: gd73_codeplug.cc:2007
unsigned int revertChannelIndex() const
Returns the revert channel index.
Definition: gd73_codeplug.cc:2093
QString name() const
Returns the name of the scan list.
Definition: gd73_codeplug.cc:1974
void setSecondaryZoneIndex(unsigned int idx)
Sets the secondary zone index.
Definition: gd73_codeplug.cc:2040
void clearRevertZoneIndex()
Clears the revert zone index.
Definition: gd73_codeplug.cc:2085
Interval txHoldTime() const
Returns the TX hold time.
Definition: gd73_codeplug.cc:2115
void setTXHoldTime(const Interval &interval)
Sets the TX hold time.
Definition: gd73_codeplug.cc:2119
void clearPrimaryChannelIndex()
Clears the primary channel index.
Definition: gd73_codeplug.cc:2019
unsigned int revertZoneIndex() const
Returns the revert zone index.
Definition: gd73_codeplug.cc:2077
void setRevertZoneIndex(unsigned int idx)
Sets the revert zone index.
Definition: gd73_codeplug.cc:2081
void setSecondaryChannelMode(ChannelMode mode)
Sets the secondary channel mode.
Definition: gd73_codeplug.cc:2028
void clearRevertChannelIndex()
Clears the revert channel index.
Definition: gd73_codeplug.cc:2101
ChannelMode secondaryChannelMode() const
Returns the secondary channel mode.
Definition: gd73_codeplug.cc:2024
ChannelMode primaryChannelMode() const
Returns the primary channel mode.
Definition: gd73_codeplug.cc:1983
bool hasRevertZoneIndex() const
Returns true, if a revert zone is set.
Definition: gd73_codeplug.cc:2073
unsigned int secondaryChannelIndex() const
Returns the secondary channel index.
Definition: gd73_codeplug.cc:2052
unsigned int secondaryZoneIndex() const
Returns the secondary zone index.
Definition: gd73_codeplug.cc:2036
bool linkScanList(ScanList *lst, Context &ctx, const ErrorStack &err=ErrorStack())
Links a decoded scan list.
Definition: gd73_codeplug.cc:2130
void clearPrimaryZoneIndex()
Clears the primary zone index.
Definition: gd73_codeplug.cc:2003
ChannelMode
Possible priority/revert channel modes.
Definition: gd73_codeplug.hh:985
void setRevertChannelMode(ChannelMode mode)
Sets the revert channel mode.
Definition: gd73_codeplug.cc:2069
void setPrimaryChannelIndex(unsigned int idx)
Sets the primary channel index.
Definition: gd73_codeplug.cc:2015
Interval rxHoldTime() const
Returns the RX hold time.
Definition: gd73_codeplug.cc:2106
bool hasSecondaryChannelIndex() const
Returns true, if a secondary channel is set.
Definition: gd73_codeplug.cc:2048
ChannelMode revertChannelMode() const
Returns the revert channel mode.
Definition: gd73_codeplug.cc:2065
static constexpr unsigned int size()
Returns the size of the element.
Definition: gd73_codeplug.hh:998
void setRXHoldTime(const Interval &interval)
Sets the RX hold time.
Definition: gd73_codeplug.cc:2110
unsigned int primaryZoneIndex() const
Returns the primary zone index.
Definition: gd73_codeplug.cc:1995
void setName(const QString &name)
Sets the name of the scan list.
Definition: gd73_codeplug.cc:1978
unsigned int primaryChannelIndex() const
Returns the primary channel index.
Definition: gd73_codeplug.cc:2011
bool hasRevertChannelIndex() const
Returns true, if a revert channel is set.
Definition: gd73_codeplug.cc:2089
void setPrimaryZoneIndex(unsigned int idx)
Sets the primary zone index.
Definition: gd73_codeplug.cc:1999
ScanList * toScanList(Context &ctx, const ErrorStack &err=ErrorStack())
Constructs a ScanList from this elemet.
Definition: gd73_codeplug.cc:2124
ScanListElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:1961
bool hasSecondaryZoneIndex() const
Returns true, if a secondary zone is set.
Definition: gd73_codeplug.cc:2032
Implements the radio settings.
Definition: gd73_codeplug.hh:173
void enableWriteLock(bool enable)
Enables/disables write lock.
Definition: gd73_codeplug.cc:311
Interval tot() const
Returns the transmit time-out.
Definition: gd73_codeplug.cc:244
RadioddityButtonSettingsExtension::Function keyFunctionShortPressP2() const
Short-press function of programmable key 2.
Definition: gd73_codeplug.cc:461
void enableReadLock(bool enable)
Enables/disables read lock.
Definition: gd73_codeplug.cc:294
unsigned int dmrID() const
Returns the radio ID.
Definition: gd73_codeplug.cc:204
void setName(const QString &name)
Sets the radio name.
Definition: gd73_codeplug.cc:199
void setDMRID(unsigned int id)
Sets the radio ID.
Definition: gd73_codeplug.cc:208
void setKeyFunctionLongPressP2(RadioddityButtonSettingsExtension::Function function)
Sets the long-press function of the programmable key 2.
Definition: gd73_codeplug.cc:457
QString bootTextLine1() const
Returns the first line of the boot text.
Definition: gd73_codeplug.cc:377
void setDMRMicGain(unsigned int gain)
Sets the DMR microphone gain [1,10].
Definition: gd73_codeplug.cc:337
void setKeyFunctionShortPressP1(RadioddityButtonSettingsExtension::Function function)
Sets the short-press function of the programmable key 1.
Definition: gd73_codeplug.cc:449
void setBootTextLine1(const QString &line)
Sets the first line of the boot text.
Definition: gd73_codeplug.cc:381
unsigned int squelch() const
Returns the squelch level [0,10].
Definition: gd73_codeplug.cc:231
unsigned int fmMicGain() const
Returns the FM microphone gain [1,10].
Definition: gd73_codeplug.cc:341
bool updateConfig(Context &ctx, const ErrorStack &err=ErrorStack())
Updates the given config.
Definition: gd73_codeplug.cc:475
void setReadLockPin(const QString &pin)
Sets the read-lock pin (1-6 digits as ASCII).
Definition: gd73_codeplug.cc:302
QString bootTextLine2() const
Returns the second line of the boot text.
Definition: gd73_codeplug.cc:385
bool writeLockEnabled() const
Returns true, if the write lock is enabled.
Definition: gd73_codeplug.cc:307
Interval longPressDuration() const
Returns the long-press duration.
Definition: gd73_codeplug.cc:428
QString readLockPin() const
Returns the read-lock pin (1-6 digits as ASCII).
Definition: gd73_codeplug.cc:298
void setVOX(unsigned int level)
Sets the VOX level [0,10].
Definition: gd73_codeplug.cc:226
unsigned int vox() const
Returns the VOX level [0,10].
Definition: gd73_codeplug.cc:222
void setKeyFunctionLongPressP1(RadioddityButtonSettingsExtension::Function function)
Sets the long-press function of the programmable key 1.
Definition: gd73_codeplug.cc:441
Interval loneWorkerResponseTimeout() const
Returns the lone-worker response time-out.
Definition: gd73_codeplug.cc:350
unsigned int keyToneVolume() const
Returns the key-tone volume [0-13].
Definition: gd73_codeplug.cc:402
RadioddityButtonSettingsExtension::Function keyFunctionShortPressP1() const
Short-press function of programmable key 1.
Definition: gd73_codeplug.cc:445
RadioddityButtonSettingsExtension::Function keyFunctionLongPressP1() const
Long-press function of programmable key 1.
Definition: gd73_codeplug.cc:437
void setPowerSaveTimeout(const Interval &interval)
Sets the power-save time-out.
Definition: gd73_codeplug.cc:284
void setWriteLockPin(const QString &pin)
Sets the write-lock pin (1-6 digits as ASCII).
Definition: gd73_codeplug.cc:319
Language
Possible languages.
Definition: gd73_codeplug.hh:197
void setTOT(const Interval &interval)
Sets the transmit time-out.
Definition: gd73_codeplug.cc:251
void setKeyToneVolume(unsigned int vol)
Sets the key-tone volume.
Definition: gd73_codeplug.cc:406
bool totIsSet() const
Returns true, if a transmit time-out is set.
Definition: gd73_codeplug.cc:240
bool powerSaveEnabled() const
Returns true if power save is enabled.
Definition: gd73_codeplug.cc:272
void enableKeyTone(bool enable)
Enables/disables the key tones.
Definition: gd73_codeplug.cc:398
OneTouchSettingElement oneTouch(unsigned int n)
Returns the n-th one-touch setting.
Definition: gd73_codeplug.cc:469
void setSquelch(unsigned int level)
Sets the squelch level [0,10].
Definition: gd73_codeplug.cc:235
static constexpr unsigned int size()
Returns the size of the settings element.
Definition: gd73_codeplug.hh:210
Language language() const
Retruns the menu language.
Definition: gd73_codeplug.cc:213
bool txInterruptedEnabled() const
Returns true if the TX interrupt is enabled.
Definition: gd73_codeplug.cc:263
void enableTXInterrupt(bool enable)
Enables/disables the TX interrupt.
Definition: gd73_codeplug.cc:267
void setBootTextLine2(const QString &line)
Sets the second line of the boot text.
Definition: gd73_codeplug.cc:389
Interval powerSaveTimeout() const
Returns the power-save time-out.
Definition: gd73_codeplug.cc:280
void setLoneWorkerResponseTimeout(const Interval &interval)
Sets the lone-worker response time-out.
Definition: gd73_codeplug.cc:354
void enablePowerSave(bool enable)
Enables/disables power save.
Definition: gd73_codeplug.cc:276
RadioddityButtonSettingsExtension::Function keyFunctionLongPressP2() const
Long-press function of programmable key 2.
Definition: gd73_codeplug.cc:453
void setLanguage(Language lang)
Sets the menu language.
Definition: gd73_codeplug.cc:217
QString writeLockPin() const
Returns the write-lock pin (1-6 digits as ASCII).
Definition: gd73_codeplug.cc:315
unsigned int dmrMicGain() const
Returns the DMR microphone gain [1,10].
Definition: gd73_codeplug.cc:333
void setLoneWorkerRemindPeriod(const Interval &interval)
Sets the lone-worker remind period.
Definition: gd73_codeplug.cc:363
void setBootDisplayMode(BootDisplayMode mode)
Sets the boot display mode.
Definition: gd73_codeplug.cc:373
void enableLowBatteryTone(bool enable)
Enables/disables the low-battery warn tone.
Definition: gd73_codeplug.cc:415
void setLongPressDuration(const Interval &interval)
Sets the long-press duration.
Definition: gd73_codeplug.cc:432
ChannelDisplayMode
Possible channel display modes.
Definition: gd73_codeplug.hh:176
void setChannelDisplayMode(ChannelDisplayMode mode)
Sets the channel display mode.
Definition: gd73_codeplug.cc:328
Interval loneWorkerRemindPeriod() const
Returns the lone-worker remind period.
Definition: gd73_codeplug.cc:359
BootDisplayMode bootDisplayMode() const
Returns the boot display mode.
Definition: gd73_codeplug.cc:369
ChannelDisplayMode channelDisplayMode() const
Returns the channel display mode.
Definition: gd73_codeplug.cc:324
unsigned int lowBatteryToneVolume() const
Returns the low-battery warn-tone volume [0-13].
Definition: gd73_codeplug.cc:419
void setKeyFunctionShortPressP2(RadioddityButtonSettingsExtension::Function function)
Sets the short-press function of the programmable key 2.
Definition: gd73_codeplug.cc:465
void clearTOT()
Disables transmit time-out.
Definition: gd73_codeplug.cc:258
bool readLockEnabled() const
Returns true, if the read lock is enabled.
Definition: gd73_codeplug.cc:290
bool lowBatteryToneEnabled() const
Returns true if the low-battery warn tone is enabled.
Definition: gd73_codeplug.cc:411
SettingsElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:182
BootDisplayMode
Possible boot display modes.
Definition: gd73_codeplug.hh:180
bool encode(Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the settings from the given config.
Definition: gd73_codeplug.cc:550
QString name() const
Returns the radio name.
Definition: gd73_codeplug.cc:195
void setLowBatteryToneVolume(unsigned int vol)
Sets the low-battery warn-tone volume.
Definition: gd73_codeplug.cc:423
bool keyToneEnabled() const
Returns true if the key tones are enabled.
Definition: gd73_codeplug.cc:394
void setFMMicGain(unsigned int gain)
Sets the FM microphone gain [1,10].
Definition: gd73_codeplug.cc:345
Implements the bank of zones.
Definition: gd73_codeplug.hh:491
bool createZones(Context &ctx, const ErrorStack &err)
Creates all encoded zones, also updates the context.
Definition: gd73_codeplug.cc:1785
static constexpr unsigned int size()
Returns the size of the zone bank element.
Definition: gd73_codeplug.hh:501
bool encode(Context &ctx, const ErrorStack &err)
Encodess all zones.
Definition: gd73_codeplug.cc:1815
ZoneBankElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:1772
bool linkZones(Context &ctx, const ErrorStack &err)
Links all decoded zones.
Definition: gd73_codeplug.cc:1801
Implements a single zone within the binary codeplug.
Definition: gd73_codeplug.hh:438
Zone * toZone(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes the zone element.
Definition: gd73_codeplug.cc:1855
void setName(const QString &name)
Sets the name of the zone.
Definition: gd73_codeplug.cc:1850
bool encode(Zone *zone, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the given zone.
Definition: gd73_codeplug.cc:1878
QString name() const
Returns the name of the zone.
Definition: gd73_codeplug.cc:1846
bool linkZone(Zone *zone, Context &ctx, const ErrorStack &err=ErrorStack())
Links the decoded zone.
Definition: gd73_codeplug.cc:1861
ZoneElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: gd73_codeplug.cc:1833
static constexpr unsigned int size()
Returns the size of the zone element.
Definition: gd73_codeplug.hh:448
Represents, encodes and decodes the device specific codeplug for a Radioddity GD-73.
Definition: gd73_codeplug.hh:53
virtual bool createChannels(Context &ctx, const ErrorStack &err=ErrorStack())
Create channels.
Definition: gd73_codeplug.cc:2606
bool encode(Config *config, const Flags &flags=Flags(), const ErrorStack &err=ErrorStack())
Encodes a given abstract configuration (config) to the device specific binary code-plug.
Definition: gd73_codeplug.cc:2321
virtual bool linkZones(Context &ctx, const ErrorStack &err=ErrorStack())
Link zones.
Definition: gd73_codeplug.cc:2642
virtual bool encodeContacts(Context &ctx, const ErrorStack &err=ErrorStack())
Encode contacts.
Definition: gd73_codeplug.cc:2544
virtual bool createEncryptionKeys(Context &ctx, const ErrorStack &err=ErrorStack())
Create encryption keys.
Definition: gd73_codeplug.cc:2588
virtual bool encodeGroupLists(Context &ctx, const ErrorStack &err=ErrorStack())
Encode group lists.
Definition: gd73_codeplug.cc:2579
virtual bool createGroupLists(Context &ctx, const ErrorStack &err=ErrorStack())
Create group lists.
Definition: gd73_codeplug.cc:2561
virtual bool encodeEncryptionKeys(Context &ctx, const ErrorStack &err=ErrorStack())
Encode encryption keys.
Definition: gd73_codeplug.cc:2597
virtual bool linkGroupLists(Context &ctx, const ErrorStack &err=ErrorStack())
Link group lists.
Definition: gd73_codeplug.cc:2570
virtual bool encodeScanLists(Context &ctx, const ErrorStack &err=ErrorStack())
Encode zones.
Definition: gd73_codeplug.cc:2678
virtual bool createZones(Context &ctx, const ErrorStack &err=ErrorStack())
Create zones.
Definition: gd73_codeplug.cc:2633
virtual bool createContacts(Context &ctx, const ErrorStack &err=ErrorStack())
Creates contacts.
Definition: gd73_codeplug.cc:2534
virtual bool decodeSettings(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes the settings fields (generic & DMR).
Definition: gd73_codeplug.cc:2504
bool decode(Config *config, const ErrorStack &err=ErrorStack())
Decodes a binary codeplug to the given abstract configuration config.
Definition: gd73_codeplug.cc:2381
virtual bool encodeChannels(Context &ctx, const ErrorStack &err=ErrorStack())
Encode channels.
Definition: gd73_codeplug.cc:2624
virtual bool encodeMessages(Context &ctx, const ErrorStack &err=ErrorStack())
Encode messages.
Definition: gd73_codeplug.cc:2494
bool index(Config *config, Context &ctx, const ErrorStack &err=ErrorStack()) const
Indexes all elements of the codeplug.
Definition: gd73_codeplug.cc:2265
virtual bool linkChannels(Context &ctx, const ErrorStack &err=ErrorStack())
Link channels.
Definition: gd73_codeplug.cc:2615
virtual bool encodeZones(Context &ctx, const ErrorStack &err=ErrorStack())
Encode zones.
Definition: gd73_codeplug.cc:2651
virtual bool createScanLists(Context &ctx, const ErrorStack &err=ErrorStack())
Create scan lists.
Definition: gd73_codeplug.cc:2660
virtual bool decodeTimestamp(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes the time-stamp field.
Definition: gd73_codeplug.cc:2459
virtual bool encodeSettings(Context &ctx, const ErrorStack &err=ErrorStack())
Encode settings fields (generic & DMR settings).
Definition: gd73_codeplug.cc:2519
GD73Codeplug(QObject *parent=nullptr)
Default constructor.
Definition: gd73_codeplug.cc:2223
virtual bool linkScanLists(Context &ctx, const ErrorStack &err=ErrorStack())
Link zones.
Definition: gd73_codeplug.cc:2669
bool postprocess(Config *config, const ErrorStack &err=ErrorStack()) const
Retruns a post-processed configuration of the decoded config.
Definition: gd73_codeplug.cc:2248
Config * preprocess(Config *config, const ErrorStack &err=ErrorStack()) const
Retruns a prepared configuration for this particular radio.
Definition: gd73_codeplug.cc:2231
virtual bool createMessages(Context &ctx, const ErrorStack &err=ErrorStack())
Creates messages.
Definition: gd73_codeplug.cc:2484
virtual bool createDTMFContacts(Context &ctx, const ErrorStack &err=ErrorStack())
Creates DTMF contacts.
Definition: gd73_codeplug.cc:2555
virtual bool encodeTimestamp(Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the time-stamp field.
Definition: gd73_codeplug.cc:2473
Represents a time interval.
Definition: interval.hh:11
static constexpr Interval fromMinutes(unsigned long long min)
Definition: interval.hh:63
static constexpr Interval fromSeconds(unsigned long long s)
Definition: interval.hh:60
static constexpr Interval fromMilliseconds(unsigned long long ms)
Definition: interval.hh:57
Generic representation of a RX group list.
Definition: rxgrouplist.hh:14
Simple range class representing some range in some data type.
Definition: ranges.hh:14
Extension collecting all settings associated with SMS messages.
Definition: smsextension.hh:55
Represents a SMS message template (pre defined message).
Definition: smsextension.hh:11
Generic representation of a scan list.
Definition: scanlist.hh:15
Code
This huge enum lists all possible RX/TX tones that can be associated with analog channels.
Definition: signaling.hh:18
Represents a zone within the generic configuration.
Definition: zone.hh:15
Helper type to encode frequencies without any rounding error.
Definition: frequency.hh:11
Some limits for the channel bank.
Definition: gd73_codeplug.hh:758
static constexpr unsigned int channelCount()
Maximum number of channels.
Definition: gd73_codeplug.hh:760
Internal offsets within the bank.
Definition: gd73_codeplug.hh:765
Some limits for the channel.
Definition: gd73_codeplug.hh:692
static constexpr unsigned int nameLength()
Maximum name length.
Definition: gd73_codeplug.hh:694
Internal used offsets within the element.
Definition: gd73_codeplug.hh:699
Some limits.
Definition: gd73_codeplug.hh:1222
static constexpr TimeRange callHangTime()
The range of call hang times.
Definition: gd73_codeplug.hh:1224
static constexpr IntRange activeRetires()
The range of active retries.
Definition: gd73_codeplug.hh:1232
static constexpr IntRange txPreambles()
The maximum number of TX preambles.
Definition: gd73_codeplug.hh:1234
static constexpr TimeRange activeWaitTime()
The range of active wait times.
Definition: gd73_codeplug.hh:1228
Some internal offsets within the scan list bank.
Definition: gd73_codeplug.hh:1239
Some limits.
Definition: gd73_codeplug.hh:1560
static constexpr unsigned int memberCount()
The number of members.
Definition: gd73_codeplug.hh:1562
Some internal offsets within the number bank.
Definition: gd73_codeplug.hh:1567
Some limits.
Definition: gd73_codeplug.hh:1527
static constexpr unsigned int digits()
Maximum number of digita.
Definition: gd73_codeplug.hh:1529
Internal used offsets within the bank.
Definition: gd73_codeplug.hh:1534
Some limits.
Definition: gd73_codeplug.hh:1623
static constexpr unsigned int memberCount()
The number of members.
Definition: gd73_codeplug.hh:1625
Some internal offsets within the number bank.
Definition: gd73_codeplug.hh:1630
Internal used offsets within the element.
Definition: gd73_codeplug.hh:1594
Some limits.
Definition: gd73_codeplug.hh:1493
static constexpr unsigned int memberCount()
The number of members.
Definition: gd73_codeplug.hh:1495
Some internal offsets within the message bank.
Definition: gd73_codeplug.hh:1500
Some limits.
Definition: gd73_codeplug.hh:1445
static constexpr TimeRange toneDuration()
Range for tone duration.
Definition: gd73_codeplug.hh:1449
static constexpr TimeRange pauseDuration()
Range for pause duration.
Definition: gd73_codeplug.hh:1453
static constexpr TimeRange deadTime()
Rang of dead time.
Definition: gd73_codeplug.hh:1457
static constexpr Interval preambleDuration()
Maximum preamble duration in ms.
Definition: gd73_codeplug.hh:1447
Internal used offsets within the bank.
Definition: gd73_codeplug.hh:1464
Some limits.
Definition: gd73_codeplug.hh:1316
static constexpr unsigned int keys()
The maximum number of keys.
Definition: gd73_codeplug.hh:1318
Internal used offsets within the bank.
Definition: gd73_codeplug.hh:1323
Internal used offsets within the bank.
Definition: gd73_codeplug.hh:1283
Some limits.
Definition: gd73_codeplug.hh:960
static constexpr unsigned int memberCount()
The maximum number of members.
Definition: gd73_codeplug.hh:962
Some internal offsets within the group list bank.
Definition: gd73_codeplug.hh:967
Some limits.
Definition: gd73_codeplug.hh:912
static constexpr unsigned int memberCount()
The maximum number of members.
Definition: gd73_codeplug.hh:916
static constexpr unsigned int nameLength()
The maximum name length.
Definition: gd73_codeplug.hh:914
Some internal offsets within the group list.
Definition: gd73_codeplug.hh:921
Some limits.
Definition: gd73_codeplug.hh:1410
static constexpr unsigned int memberCount()
The maximum number of members.
Definition: gd73_codeplug.hh:1412
Some internal offsets within the message bank.
Definition: gd73_codeplug.hh:1417
Some limits.
Definition: gd73_codeplug.hh:1360
static constexpr unsigned int messageLength()
The maximum message length.
Definition: gd73_codeplug.hh:1362
Internal used offsets within the bank.
Definition: gd73_codeplug.hh:1367
Internal used offsets within the codeplug.
Definition: gd73_codeplug.hh:1708
Internal offsets within the element.
Definition: gd73_codeplug.hh:157
Some limits.
Definition: gd73_codeplug.hh:1149
static constexpr unsigned int memberCount()
The maximum number of members.
Definition: gd73_codeplug.hh:1151
Some internal offsets within the scan list bank.
Definition: gd73_codeplug.hh:1156
Some limits.
Definition: gd73_codeplug.hh:1086
static constexpr unsigned int nameLength()
The maximum name length.
Definition: gd73_codeplug.hh:1088
static constexpr unsigned int memberCount()
The maximum number of members.
Definition: gd73_codeplug.hh:1090
static TimeRange holdTime()
The range of hold times.
Definition: gd73_codeplug.hh:1092
Some internal offsets within the scan list bank.
Definition: gd73_codeplug.hh:1099
Possible programmable key function.
Definition: gd73_codeplug.hh:184
Some limits of the settings.
Definition: gd73_codeplug.hh:361
static constexpr unsigned int bootTextLine()
Maximum length of the boot text lines.
Definition: gd73_codeplug.hh:383
static constexpr unsigned int name()
Maximum name length.
Definition: gd73_codeplug.hh:363
static constexpr TimeRange longPressDuration()
Long-press duration range.
Definition: gd73_codeplug.hh:387
static constexpr TimeRange tot()
Transmit time-out range.
Definition: gd73_codeplug.hh:365
static constexpr TimeRange loneWorkerResponse()
Lone-worker response time-out range.
Definition: gd73_codeplug.hh:375
static constexpr TimeRange powerSaveTimeout()
Power-save timeout.
Definition: gd73_codeplug.hh:369
static constexpr IntRange toneVolume()
Value range for tone-volumes.
Definition: gd73_codeplug.hh:385
static constexpr unsigned int pin()
Maximum read/write lock pin size.
Definition: gd73_codeplug.hh:373
static constexpr TimeRange loneWorkerRemindPeriod()
Lone-worker remind period range.
Definition: gd73_codeplug.hh:379
Internal offsets within the element.
Definition: gd73_codeplug.hh:394
Some limits for the zone bank.
Definition: gd73_codeplug.hh:512
static constexpr unsigned int zoneCount()
Maximum number of zones.
Definition: gd73_codeplug.hh:514
Internal offsets within the element.
Definition: gd73_codeplug.hh:519
Some limits for the element.
Definition: gd73_codeplug.hh:464
static constexpr unsigned int nameLength()
Maximum name length.
Definition: gd73_codeplug.hh:466
static constexpr unsigned int channelCount()
Maximum number of channels per zone.
Definition: gd73_codeplug.hh:468
Internal offsets within the zone element.
Definition: gd73_codeplug.hh:473