1 #ifndef RADIODDITYCODEPLUG_HH
2 #define RADIODDITYCODEPLUG_HH
5 #include "signaling.hh"
8 #include "radioddity_extensions.hh"
68 virtual QString
name()
const;
70 virtual void setName(
const QString &n);
198 virtual bool rxOnly()
const;
206 virtual bool vox()
const;
243 virtual bool isEnabled(
unsigned idx)
const ;
245 virtual void enable(
unsigned idx,
bool enabled);
247 virtual uint8_t *
get(
unsigned idx)
const;
287 QString
name()
const;
329 virtual QString
name()
const;
334 virtual unsigned number()
const;
344 virtual bool ring()
const;
382 virtual QString
name()
const;
387 virtual QString
number()
const;
419 virtual QString
name()
const;
425 virtual bool hasMember(
unsigned n)
const;
427 virtual unsigned member(
unsigned n)
const;
429 virtual void setMember(
unsigned n,
unsigned idx);
465 virtual bool isEnabled(
unsigned idx)
const ;
467 virtual void enable(
unsigned idx,
bool enabled);
469 virtual uint8_t *
get(
unsigned idx)
const;
490 static constexpr
unsigned int size() {
return 0x0030; }
496 virtual QString
name()
const;
502 virtual bool hasMember(
unsigned n)
const;
504 virtual unsigned member(
unsigned n)
const;
506 virtual void setMember(
unsigned n,
unsigned idx);
530 static constexpr
unsigned int name() {
return 0x0000; }
531 static constexpr
unsigned int members() {
return 0x0010; }
532 static constexpr
unsigned int betweenMembers() {
return 0x0002; }
555 static constexpr
unsigned int size() {
return 0x0c80; }
561 virtual bool isEnabled(
unsigned n)
const;
568 virtual void disable(
unsigned n);
571 virtual uint8_t *
get(
unsigned n)
const;
584 static constexpr
unsigned int contactCount() {
return 0x0000; }
585 static constexpr
unsigned int betweenContactCounts() {
return 0x0000; }
586 static constexpr
unsigned int groupLists() {
return 0x0080; }
621 virtual QString
name()
const;
641 virtual bool hasMember(
unsigned n)
const;
645 virtual unsigned member(
unsigned n)
const;
647 virtual void setMember(
unsigned n,
unsigned idx);
658 virtual unsigned primary()
const;
685 virtual unsigned revert()
const;
732 virtual bool isEnabled(
unsigned n)
const;
734 virtual void enable(
unsigned n,
bool enabled);
736 virtual uint8_t *
get(
unsigned n)
const;
768 virtual QString
name()
const;
773 virtual unsigned radioID()
const;
939 ToggleAllAlertTones = 0x01,
950 ToggleRepeatTalkaround = 0x0d,
952 TogglePrivacy = 0x10,
955 BatteryIndicator = 0x13,
956 ToggleLoneWorker = 0x14,
958 ToggleFlashLight = 0x1a,
1052 static constexpr
unsigned int sk1ShortPress() {
return 0x0002; }
1053 static constexpr
unsigned int sk1LongPress() {
return 0x0003; }
1054 static constexpr
unsigned int sk2ShortPress() {
return 0x0004; }
1055 static constexpr
unsigned int sk2LongPress() {
return 0x0005; }
1056 static constexpr
unsigned int tkShortPress() {
return 0x0006; }
1057 static constexpr
unsigned int tkLongPress() {
return 0x0007; }
1058 static constexpr
unsigned int oneTouchActions() {
return 0x0008; }
1059 static constexpr
unsigned int betweenOneTouchActions() {
return 0x0004; }
1152 virtual bool tone()
const;
1156 virtual bool power()
const;
1185 virtual bool vox()
const;
1294 virtual QString
line1()
const;
1296 virtual void setLine1(
const QString &text);
1298 virtual QString
line2()
const;
1300 virtual void setLine2(
const QString &text);
1325 static constexpr
unsigned int size() {
return 0x1248; }
1332 virtual QString
message(
unsigned n)
const;
1344 static constexpr
unsigned int messages() {
return 32; }
1352 static constexpr
unsigned int messageConut() {
return 0x0000; }
1353 static constexpr
unsigned int messageLengths() {
return 0x0008; }
1354 static constexpr
unsigned int messages() {
return 0x0048; }
1396 virtual QByteArray
basicKey(
unsigned n)
const;
1398 virtual void setBasicKey(
unsigned n,
const QByteArray &key);
1427 virtual void clear();
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
Implements the generic extension for the codeplug to represent some commercial features of DMR.
Definition: commercial_extension.hh:11
The config class, representing the codeplug configuration.
Definition: config.hh:70
uint32_t size() const
Returns the total size of the DFU file.
Definition: dfufile.cc:52
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
Represents a time interval.
Definition: interval.hh:11
static constexpr Interval fromMilliseconds(unsigned long long ms)
Definition: interval.hh:57
Generic representation of a RX group list.
Definition: rxgrouplist.hh:14
Implements the base class of boot settings for all Radioddity codeplugs.
Definition: radioddity_codeplug.hh:1245
virtual bool bootPasswordEnabled() const
Returns true if the boot password is enabled.
Definition: radioddity_codeplug.cc:2427
virtual bool bootText() const
Returns true if the text is shown on boot, other wise an image is shown.
Definition: radioddity_codeplug.cc:2418
void clear()
Resets the settings.
Definition: radioddity_codeplug.cc:2409
BootSettingsElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: radioddity_codeplug.cc:2392
virtual void enableBootPassword(bool enable)
Enables/disables the boot password.
Definition: radioddity_codeplug.cc:2431
virtual ~BootSettingsElement()
Destructor.
Definition: radioddity_codeplug.cc:2404
virtual unsigned bootPassword() const
Returns the boot password (6 digit).
Definition: radioddity_codeplug.cc:2436
virtual void enableBootText(bool enable)
Enables/disables boot text.
Definition: radioddity_codeplug.cc:2422
virtual void setBootPassword(unsigned passwd)
Sets the boot password (6 digit).
Definition: radioddity_codeplug.cc:2440
Implements the base class of boot messages for all Radioddity codeplugs.
Definition: radioddity_codeplug.hh:1279
virtual void setLine1(const QString &text)
Sets the first line.
Definition: radioddity_codeplug.cc:2474
virtual QString line1() const
Returns the first line.
Definition: radioddity_codeplug.cc:2470
void clear()
Resets the intro text.
Definition: radioddity_codeplug.cc:2464
virtual QString line2() const
Returns the Second line.
Definition: radioddity_codeplug.cc:2479
virtual void updateConfig(Config *conf)
Updates the configuration with the boot text settings.
Definition: radioddity_codeplug.cc:2494
virtual void setLine2(const QString &text)
Sets the second line.
Definition: radioddity_codeplug.cc:2483
virtual ~BootTextElement()
Destructor.
Definition: radioddity_codeplug.cc:2459
BootTextElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: radioddity_codeplug.cc:2447
virtual void fromConfig(Config *conf)
Encodes boot text settings from configuration.
Definition: radioddity_codeplug.cc:2488
Implements the base for channel banks in Radioddity codeplugs.
Definition: radioddity_codeplug.hh:228
virtual ~ChannelBankElement()
Destructor.
Definition: radioddity_codeplug.cc:477
virtual uint8_t * get(unsigned idx) const
Returns a pointer to the channel at the given index.
Definition: radioddity_codeplug.cc:498
virtual void enable(unsigned idx, bool enabled)
Enable/disable a channel in the bank.
Definition: radioddity_codeplug.cc:492
ChannelBankElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: radioddity_codeplug.cc:465
void clear()
Clears the bank.
Definition: radioddity_codeplug.cc:482
virtual bool isEnabled(unsigned idx) const
Returns true if the channel is enabled.
Definition: radioddity_codeplug.cc:487
Implements the base for all Radioddity channel encodings.
Definition: radioddity_codeplug.hh:33
virtual bool hasGroupList() const
Returns true if a group list is set.
Definition: radioddity_codeplug.cc:189
virtual void setRXSignalingIndex(unsigned index)
Sets RX signaling index (+1).
Definition: radioddity_codeplug.cc:166
virtual ~ChannelElement()
Destructor.
Definition: radioddity_codeplug.cc:29
virtual unsigned txSignalingIndex() const
Returns TX signaling index (+1).
Definition: radioddity_codeplug.cc:154
virtual unsigned emergencySystemIndex() const
Returns the emergency system index (+1).
Definition: radioddity_codeplug.cc:215
virtual void setTXFrequency(uint32_t freq)
Sets the TX frequency of the channel.
Definition: radioddity_codeplug.cc:84
virtual bool nonSTEFrequency() const
Returns true if non-STE is frequency (?!).
Definition: radioddity_codeplug.cc:287
virtual bool hasScanList() const
Returns true if a scan list is set.
Definition: radioddity_codeplug.cc:124
virtual void enablePrivacy(bool enable)
Enables/disables privacy.
Definition: radioddity_codeplug.cc:265
virtual void setContactIndex(unsigned index)
Sets the transmit contact index (+1).
Definition: radioddity_codeplug.cc:232
virtual void setPrivacyGroup(PrivacyGroup grp)
Sets the privacy group.
Definition: radioddity_codeplug.cc:175
virtual bool fromChannelObj(const Channel *c, Context &ctx)
Initializes this codeplug channel from the given generic configuration.
Definition: radioddity_codeplug.cc:408
Mode
Possible channel types.
Definition: radioddity_codeplug.hh:36
@ MODE_ANALOG
Analog channel, aka FM.
Definition: radioddity_codeplug.hh:37
@ MODE_DIGITAL
Digital channel, aka DMR.
Definition: radioddity_codeplug.hh:38
virtual uint32_t txFrequency() const
Returns the TX frequency of the channel.
Definition: radioddity_codeplug.cc:80
virtual Admit admitCriterion() const
Returns the admit criterion.
Definition: radioddity_codeplug.cc:115
virtual unsigned txColorCode() const
Returns the TX color code.
Definition: radioddity_codeplug.cc:180
virtual void setTXTimeOut(unsigned tot)
Sets the TX timeout in seconds.
Definition: radioddity_codeplug.cc:102
virtual void enableTalkaround(bool enable)
Enables/disables talkaround.
Definition: radioddity_codeplug.cc:317
virtual unsigned scanListIndex() const
Returns the scan list index (+1).
Definition: radioddity_codeplug.cc:128
virtual void setGroupListIndex(unsigned index)
Sets the group-list index (+1).
Definition: radioddity_codeplug.cc:197
virtual void enableDataCallConfirm(bool enable)
Enables/disables data-call-confirm.
Definition: radioddity_codeplug.cc:241
virtual void setRXColorCode(unsigned cc)
Sets the RX color code.
Definition: radioddity_codeplug.cc:206
virtual bool dataCallConfirm() const
Returns true if data-call-confirm is enabled.
Definition: radioddity_codeplug.cc:237
virtual void enableEmergencyAlarmACK(bool enable)
Enables/disables emergency alarm ACK.
Definition: radioddity_codeplug.cc:249
virtual Signaling::Code txTone() const
Returns the TX subtone.
Definition: radioddity_codeplug.cc:145
virtual void enableRXOnly(bool enable)
Enables/disables RX only.
Definition: radioddity_codeplug.cc:309
virtual void setAdmitCriterion(Admit admit)
Sets the admit criterion.
Definition: radioddity_codeplug.cc:119
virtual void enableNonSTEFrequency(bool enable)
Enables/disables non-STE is frequency (?!).
Definition: radioddity_codeplug.cc:291
virtual bool talkaround() const
Returns true if talkaround is enabled.
Definition: radioddity_codeplug.cc:313
virtual unsigned contactIndex() const
Returns the transmit contact index (+1).
Definition: radioddity_codeplug.cc:228
virtual uint32_t rxFrequency() const
Returns the RX frequency of the channel.
Definition: radioddity_codeplug.cc:72
ChannelElement(uint8_t *ptr, size_t size)
Constructs a channel from the given memory.
Definition: radioddity_codeplug.cc:17
virtual void setMode(Mode mode)
Sets the channel mode.
Definition: radioddity_codeplug.cc:93
virtual void setPower(Channel::Power pwr)
Sets the power setting of the channel.
Definition: radioddity_codeplug.cc:334
virtual Mode mode() const
Returns the channel mode.
Definition: radioddity_codeplug.cc:89
virtual Signaling::Code rxTone() const
Returns the RX subtone.
Definition: radioddity_codeplug.cc:137
virtual unsigned groupListIndex() const
Returns the group-list index (+1).
Definition: radioddity_codeplug.cc:193
virtual PrivacyGroup privacyGroup() const
Returns the privacy group.
Definition: radioddity_codeplug.cc:171
virtual unsigned txTimeOutRekeyDelay() const
Returns the transmit time-out re-key delay in seconds.
Definition: radioddity_codeplug.cc:106
virtual void setScanListIndex(unsigned index)
Sets the scan list index (+1).
Definition: radioddity_codeplug.cc:132
virtual bool privacyEnabled() const
Returns true if privacy is enabled.
Definition: radioddity_codeplug.cc:261
virtual bool privateCallConfirm() const
Returns true if private-call-confirm is enabled.
Definition: radioddity_codeplug.cc:253
virtual DMRChannel::TimeSlot timeSlot() const
Returns the time slot of the channel.
Definition: radioddity_codeplug.cc:270
virtual void setRXFrequency(uint32_t freq)
Sets the RX frequency of the channel.
Definition: radioddity_codeplug.cc:76
virtual Channel * toChannelObj(Context &ctx) const
Constructs a generic Channel object from the codeplug channel.
Definition: radioddity_codeplug.cc:349
virtual void clear()
Resets the channel.
Definition: radioddity_codeplug.cc:34
virtual Channel::Power power() const
Returns the power setting of the channel.
Definition: radioddity_codeplug.cc:330
virtual bool vox() const
Returns true if VOX is enabled.
Definition: radioddity_codeplug.cc:321
virtual void enablePrivateCallConfirm(bool enable)
Enables/disables private-call-confirm.
Definition: radioddity_codeplug.cc:257
virtual bool hasEmergencySystem() const
Returns true if an emergency system is set.
Definition: radioddity_codeplug.cc:211
virtual unsigned rxSignalingIndex() const
Returns RX signaling index (+1).
Definition: radioddity_codeplug.cc:162
virtual void setEmergencySystemIndex(unsigned index)
Sets the emergency system index (+1).
Definition: radioddity_codeplug.cc:219
PrivacyGroup
Possible privacy groups, not used in ham radio.
Definition: radioddity_codeplug.hh:49
@ PRIVGR_NONE
No privacy group, default.
Definition: radioddity_codeplug.hh:50
@ PRIVGR_53474C39
Privacy group 53474C39 (wtf?).
Definition: radioddity_codeplug.hh:51
virtual FMChannel::Bandwidth bandwidth() const
Returns the bandwidth.
Definition: radioddity_codeplug.cc:296
virtual bool emergencyAlarmACK() const
Returns true if emergency alarm ACK is enabled.
Definition: radioddity_codeplug.cc:245
Admit
Possible admit criteria.
Definition: radioddity_codeplug.hh:42
@ ADMIT_CH_FREE
Allow TX on channel free.
Definition: radioddity_codeplug.hh:44
@ ADMIT_ALWAYS
Allow always.
Definition: radioddity_codeplug.hh:43
@ ADMIT_COLOR
Allow TX on matching color-code.
Definition: radioddity_codeplug.hh:45
virtual QString name() const
Returns the name of the channel.
Definition: radioddity_codeplug.cc:63
virtual void setBandwidth(FMChannel::Bandwidth bw)
Sets the bandwidth.
Definition: radioddity_codeplug.cc:300
virtual bool linkChannelObj(Channel *c, Context &ctx) const
Links a previously constructed channel to the rest of the configuration.
Definition: radioddity_codeplug.cc:391
virtual bool rxOnly() const
Returns true if RX only is enabled.
Definition: radioddity_codeplug.cc:305
virtual unsigned rxColorCode() const
Returns the RX color code.
Definition: radioddity_codeplug.cc:202
virtual void setTXTone(Signaling::Code code)
Sets the TX subtone.
Definition: radioddity_codeplug.cc:149
virtual void setName(const QString &n)
Sets the name of the channel.
Definition: radioddity_codeplug.cc:67
virtual bool hasContact() const
Returns true if a TX contact is set.
Definition: radioddity_codeplug.cc:224
virtual void setTXColorCode(unsigned cc)
Sets the TX color code.
Definition: radioddity_codeplug.cc:184
virtual void setTXTimeOutRekeyDelay(unsigned delay)
Sets the transmit time-out re-key delay in seconds.
Definition: radioddity_codeplug.cc:110
virtual unsigned txTimeOut() const
Returns the TX timeout in seconds.
Definition: radioddity_codeplug.cc:98
virtual void setTimeSlot(DMRChannel::TimeSlot ts)
Sets the time slot of the channel.
Definition: radioddity_codeplug.cc:274
virtual void enableDualCapacityDirectMode(bool enable)
Enables/disables the dual-capacity direct mode.
Definition: radioddity_codeplug.cc:283
virtual void setTXSignalingIndex(unsigned index)
Sets TX signaling index (+1).
Definition: radioddity_codeplug.cc:158
virtual void enableVOX(bool enable)
Enables/disables VOX.
Definition: radioddity_codeplug.cc:325
virtual void setRXTone(Signaling::Code code)
Sets the RX subtone.
Definition: radioddity_codeplug.cc:141
virtual bool dualCapacityDirectMode() const
Returns true if the dual-capacity direct mode is enabled.
Definition: radioddity_codeplug.cc:279
Represents all encryption keys and settings within the codeplug on the device.
Definition: radioddity_codeplug.hh:1366
virtual void setPrivacyType(PrivacyType type)
Sets the privacy type.
Definition: radioddity_codeplug.cc:2610
virtual PrivacyType privacyType() const
Returns the privacy type set.
Definition: radioddity_codeplug.cc:2606
void clear()
Abstract method to reset the element within the codeplug.
Definition: radioddity_codeplug.cc:2598
PrivacyType
Encodes possible privacy types.
Definition: radioddity_codeplug.hh:1370
@ None
No encryption at all.
@ Basic
Use basic DMR encryption.
virtual QByteArray basicKey(unsigned n) const
Returns the n-th "basic" key (32bit).
Definition: radioddity_codeplug.cc:2622
virtual bool updateCommercialExt(Context &ctx)
Constructs the encryption extension.
Definition: radioddity_codeplug.cc:2674
virtual bool linkCommercialExt(CommercialExtension *ext, Context &ctx)
Links the given encryption extension.
Definition: radioddity_codeplug.cc:2696
virtual void clearBasicKey(unsigned n)
Resets the n-th basic key.
Definition: radioddity_codeplug.cc:2638
virtual ~EncryptionElement()
Destructor.
Definition: radioddity_codeplug.cc:2593
virtual bool fromCommercialExt(CommercialExtension *ext, Context &ctx)
Encodes given encryption extension.
Definition: radioddity_codeplug.cc:2648
virtual bool isBasicKeySet(unsigned n) const
Returns true if the n-th "basic" key (32bit) is set.
Definition: radioddity_codeplug.cc:2615
virtual void setBasicKey(unsigned n, const QByteArray &key)
Sets the n-th "basic" key (32bit).
Definition: radioddity_codeplug.cc:2628
EncryptionElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: radioddity_codeplug.cc:2581
Implements the base class of general settings for all Radioddity codeplugs.
Definition: radioddity_codeplug.hh:745
virtual bool allTonesDisabled() const
Returns true if all tones are disabled.
Definition: radioddity_codeplug.cc:1595
virtual void enableUpChannelModeVFO(bool enable)
Enables/disables up-channel mode is VFO.
Definition: radioddity_codeplug.cc:1532
virtual void setRepeaterEndDelay(unsigned delay)
Sets the repeater end delay in [0-10].
Definition: radioddity_codeplug.cc:1674
virtual bool batsaveRX() const
Returns true if reception is disabled for battery saving.
Definition: radioddity_codeplug.cc:1603
virtual void setCallAlertDuration(unsigned sec)
Sets the call-allert duration in seconds.
Definition: radioddity_codeplug.cc:1481
virtual unsigned preambleDuration() const
Returns the preamble duration in ms.
Definition: radioddity_codeplug.cc:1440
RadiodditySettingsExtension::MonitorType MonitorType
Use monitor type from extension.
Definition: radioddity_codeplug.hh:748
virtual void enableDownChannelModeVFO(bool enable)
Enables/disables down-channel mode is VFO.
Definition: radioddity_codeplug.cc:1524
virtual void enableBatsaveRX(bool enable)
Enables/disables battery saving by disabling RX.
Definition: radioddity_codeplug.cc:1607
virtual bool animation() const
Returns true if animation is enabled.
Definition: radioddity_codeplug.cc:1653
virtual void enableSelftestTone(bool enable)
Enables/disables reset tone.
Definition: radioddity_codeplug.cc:1583
virtual unsigned radioID() const
Returns the DMR radio ID.
Definition: radioddity_codeplug.cc:1431
virtual void enableDigitalTalkPermitTone(bool enable)
Enables/disables digital channel talk permit tone.
Definition: radioddity_codeplug.cc:1567
virtual ~GeneralSettingsElement()
Destructor.
Definition: radioddity_codeplug.cc:1367
virtual void setMonitorType(MonitorType type)
Sets the monitor type.
Definition: radioddity_codeplug.cc:1453
virtual bool batsavePreamble() const
Returns true if preable is disabled for battery saving.
Definition: radioddity_codeplug.cc:1611
GeneralSettingsElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: radioddity_codeplug.cc:1355
virtual unsigned privateCallHangTime() const
Returns the private call hang time in ms.
Definition: radioddity_codeplug.cc:1511
virtual QString name() const
Returns the radio name.
Definition: radioddity_codeplug.cc:1422
virtual void setName(const QString &name)
Sets the radio name.
Definition: radioddity_codeplug.cc:1426
virtual bool channelFreeIndicationTone() const
Returns true if the channel free indication tone is enabled.
Definition: radioddity_codeplug.cc:1587
virtual void inhibitQuickKeyOverride(bool inhibit)
Inhibits quick-key override.
Definition: radioddity_codeplug.cc:1632
virtual bool upChannelModeVFO() const
Returns true if the up-channel mode is VFO.
Definition: radioddity_codeplug.cc:1528
virtual void disableAllTones(bool disable)
Disables/enables all tones.
Definition: radioddity_codeplug.cc:1599
virtual void enableAnimation(bool enable)
Enables/disables animation.
Definition: radioddity_codeplug.cc:1657
virtual QString progPassword() const
Returns the programming password.
Definition: radioddity_codeplug.cc:1691
virtual bool allLEDsDisabled() const
Returns true if all LEDs are disabled.
Definition: radioddity_codeplug.cc:1620
virtual void disableAllLEDs(bool disable)
Disables/enables all LEDs.
Definition: radioddity_codeplug.cc:1624
void clear()
Resets the general settings.
Definition: radioddity_codeplug.cc:1372
virtual bool digitalTalkPermitTone() const
Returns true if the digital channel talk permit tone is enabled.
Definition: radioddity_codeplug.cc:1563
virtual bool analogTalkPermitTone() const
Returns true if the analog channel talk permit tone is enabled.
Definition: radioddity_codeplug.cc:1571
virtual void setLoneWorkerResponsePeriod(unsigned min)
Sets the lone-worker response period in minutes.
Definition: radioddity_codeplug.cc:1490
RadiodditySettingsExtension::ScanMode ScanMode
Use scan mode from extension.
Definition: radioddity_codeplug.hh:752
virtual void setGroupCallHangTime(unsigned ms)
Sets the group call hang time in ms.
Definition: radioddity_codeplug.cc:1507
virtual void clearProgPassword()
Resets the programming password.
Definition: radioddity_codeplug.cc:1699
virtual void enableBatsavePreamble(bool enable)
Enables/disables battery saving by disabling preamble.
Definition: radioddity_codeplug.cc:1615
RadioddityToneSettingsExtension::ARTSTone ARTSTone
Use ARTS tone mode from extension.
Definition: radioddity_codeplug.hh:750
virtual bool unknownNumberTone() const
Returns true if the unknown number tone is enabled.
Definition: radioddity_codeplug.cc:1545
virtual unsigned repeaterEndDelay() const
Returns the repeater end delay in [0-10].
Definition: radioddity_codeplug.cc:1670
virtual ARTSTone artsToneMode() const
Returns the ARTS tone mode.
Definition: radioddity_codeplug.cc:1554
virtual void enableUnknownNumberTone(bool enable)
Enables/disables reset tone.
Definition: radioddity_codeplug.cc:1549
virtual bool hasProgPassword() const
Returns true if a programming password is set.
Definition: radioddity_codeplug.cc:1687
virtual unsigned loneWorkerReminderPeriod() const
Returns the lone-worker reminder period in seconds.
Definition: radioddity_codeplug.cc:1494
virtual void setRadioID(unsigned id)
Sets the DMR radio ID.
Definition: radioddity_codeplug.cc:1435
virtual ScanMode scanMode() const
Returns the scan mode.
Definition: radioddity_codeplug.cc:1661
virtual bool txOnActiveChannel() const
Returns true if the radio transmits on the active channel on double monitor.
Definition: radioddity_codeplug.cc:1645
virtual unsigned voxSensitivity() const
Returns the VOX sensitivity [1-10], 0=disabled.
Definition: radioddity_codeplug.cc:1458
virtual void setLowBatteryWarnInterval(unsigned sec)
Sets the low-battery warn interval in seconds.
Definition: radioddity_codeplug.cc:1472
virtual void enableChannelFreeIndicationTone(bool enable)
Enables/disables channel free indication tone.
Definition: radioddity_codeplug.cc:1591
virtual MonitorType monitorType() const
Returns the monitor type.
Definition: radioddity_codeplug.cc:1449
virtual void setARTSToneMode(ARTSTone mode)
Sets the ARTS tone mode.
Definition: radioddity_codeplug.cc:1558
virtual unsigned repeaterSTE() const
Returns the repeater STE in [0-10].
Definition: radioddity_codeplug.cc:1678
virtual void setRepeaterSTE(unsigned ste)
Sets the repeater STE in [0-10].
Definition: radioddity_codeplug.cc:1682
virtual unsigned groupCallHangTime() const
Returns the group call hang time in ms.
Definition: radioddity_codeplug.cc:1503
virtual unsigned callAlertDuration() const
Returns the call-alert duration in seconds.
Definition: radioddity_codeplug.cc:1477
virtual void setPrivateCallHangTime(unsigned ms)
Sets the private call hang time in ms.
Definition: radioddity_codeplug.cc:1515
virtual void enableTXExitTone(bool enable)
Enables/disables TX exit tone.
Definition: radioddity_codeplug.cc:1641
virtual void setPreambleDuration(unsigned ms)
Sets the preamble duration in ms.
Definition: radioddity_codeplug.cc:1444
virtual unsigned loneWorkerResponsePeriod() const
Returns the lone-worker response period in minutes.
Definition: radioddity_codeplug.cc:1486
virtual void enableAnalogTalkPermitTone(bool enable)
Enables/disables analog channel talk permit tone.
Definition: radioddity_codeplug.cc:1575
virtual bool downChannelModeVFO() const
Returns true if the down-channel mode is VFO.
Definition: radioddity_codeplug.cc:1520
virtual bool quickKeyOverrideInhibited() const
Returns true if quick-key override is inhibited.
Definition: radioddity_codeplug.cc:1628
virtual bool resetTone() const
Returns true if the reset tone is enabled.
Definition: radioddity_codeplug.cc:1537
virtual unsigned lowBatteryWarnInterval() const
Returns the low-battery warn interval in seconds.
Definition: radioddity_codeplug.cc:1468
virtual void setVOXSensitivity(unsigned value)
Sets the VOX sensitivity.
Definition: radioddity_codeplug.cc:1462
virtual void setProgPassword(const QString &pwd)
Sets the programming password.
Definition: radioddity_codeplug.cc:1695
virtual bool fromConfig(const Config *conf, Context &ctx)
Encodes the general setting from the given config.
Definition: radioddity_codeplug.cc:1704
virtual bool txExitTone() const
Returns true if the TX exit tone is enabled.
Definition: radioddity_codeplug.cc:1637
virtual void enableResetTone(bool enable)
Enables/disables reset tone.
Definition: radioddity_codeplug.cc:1541
virtual void setScanMode(ScanMode mode)
Sets the scan mode.
Definition: radioddity_codeplug.cc:1665
virtual bool selftestTone() const
Returns true if the reset tone is enabled.
Definition: radioddity_codeplug.cc:1579
virtual void setLoneWorkerReminderPeriod(unsigned sec)
Sets the lone-worker reminder period in seconds.
Definition: radioddity_codeplug.cc:1498
virtual bool updateConfig(Config *conf, Context &ctx)
Updates the given config from this settings.
Definition: radioddity_codeplug.cc:1759
virtual void enableTXOnActiveChannel(bool enable)
Enables/disables transmission on active channel on double monitor.
Definition: radioddity_codeplug.cc:1649
Implements a base class of group list memory banks for all Radioddity codeplugs.
Definition: radioddity_codeplug.hh:543
virtual unsigned contactCount(unsigned n) const
Returns the number of contacts in the n-th group list.
Definition: radioddity_codeplug.cc:1044
virtual bool isEnabled(unsigned n) const
Returns true if the n-th group list is enabled.
Definition: radioddity_codeplug.cc:1040
static constexpr unsigned int size()
Returns the size of the element.
Definition: radioddity_codeplug.hh:555
virtual void setContactCount(unsigned n, unsigned size)
Sets the number of contacts in the n-th group list.
Definition: radioddity_codeplug.cc:1048
void clear()
Resets the bank.
Definition: radioddity_codeplug.cc:1035
virtual void disable(unsigned n)
Disables the n-th group list.
Definition: radioddity_codeplug.cc:1052
GroupListBankElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: radioddity_codeplug.cc:1018
virtual ~GroupListBankElement()
Destructor.
Definition: radioddity_codeplug.cc:1030
virtual uint8_t * get(unsigned n) const
Returns a pointer to the n-th group list.
Definition: radioddity_codeplug.cc:1057
Represents a base class for all group lists within Radioddity codeplugs.
Definition: radioddity_codeplug.hh:478
virtual unsigned member(unsigned n) const
Returns the n-th member index (+1).
Definition: radioddity_codeplug.cc:960
virtual QString name() const
Returns the name of the group list.
Definition: radioddity_codeplug.cc:945
virtual void clearMember(unsigned n)
Clears the n-th member index.
Definition: radioddity_codeplug.cc:968
GroupListElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: radioddity_codeplug.cc:922
virtual void setMember(unsigned n, unsigned idx)
Sets the n-th member index (+1).
Definition: radioddity_codeplug.cc:964
void clear()
Resets the group list.
Definition: radioddity_codeplug.cc:939
virtual bool linkRXGroupListObj(int ncnt, RXGroupList *lst, Context &ctx, const ErrorStack &err=ErrorStack()) const
Links a previously constructed RXGroupList to the rest of the generic configuration.
Definition: radioddity_codeplug.cc:979
virtual void fromRXGroupListObj(const RXGroupList *lst, Context &ctx, const ErrorStack &err=ErrorStack())
Reset this codeplug representation from a RXGroupList object.
Definition: radioddity_codeplug.cc:993
virtual RXGroupList * toRXGroupListObj(Context &ctx, const ErrorStack &err=ErrorStack())
Constructs a RXGroupList object from the codeplug representation.
Definition: radioddity_codeplug.cc:973
virtual ~GroupListElement()
Destructor.
Definition: radioddity_codeplug.cc:934
static constexpr unsigned int size()
Size of the element.
Definition: radioddity_codeplug.hh:490
virtual bool hasMember(unsigned n) const
Returns true if the group list has an n-th member.
Definition: radioddity_codeplug.cc:954
virtual void setName(const QString &name)
Sets the name of the group list.
Definition: radioddity_codeplug.cc:949
Implements the base class of a message bank for all Radioddity message banks.
Definition: radioddity_codeplug.hh:1313
virtual QString message(unsigned n) const
Returns the n-th message.
Definition: radioddity_codeplug.cc:2533
virtual ~MessageBankElement()
Destructor.
Definition: radioddity_codeplug.cc:2515
virtual unsigned numMessages() const
Returns the number of messages.
Definition: radioddity_codeplug.cc:2529
MessageBankElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: radioddity_codeplug.cc:2503
virtual bool encode(Context &ctx, const Flags &flags, const ErrorStack &err=ErrorStack())
Encodes all preset messages.
Definition: radioddity_codeplug.cc:2553
static constexpr unsigned int size()
Returns the size of the message bank.
Definition: radioddity_codeplug.hh:1325
virtual void appendMessage(const QString msg)
Appends a message to the list.
Definition: radioddity_codeplug.cc:2539
void clear()
Resets all messages.
Definition: radioddity_codeplug.cc:2520
virtual bool decode(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes all preset messages.
Definition: radioddity_codeplug.cc:2564
Implements the base class of scan lists banks for all Radioddity codeplugs.
Definition: radioddity_codeplug.hh:717
virtual bool isEnabled(unsigned n) const
Returns true if the n-th scan list is enabled.
Definition: radioddity_codeplug.cc:1335
virtual ~ScanListBankElement()
Destructor.
Definition: radioddity_codeplug.cc:1325
virtual void enable(unsigned n, bool enabled)
Enable/disable n-th scan list.
Definition: radioddity_codeplug.cc:1339
virtual uint8_t * get(unsigned n) const
Returns a pointer to the n-th scan list.
Definition: radioddity_codeplug.cc:1347
void clear()
Resets the scan list bank.
Definition: radioddity_codeplug.cc:1330
ScanListBankElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: radioddity_codeplug.cc:1313
Implements the base class for scan lists of all Radioddity codeplugs.
Definition: radioddity_codeplug.hh:597
virtual bool hasSecondary() const
Returns true if the secondary priority channel is set.
Definition: radioddity_codeplug.cc:1181
virtual void clearPrimary()
Clears the primary priority channel.
Definition: radioddity_codeplug.cc:1176
virtual unsigned secondary() const
Return the channel index for the secondary priority channel.
Definition: radioddity_codeplug.cc:1189
virtual void fromScanListObj(const ScanList *lst, Context &ctx)
Initializes this codeplug representation from the given ScanList object.
Definition: radioddity_codeplug.cc:1281
virtual void setName(const QString &name)
Sets the name of the scan list.
Definition: radioddity_codeplug.cc:1099
virtual void clearSecondary()
Clears the secondary priority channel.
Definition: radioddity_codeplug.cc:1201
ScanListElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: radioddity_codeplug.cc:1065
virtual ~ScanListElement()
Destructor.
Definition: radioddity_codeplug.cc:1077
virtual void setSelected(unsigned n)
Sets the n-th member to be the selected channel.
Definition: radioddity_codeplug.cc:1147
virtual void setRevertSelected()
Sets the revert channel to be the selected one.
Definition: radioddity_codeplug.cc:1222
void clear()
Resets the scan list.
Definition: radioddity_codeplug.cc:1082
virtual void clearMember(unsigned n)
Clears the n-th member.
Definition: radioddity_codeplug.cc:1151
virtual bool revertIsSelected() const
Returns true if the revert channel is the selected channel.
Definition: radioddity_codeplug.cc:1210
virtual unsigned revert() const
Return the channel index for the revert channel.
Definition: radioddity_codeplug.cc:1214
virtual bool secondaryIsSelected() const
Returns true if the secondary priority channel is the selected channel.
Definition: radioddity_codeplug.cc:1185
virtual void enableTalkback(bool enable)
Enables/disables talk back.
Definition: radioddity_codeplug.cc:1126
virtual void setPrioritySampleTime(unsigned ms)
Sets the priority sample time in ms.
Definition: radioddity_codeplug.cc:1244
virtual void enableChannelMark(bool enable)
Enables/disables channel mark.
Definition: radioddity_codeplug.cc:1108
virtual void setMember(unsigned n, unsigned idx)
Sets the n-th member index.
Definition: radioddity_codeplug.cc:1143
virtual Mode mode() const
Returns the scan mode.
Definition: radioddity_codeplug.cc:1113
virtual void setRevert(unsigned idx)
Sets the revert channel index.
Definition: radioddity_codeplug.cc:1218
virtual void setSecondarySelected()
Sets the secondary priority channel to be the selected channel.
Definition: radioddity_codeplug.cc:1197
virtual unsigned prioritySampleTime() const
Returns the priority sample time in ms.
Definition: radioddity_codeplug.cc:1240
virtual bool hasPrimary() const
Returns true if the primary priority channel is set.
Definition: radioddity_codeplug.cc:1156
virtual void clearRevert()
Clears the revert channel, sets it to last active.
Definition: radioddity_codeplug.cc:1226
virtual unsigned member(unsigned n) const
Returns the n-th member index.
Definition: radioddity_codeplug.cc:1139
virtual bool hasRevert() const
Returns true if the revert channel is set, if false the radio will transmit on the last active channe...
Definition: radioddity_codeplug.cc:1206
virtual bool linkScanListObj(ScanList *lst, Context &ctx) const
Links a previously constructed ScanList object to the rest of the generic configuration.
Definition: radioddity_codeplug.cc:1255
virtual void setSecondary(unsigned idx)
Sets the secondary priority channel index.
Definition: radioddity_codeplug.cc:1193
virtual void setMode(Mode mode)
Sets the scan mode.
Definition: radioddity_codeplug.cc:1117
virtual void setHoldTime(unsigned ms)
Sets the hold time in ms.
Definition: radioddity_codeplug.cc:1235
virtual bool talkback() const
Returns true if talk back is enabled.
Definition: radioddity_codeplug.cc:1122
virtual bool hasMember(unsigned n) const
Returns true if the n-th member is set.
Definition: radioddity_codeplug.cc:1131
virtual ScanList * toScanListObj(Context &ctx) const
Constructs a ScanList object from this codeplug representation.
Definition: radioddity_codeplug.cc:1249
virtual unsigned primary() const
Return the channel index for the primary priority channel.
Definition: radioddity_codeplug.cc:1164
virtual bool primaryIsSelected() const
Returns true if the primary priority channel is the selected channel.
Definition: radioddity_codeplug.cc:1160
Mode
Possible priority channel types.
Definition: radioddity_codeplug.hh:600
@ PL_PRI_NONPRI
Priority and non-priority channels.
Definition: radioddity_codeplug.hh:604
@ PL_DISABLE
Disable priority channels.
Definition: radioddity_codeplug.hh:602
@ PL_NONPRI
Only non-priority channels.
Definition: radioddity_codeplug.hh:601
@ PL_PRI
Only priority channels.
Definition: radioddity_codeplug.hh:603
virtual bool isSelected(unsigned n) const
Returns true if the n-th member is selected channel.
Definition: radioddity_codeplug.cc:1135
virtual unsigned holdTime() const
Returns the hold time in ms.
Definition: radioddity_codeplug.cc:1231
virtual void setPrimarySelected()
Sets the primary priority channel to be the selected channel.
Definition: radioddity_codeplug.cc:1172
virtual bool channelMark() const
Returns true if channel mark is enabled.
Definition: radioddity_codeplug.cc:1104
virtual QString name() const
Returns the name of the scan list.
Definition: radioddity_codeplug.cc:1095
virtual void setPrimary(unsigned idx)
Sets the primary priority channel index.
Definition: radioddity_codeplug.cc:1168
VFO Channel representation within the binary codeplug.
Definition: radioddity_codeplug.hh:255
VFOChannelElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: radioddity_codeplug.cc:506
virtual void setOffsetMode(OffsetMode mode)
Sets the transmit frequency offset mode.
Definition: radioddity_codeplug.cc:576
virtual void setStepSize(double kHz)
Sets the tuning step-size in kHz.
Definition: radioddity_codeplug.cc:552
OffsetMode
Possible offset frequency modes.
Definition: radioddity_codeplug.hh:258
@ Positive
Transmit offset frequency is positive (TX above RX).
@ Off
Disables transmit frequency offset.
@ Negative
Transmit offset frequency is negative (TX below RX).
virtual void setTXOffset(double f)
Sets the transmit frequency offset in MHz.
Definition: radioddity_codeplug.cc:584
void setName(const QString &name)
The VFO channel has no name.
Definition: radioddity_codeplug.cc:531
virtual OffsetMode offsetMode() const
Returns the transmit frequency offset mode.
Definition: radioddity_codeplug.cc:572
StepSize
Possible tuning step sizes.
Definition: radioddity_codeplug.hh:265
QString name() const
The VFO channel has no name.
Definition: radioddity_codeplug.cc:527
virtual double txOffset() const
Returns the transmit frequency offset.
Definition: radioddity_codeplug.cc:580
void clear()
Resets the channel.
Definition: radioddity_codeplug.cc:519
virtual double stepSize() const
Returns the tuning step-size in kHz.
Definition: radioddity_codeplug.cc:537
Implements the base class for all zone banks of Radioddity codeplugs.
Definition: radioddity_codeplug.hh:450
void clear()
Resets the bank.
Definition: radioddity_codeplug.cc:899
virtual uint8_t * get(unsigned idx) const
Returns a pointer to the channel at the given index.
Definition: radioddity_codeplug.cc:914
ZoneBankElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: radioddity_codeplug.cc:882
~ZoneBankElement()
Destructor.
Definition: radioddity_codeplug.cc:894
virtual void enable(unsigned idx, bool enabled)
Enable/disable a channel in the bank.
Definition: radioddity_codeplug.cc:909
virtual bool isEnabled(unsigned idx) const
Returns true if the channel is enabled.
Definition: radioddity_codeplug.cc:904
Represents a zone within Radioddity codeplugs.
Definition: radioddity_codeplug.hh:403
virtual void fromZoneObjA(const Zone *zone, Context &ctx)
Resets this codeplug zone representation from the given generic Zone object.
Definition: radioddity_codeplug.cc:850
void clear()
Resets the zone.
Definition: radioddity_codeplug.cc:787
virtual QString name() const
Returns the name of the zone.
Definition: radioddity_codeplug.cc:797
virtual bool linkZoneObj(Zone *zone, Context &ctx) const
Links a previously constructed Zone object to the rest of the configuration.
Definition: radioddity_codeplug.cc:831
virtual void fromZoneObjB(const Zone *zone, Context &ctx)
Resets this codeplug zone representation from the given generic Zone object.
Definition: radioddity_codeplug.cc:865
virtual unsigned member(unsigned n) const
Returns the n-th member index (+1).
Definition: radioddity_codeplug.cc:810
virtual void setName(const QString &name)
Sets the name of the zone.
Definition: radioddity_codeplug.cc:801
virtual bool hasMember(unsigned n) const
Returns true if a member is stored at the given index.
Definition: radioddity_codeplug.cc:806
ZoneElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: radioddity_codeplug.cc:770
virtual void setMember(unsigned n, unsigned idx)
Sets the n-th member index (+1).
Definition: radioddity_codeplug.cc:814
virtual Zone * toZoneObj(Context &ctx) const
Constructs a generic Zone object from this codeplug zone.
Definition: radioddity_codeplug.cc:823
bool isValid() const
Returns true if the zone is valid.
Definition: radioddity_codeplug.cc:792
virtual void clearMember(unsigned n)
Clears the n-th member index.
Definition: radioddity_codeplug.cc:818
Base class of all Radioddity codeplugs.
Definition: radioddity_codeplug.hh:24
virtual bool createScanLists(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Creates all scan lists.
virtual bool decodeMessages(Context &ctx, const ErrorStack &err=ErrorStack())=0
Decodes preset messages.
virtual void clearChannels()=0
Clear all channels.
virtual void clearGeneralSettings()=0
Clears the general settings in the codeplug.
virtual bool encodeZones(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes zones.
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: radioddity_codeplug.cc:2818
virtual bool createDTMFContacts(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds all DTMF contacts to the configuration.
virtual bool createGroupLists(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Creates all group lists.
virtual bool encodeBootText(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes boot text.
virtual bool encodeScanLists(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all scan lists.
virtual bool createContacts(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a digital contact to the configuration for each one in the codeplug.
virtual bool createChannels(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds all defined channels to the configuration.
virtual void clearVFOSettings()=0
Clears the VFO settings.
virtual bool encodeDTMFContacts(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all DTMF contacts.
virtual bool encodeChannels(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encode all channels.
virtual void clearMessages()=0
Clears the messages.
virtual bool createZones(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds zones to the configuration.
virtual void clearScanLists()=0
Clears all scan lists.
virtual bool linkGroupLists(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Links all group lists.
RadioddityCodeplug(QObject *parent=nullptr)
Hidden constructor, use a device specific class to instantiate.
Definition: radioddity_codeplug.cc:2706
virtual bool decodeElements(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes the binary codeplug and stores its content in the given generic configuration using the given...
Definition: radioddity_codeplug.cc:2926
virtual bool linkScanLists(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Links all scan lists.
virtual bool encodeContacts(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all digital contacts in the configuration into the codeplug.
virtual void clearBootText()=0
Clears boot text.
virtual bool encodeButtonSettings(Context &ctx, const Flags &flags, const ErrorStack &err=ErrorStack())=0
Encodes button settings.
virtual bool linkEncryption(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Links all encryption keys.
virtual bool decodeBootText(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Updates the given configuration from the boot text settings.
bool decode(Config *config, const ErrorStack &err=ErrorStack())
Decodes a binary codeplug to the given abstract configuration config.
Definition: radioddity_codeplug.cc:2899
virtual void clearZones()=0
Clears all zones.
bool postprocess(Config *config, const ErrorStack &err) const
Retruns a post-processed configuration of the decoded config.
Definition: radioddity_codeplug.cc:2910
virtual bool encodeGeneralSettings(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Updates the general settings from the given configuration.
virtual bool encodeElements(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the given generic configuration as a binary codeplug using the given context.
Definition: radioddity_codeplug.cc:2836
virtual ~RadioddityCodeplug()
Destructor.
Definition: radioddity_codeplug.cc:2712
virtual void clearEncryption()=0
Clears all encryption keys.
virtual void clearDTMFContacts()=0
Clears all DTMF contacts in the codeplug.
bool index(Config *config, Context &ctx, const ErrorStack &err=ErrorStack()) const
Indexes all elements of the codeplug.
Definition: radioddity_codeplug.cc:2749
virtual void clear()
Clears and resets the complete codeplug to some default values.
Definition: radioddity_codeplug.cc:2717
virtual void clearMenuSettings()=0
Clears menu settings.
virtual void clearButtonSettings()=0
Clears the button settings.
virtual bool encodeEncryption(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all encryption keys defined.
virtual void clearBootSettings()=0
Clear boot settings.
virtual bool createEncryption(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Creates all encryption keys.
virtual void clearGroupLists()=0
Clears all group lists.
virtual bool decodeButtonSettings(Context &ctx, const ErrorStack &err=ErrorStack())=0
Decodes the button settings.
virtual bool decodeGeneralSettings(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Updates the given configuration from the general settings.
Config * preprocess(Config *config, const ErrorStack &err) const
Retruns a prepared configuration for this particular radio.
Definition: radioddity_codeplug.cc:2799
virtual bool linkChannels(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Links all channels.
virtual void clearContacts()=0
Clears all contacts in the codeplug.
virtual bool encodeGroupLists(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all group lists.
virtual bool encodeMessages(Context &ctx, const Flags &flags, const ErrorStack &err=ErrorStack())=0
Encodes preset messages.
virtual bool linkZones(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Links all zones within the configuration.
MonitorType
Possible monitor types.
Definition: radioddity_extensions.hh:372
ScanMode
Possible scan modes.
Definition: radioddity_extensions.hh:379
ARTSTone
Possible ARTS tone settings.
Definition: radioddity_extensions.hh:135
Simple range class representing some range in some data type.
Definition: ranges.hh:14
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 encryption element.
Definition: radioddity_codeplug.hh:1411
static constexpr unsigned int basicEncryptionKeys()
The maximum number of (basic) encryption keys.
Definition: radioddity_codeplug.hh:1413
Some limits for the group list bank.
Definition: radioddity_codeplug.hh:575
static constexpr unsigned int memberCount()
Maximum number of members.
Definition: radioddity_codeplug.hh:577
Internal used offset within the element.
Definition: radioddity_codeplug.hh:582
Some limits for the group list.
Definition: radioddity_codeplug.hh:519
static constexpr unsigned int memberCount()
Maximum member count.
Definition: radioddity_codeplug.hh:523
static constexpr unsigned int nameLength()
Maximum name length.
Definition: radioddity_codeplug.hh:521
Some internal offsets within the element.
Definition: radioddity_codeplug.hh:528
Some limits.
Definition: radioddity_codeplug.hh:1343
static constexpr unsigned int messageLength()
Maximum length of each message.
Definition: radioddity_codeplug.hh:1345
static constexpr unsigned int messages()
Maximum number of messages.
Definition: radioddity_codeplug.hh:1344
Some internal used offset.
Definition: radioddity_codeplug.hh:1350