1 #ifndef DMR6X2UVCODEPLUG_HH
2 #define DMR6X2UVCODEPLUG_HH
4 #include "d878uv_codeplug.hh"
206 Orange=0, Red=1, Yellow=2, Green=3, Turquoise=4, Blue=5, White = 6, Black = 7
236 White = 0, Black = 1, Orange=2, Red=3, Yellow=4, Green=5, Turquoise=6, Blue=7
262 Off = 0x00, Voltage = 0x01, Power = 0x02, Repeater = 0x03, Reverse = 0x04,
263 Encryption = 0x05, Call = 0x06, VOX = 0x07, ToggleVFO = 0x08, SubPTT = 0x09,
264 Scan = 0x0a, WFM = 0x0b, Alarm = 0x0c, RecordSwitch = 0x0d, Record = 0x0e, SMS = 0x0f,
265 Dial = 0x10, GPSInformation = 0x11, Monitor = 0x12, ToggleMainChannel = 0x13, HotKey1 = 0x14,
266 HotKey2 = 0x15, HotKey3 = 0x16, HotKey4 = 0x17, HotKey5 = 0x18, HotKey6 = 0x19,
267 WorkAlone = 0x1a, SkipChannel = 0x1b, DMRMonitor = 0x1c, SubChannel = 0x1d,
268 PriorityZone = 0x1e, VFOScan = 0x1f, MICSoundQuality = 0x20, LastCallReply = 0x21,
269 ChannelType = 0x22, SimplexRepeater = 0x23, Ranging = 0x24, ChannelRanging = 0x25,
270 MaxVolume = 0x26, Slot = 0x27, Squelch = 0x28, Roaming = 0x29,
Zone = 0x2a, RoamingSet = 0x2b,
271 Mute = 0x02c, CtcssDcsSet=0x2d, APRSSet = 0x2e, APRSSend = 0x2f
289 DTMF_DUR_50ms = 0, DTMF_DUR_100ms = 1, DTMF_DUR_200ms = 2, DTMF_DUR_300ms = 3, DTMF_DUR_500ms = 4
294 Hz1000 = 0, Hz1450 = 1, Hz1750 = 2, Hz2100 = 3
299 Off = 0, Hz55_2 = 1, Hz259_2 = 2
312 static constexpr
unsigned int size() {
return 0x00e0; }
534 virtual AnytoneDMRSettingsExtension::SMSFormat
smsFormat()
const;
536 virtual void setSMSFormat(AnytoneDMRSettingsExtension::SMSFormat fmt);
603 static constexpr
unsigned int language() {
return 0x0005; }
605 static constexpr
unsigned int vfoModeB() {
return 0x0015; }
606 static constexpr
unsigned int vfoModeA() {
return 0x0016; }
607 static constexpr
unsigned int steType() {
return 0x0017; }
608 static constexpr
unsigned int steFrequency() {
return 0x0018; }
611 static constexpr
unsigned int preWaveDelay() {
return 0x001b; }
614 static constexpr
unsigned int wfmVFOEnabled() {
return 0x001e; }
616 static constexpr
unsigned int manDown() {
return 0x0024; }
617 static constexpr
unsigned int wfmMonitor() {
return 0x002b; }
618 static constexpr
unsigned int tbstFrequency() {
return 0x002e; }
619 static constexpr
unsigned int proMode() {
return 0x0034; }
620 static constexpr
unsigned int enableKeyTone() {
return 0x0036; }
621 static constexpr
unsigned int filterOwnID() {
return 0x0038; }
623 static constexpr
unsigned int remoteMonitor() {
return 0x003e; }
624 static constexpr
unsigned int selectTXContact() {
return 0x0040; }
625 static constexpr
unsigned int monSlotMatch() {
return 0x0049; }
626 static constexpr
unsigned int monColorCodeMatch() {
return 0x004a; }
627 static constexpr
unsigned int monIDMatch() {
return 0x004b; }
628 static constexpr
unsigned int monTimeSlotHold() {
return 0x004c; }
629 static constexpr
unsigned int manDownDelay() {
return 0x004f; }
630 static constexpr
unsigned int fmCallHold() {
return 0x0050; }
633 static constexpr
unsigned int priorityZoneA() {
return 0x006f; }
634 static constexpr
unsigned int priorityZoneB() {
return 0x0070; }
635 static constexpr
unsigned int smsConfirm() {
return 0x0071; }
636 static constexpr
unsigned int simplexRepEnable() {
return 0x00b1; }
638 static constexpr
unsigned int simplxRepSpeaker() {
return 0x00b3; }
639 static constexpr
unsigned int showContact() {
return 0x00b4; }
640 static constexpr
unsigned int keyToneLevel() {
return 0x00b5; }
641 static constexpr
unsigned int knobLock() {
return 0x00b6; }
642 static constexpr
unsigned int keypadLock() {
return 0x00b6; }
643 static constexpr
unsigned int sideKeyLock() {
return 0x00b6; }
644 static constexpr
unsigned int forceKeyLock() {
return 0x00b6; }
645 static constexpr
unsigned int simplxRepSlot() {
return 0x00b7; }
646 static constexpr
unsigned int showLastHeard() {
return 0x00b8; }
647 static constexpr
unsigned int smsFormat() {
return 0x00b9; }
648 static constexpr
unsigned int gpsUnits() {
return 0x00ba; }
649 static constexpr
unsigned int autoRepMinVHF() {
return 0x00bc; }
650 static constexpr
unsigned int autoRepMaxVHF() {
return 0x00c0; }
651 static constexpr
unsigned int autoRepMinUHF() {
return 0x00c4; }
652 static constexpr
unsigned int autoRepMaxUHF() {
return 0x00c8; }
653 static constexpr
unsigned int autoRepeaterDirB() {
return 0x00cc; }
655 static constexpr
unsigned int defaultChannels() {
return 0x00ce; }
656 static constexpr
unsigned int defaultZoneA() {
return 0x00cf; }
657 static constexpr
unsigned int defaultZoneB() {
return 0x00d0; }
658 static constexpr
unsigned int defaultChannelA() {
return 0x00d1; }
659 static constexpr
unsigned int defaultChannelB() {
return 0x00d2; }
662 static constexpr
unsigned int standbyBackground() {
return 0x00d5; }
663 static constexpr
unsigned int manGrpCallHangTime() {
return 0x00d6; }
664 static constexpr
unsigned int manPrvCallHangTime() {
return 0x00d7; }
685 static constexpr
unsigned int size() {
return 0x0030; }
761 virtual AnytoneDMRSettingsExtension::EncryptionType
encryptionType()
const;
763 virtual void setEncryptionType(AnytoneDMRSettingsExtension::EncryptionType type);
810 static constexpr
unsigned int talkerAliasDisplay() {
return 0x0001; }
812 static constexpr
unsigned int fontColor() {
return 0x0003; }
813 static constexpr
unsigned int customChannelBackground() {
return 0x0004; }
814 static constexpr
unsigned int defaultRoamingZone() {
return 0x0005; }
815 static constexpr
unsigned int roaming() {
return 0x0006; }
816 static constexpr
unsigned int repRangeCheck() {
return 0x0007; }
817 static constexpr
unsigned int repRangeAlert() {
return 0x0008; }
818 static constexpr
unsigned int repRangeReminder() {
return 0x0009; }
819 static constexpr
unsigned int rangeCheckInterval() {
return 0x000a; }
820 static constexpr
unsigned int rangeCheckCount() {
return 0x000b; }
821 static constexpr
unsigned int roamStartCondition() {
return 0x000c; }
823 static constexpr
unsigned int autoRoamDelay() {
return 0x000e; }
824 static constexpr
unsigned int roamReturnCondition() {
return 0x000f; }
825 static constexpr
unsigned int muteDelay() {
return 0x0010; }
894 Off=0,
CTCSS=1, DCS=2
902 static constexpr
unsigned int size() {
return 0x00a0; }
929 virtual bool autoTX()
const;
953 virtual QString
source()
const;
957 virtual void setSource(
const QString &call,
unsigned ssid);
960 virtual QString
path()
const;
1050 static constexpr
unsigned int fmFrequency() {
return 0x0001; }
1051 static constexpr
unsigned int fmTXDelay() {
return 0x0005; }
1052 static constexpr
unsigned int fmSigType() {
return 0x0006; }
1053 static constexpr
unsigned int fmCTCSS() {
return 0x0007; }
1054 static constexpr
unsigned int fmDCS() {
return 0x0008; }
1056 static constexpr
unsigned int autoTXInterval() {
return 0x000b; }
1057 static constexpr
unsigned int fmTXMonitor() {
return 0x000c; }
1058 static constexpr
unsigned int fixedLocation() {
return 0x000d; }
1059 static constexpr
unsigned int fixedLatDeg() {
return 0x000e; }
1060 static constexpr
unsigned int fixedLatMin() {
return 0x000f; }
1061 static constexpr
unsigned int fixedLatSec() {
return 0x0010; }
1062 static constexpr
unsigned int fixedLatSouth() {
return 0x0011; }
1063 static constexpr
unsigned int fixedLonDeg() {
return 0x0012; }
1064 static constexpr
unsigned int fixedLonMin() {
return 0x0013; }
1065 static constexpr
unsigned int fixedLonSec() {
return 0x0014; }
1066 static constexpr
unsigned int fixedLonWest() {
return 0x0015; }
1067 static constexpr
unsigned int destinationCall() {
return 0x0016; }
1069 static constexpr
unsigned int sourceCall() {
return 0x001d; }
1070 static constexpr
unsigned int sourceSSID() {
return 0x0023; }
1071 static constexpr
unsigned int path() {
return 0x0024; }
1072 static constexpr
unsigned int symbolTable() {
return 0x0039; }
1073 static constexpr
unsigned int symbol() {
return 0x003a; }
1074 static constexpr
unsigned int fmPower() {
return 0x003b; }
1075 static constexpr
unsigned int fmPrewaveDelay() {
return 0x003c; }
1076 static constexpr
unsigned int dmrChannelIndices() {
return 0x0040; }
1077 static constexpr
unsigned int betweenDMRChannelIndices() {
return 0x0002; }
1078 static constexpr
unsigned int dmrDestinations() {
return 0x0050; }
1079 static constexpr
unsigned int betweenDMRDestinations() {
return 0x0004; }
1080 static constexpr
unsigned int dmrCallTypes() {
return 0x0070; }
1081 static constexpr
unsigned int betweenDMRCallTypes() {
return 0x0001; }
1082 static constexpr
unsigned int roamingSupport() {
return 0x0078; }
1083 static constexpr
unsigned int dmrTimeSlots() {
return 0x0079; }
1084 static constexpr
unsigned int betweenDMRTimeSlots() {
return 0x0001; }
1085 static constexpr
unsigned int dmrPrewaveDelay() {
return 0x0081; }
1155 static constexpr
unsigned int roamingChannelBitmap() {
return 0x01042000; }
1156 static constexpr
unsigned int roamingChannels() {
return 0x01040000; }
1157 static constexpr
unsigned int roamingZoneBitmap() {
return 0x01042080; }
1158 static constexpr
unsigned int roamingZones() {
return 0x01043000; }
1160 static constexpr
unsigned int fmAPRSMessage() {
return 0x02501200; }
1161 static constexpr
unsigned int fmAPRSFrequencyNames() {
return 0x02502000; }
1162 static constexpr
unsigned int settingsExtension() {
return 0x02501400; }
1169 static constexpr
unsigned int fmAPRSMessage() {
return 0x00000040; }
Direction
Encodes the auto-repeater offset sign.
Definition: anytone_extension.hh:1420
Represents the base class for channel encodings in all AnyTone codeplugs.
Definition: anytone_codeplug.hh:92
static constexpr unsigned int size()
Returns the size of the element.
Definition: anytone_codeplug.hh:153
Represents the base class for the extended settings element in many AnyTone codeplugs.
Definition: anytone_codeplug.hh:1187
virtual bool index(Config *config, Context &ctx, const ErrorStack &err=ErrorStack()) const
Indexes all elements of the codeplug.
Definition: anytone_codeplug.cc:4510
Color
Possible display colors.
Definition: anytone_extension.hh:975
Language
Possible UI languages.
Definition: anytone_extension.hh:981
KeyFunction
All possible key functions.
Definition: anytone_extension.hh:586
RoamStart
Possible roaming start conditions.
Definition: anytone_extension.hh:1862
OutOfRangeAlert
Possible repeater out-of-range alerts.
Definition: anytone_extension.hh:1868
STEType
All possible STE (squelch tail eliminate) types.
Definition: anytone_extension.hh:2167
TimeSlot
Possible simplex repeater time-slots.
Definition: anytone_extension.hh:2012
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
Represents the general config of the radio within the D868UV binary codeplug.
Definition: d868uv_codeplug.hh:300
Represents the device specific binary codeplug for Anytone AT-D868UV radios.
Definition: d868uv_codeplug.hh:189
Represents the bitmap, indicating which roaming channel is valid.
Definition: d878uv_codeplug.hh:1650
Implements the binary representation of a roaming channel within the codeplug.
Definition: d878uv_codeplug.hh:1568
Represents the bitmap, indicating which roaming zone is valid.
Definition: d878uv_codeplug.hh:1724
Represents a roaming zone within the binary codeplug.
Definition: d878uv_codeplug.hh:1668
Implements the channel element for the BTECH DMR-6X2UV.
Definition: dmr6x2uv_codeplug.hh:842
ChannelElement(uint8_t *ptr, unsigned size)
Hidden constructor.
Definition: dmr6x2uv_codeplug.cc:1464
bool ranging() const
Returns true, if ranging is enabled.
Definition: dmr6x2uv_codeplug.cc:1524
void setScanListIndex(unsigned idx)
Sets the first scan list index (0-based).
Definition: dmr6x2uv_codeplug.cc:1485
bool hasScanListIndex() const
Returns true, if the first scan list index is set.
Definition: dmr6x2uv_codeplug.cc:1477
unsigned scanListIndex() const
Returns the first scan list index (0-based).
Definition: dmr6x2uv_codeplug.cc:1481
virtual void enableRoaming(bool enable)
Enables/disables roaming.
Definition: dmr6x2uv_codeplug.cc:1519
virtual bool roamingEnabled() const
Returns true if roaming is enabled for this channel.
Definition: dmr6x2uv_codeplug.cc:1515
void enableRanging(bool enable)
Enables/disables ranging.
Definition: dmr6x2uv_codeplug.cc:1528
void clearScanListIndex()
Clears the first scan list index.
Definition: dmr6x2uv_codeplug.cc:1489
Implements some settings extension for the BTECH DMR-6X2UV.
Definition: dmr6x2uv_codeplug.hh:675
virtual Interval autoRoamDelay() const
Returns the effective roaming waiting time in seconds (0-30s).
Definition: dmr6x2uv_codeplug.cc:1279
void setZoneANameColor(AnytoneDisplaySettingsExtension::Color color)
Sets the zone name color for the VFO A.
Definition: dmr6x2uv_codeplug.cc:1326
virtual void enableCustomChannelBackground(bool enable)
Enables/disables the custom channel background.
Definition: dmr6x2uv_codeplug.cc:1195
virtual void setEncryptionType(AnytoneDMRSettingsExtension::EncryptionType type)
Sets the encryption type.
Definition: dmr6x2uv_codeplug.cc:1314
virtual Interval autoRoamPeriod() const
Returns the auto-roaming interval in minutes (1-256).
Definition: dmr6x2uv_codeplug.cc:1269
ExtendedSettingsElement(uint8_t *ptr, unsigned size)
Hidden Constructor.
Definition: dmr6x2uv_codeplug.cc:1137
virtual void setRepeaterOutOfRangeAlert(AnytoneRoamingSettingsExtension::OutOfRangeAlert alert)
Sets the repeater out-of-range alert type.
Definition: dmr6x2uv_codeplug.cc:1228
AnytoneDisplaySettingsExtension::Color zoneANameColor() const
Returns the color of the zone name for VFO A.
Definition: dmr6x2uv_codeplug.cc:1322
virtual void setMuteTimer(Interval minutes)
Sets the mute timer in minutes.
Definition: dmr6x2uv_codeplug.cc:1302
virtual void setFontColor(AnytoneDisplaySettingsExtension::Color color)
Sets the font color.
Definition: dmr6x2uv_codeplug.cc:1186
virtual void setRepeaterRangeCheckInterval(Interval intv)
Sets the repeater check interval in seconds (5-50s).
Definition: dmr6x2uv_codeplug.cc:1245
static constexpr unsigned int size()
Returns the size of the element.
Definition: dmr6x2uv_codeplug.hh:685
virtual unsigned int defaultRoamingZoneIndex() const
Returns the roaming zone index.
Definition: dmr6x2uv_codeplug.cc:1200
AnytoneDMRSettingsExtension::TalkerAliasEncoding talkerAliasEncoding() const
Returns the talker alias encoding.
Definition: dmr6x2uv_codeplug.cc:1173
void clear()
Resets the general settings.
Definition: dmr6x2uv_codeplug.cc:1150
virtual void setAutoRoamDelay(Interval sec)
Sets the effective roaming waiting time in seconds (0-30s).
Definition: dmr6x2uv_codeplug.cc:1283
void setChannelBNameColor(AnytoneDisplaySettingsExtension::Color color)
Sets the channel name color for the VFO B.
Definition: dmr6x2uv_codeplug.cc:1351
virtual void setAutoRoamPeriod(Interval minutes)
Sets the auto-roaming interval in minutes (1-256).
Definition: dmr6x2uv_codeplug.cc:1273
virtual bool repeaterRangeCheckEnabled() const
Returns true if repeater check is enabled.
Definition: dmr6x2uv_codeplug.cc:1216
virtual void setRoamingStartCondition(AnytoneRoamingSettingsExtension::RoamStart cond)
Sets the condition to start roaming.
Definition: dmr6x2uv_codeplug.cc:1264
virtual void setRoamingReturnCondition(AnytoneRoamingSettingsExtension::RoamStart cond)
Sets the roaming return condition.
Definition: dmr6x2uv_codeplug.cc:1293
void setZoneBNameColor(AnytoneDisplaySettingsExtension::Color color)
Sets the zone name color for the VFO B.
Definition: dmr6x2uv_codeplug.cc:1334
virtual AnytoneRoamingSettingsExtension::OutOfRangeAlert repeaterOutOfRangeAlert() const
Returns the repeater out-of-range alert type.
Definition: dmr6x2uv_codeplug.cc:1224
virtual AnytoneRoamingSettingsExtension::RoamStart roamingReturnCondition() const
Returns the roaming return condition.
Definition: dmr6x2uv_codeplug.cc:1289
void setTalkerAliasSource(AnytoneDMRSettingsExtension::TalkerAliasSource source)
Sets the talker alias source.
Definition: dmr6x2uv_codeplug.cc:1168
AnytoneDisplaySettingsExtension::Color zoneBNameColor() const
Returns the color of the zone name for VFO B.
Definition: dmr6x2uv_codeplug.cc:1330
virtual unsigned int repeaterRangeCheckCount() const
Returns the number of times, a repeater reconnection is tried (3-5).
Definition: dmr6x2uv_codeplug.cc:1250
virtual void enableRepeaterRangeCheck(bool enable)
Enables/disables repeater check.
Definition: dmr6x2uv_codeplug.cc:1220
virtual Interval repeaterRangeCheckInterval() const
Returns the repeater check interval in seconds (5-50s).
Definition: dmr6x2uv_codeplug.cc:1241
virtual void enableAutoRoaming(bool enable)
Enables/disables auto roaming.
Definition: dmr6x2uv_codeplug.cc:1212
bool linkConfig(Context &ctx, const ErrorStack &err=ErrorStack())
Link config from settings extension.
Definition: dmr6x2uv_codeplug.cc:1437
AnytoneDisplaySettingsExtension::Color channelBNameColor() const
Returns the color of the channel name for VFO B.
Definition: dmr6x2uv_codeplug.cc:1347
bool updateConfig(Context &ctx, const ErrorStack &err=ErrorStack())
Update config from settings.
Definition: dmr6x2uv_codeplug.cc:1398
virtual unsigned int repeaterCheckNumNotifications() const
Returns the number of times, the repeater out-of-range reminder is shown (1-10).
Definition: dmr6x2uv_codeplug.cc:1232
virtual bool autoRoamingEnabled() const
Returns true if auto roaming is enabled.
Definition: dmr6x2uv_codeplug.cc:1208
virtual AnytoneDMRSettingsExtension::EncryptionType encryptionType() const
Returns the encryption type.
Definition: dmr6x2uv_codeplug.cc:1308
virtual void setChannelANameColor(AnytoneDisplaySettingsExtension::Color color)
Sets the name color for channel A.
Definition: dmr6x2uv_codeplug.cc:1343
void setTalkerAliasEncoding(AnytoneDMRSettingsExtension::TalkerAliasEncoding encoding)
Sets the talker alias encoding.
Definition: dmr6x2uv_codeplug.cc:1177
virtual AnytoneDisplaySettingsExtension::Color fontColor() const
Returns the font color.
Definition: dmr6x2uv_codeplug.cc:1182
virtual AnytoneRoamingSettingsExtension::RoamStart roamingStartCondition() const
Returns the condition to start roaming.
Definition: dmr6x2uv_codeplug.cc:1260
virtual void setDefaultRoamingZoneIndex(unsigned int index)
Sets the roaming zone index.
Definition: dmr6x2uv_codeplug.cc:1204
AnytoneDMRSettingsExtension::TalkerAliasSource talkerAliasSource() const
Returns the talker alias source.
Definition: dmr6x2uv_codeplug.cc:1164
virtual Interval muteTimer() const
Returns the mute timer in minutes.
Definition: dmr6x2uv_codeplug.cc:1298
virtual void setRepeaterCheckNumNotifications(unsigned int n)
Sets the number of times, the repeater out-of-range reminder is shown (1-10).
Definition: dmr6x2uv_codeplug.cc:1236
bool sendTalkerAlias() const
Returns true if the talker alias is sent.
Definition: dmr6x2uv_codeplug.cc:1155
bool fromConfig(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the settings from the config.
Definition: dmr6x2uv_codeplug.cc:1356
virtual void setRepeaterRangeCheckCount(unsigned int n)
Sets the number of times, a repeater reconnection is tried (3-5).
Definition: dmr6x2uv_codeplug.cc:1254
virtual AnytoneDisplaySettingsExtension::Color channelANameColor() const
Returns the name color for channel A.
Definition: dmr6x2uv_codeplug.cc:1339
void enableSendTalkerAlias(bool enable)
Enables/disables sending the talker alias.
Definition: dmr6x2uv_codeplug.cc:1159
virtual bool customChannelBackgroundEnabled() const
Returns true if the custom channel background is enabled.
Definition: dmr6x2uv_codeplug.cc:1191
General settings element for the DMR-6X2UV.
Definition: dmr6x2uv_codeplug.hh:249
void enableShowCurrentContact(bool enable)
Enables/disables display of current contact.
Definition: dmr6x2uv_codeplug.cc:731
virtual AnytoneDMRSettingsExtension::SlotMatch monitorSlotMatch() const
Returns the monitor slot match.
Definition: dmr6x2uv_codeplug.cc:602
bool keepLastCaller() const
Returns true if the last caller is kept when changing channel.
Definition: dmr6x2uv_codeplug.cc:934
void setFuncKeyCLong(AnytoneKeySettingsExtension::KeyFunction func)
Sets the key function for a long press on the function key 3.
Definition: dmr6x2uv_codeplug.cc:360
bool gpsUnitsImperial() const
Returns true if the GPS units are imperial.
Definition: dmr6x2uv_codeplug.cc:814
Interval rxBacklightDuration() const
Returns the backlight duration in seconds.
Definition: dmr6x2uv_codeplug.cc:943
unsigned keyToneLevel() const
Returns the key-tone level (0=adjustable).
Definition: dmr6x2uv_codeplug.cc:740
unsigned defaultChannelAIndex() const
Returns the default channel index for VFO A.
Definition: dmr6x2uv_codeplug.cc:896
AnytoneKeySettingsExtension::KeyFunction funcKey1Short() const
Returns the key function for a short press on the function key 1.
Definition: dmr6x2uv_codeplug.cc:320
void enableSidekeysLock(bool enable)
Enables/disables the sidekeys lock.
Definition: dmr6x2uv_codeplug.cc:773
virtual void enableFMSendIDAndContact(bool enable)
Enables/disables sending contact with FM ID.
Definition: dmr6x2uv_codeplug.cc:870
Interval gpsUpdatePeriod() const
Returns the GPS update period in seconds.
Definition: dmr6x2uv_codeplug.cc:709
virtual unsigned dtmfToneDuration() const
Returns the DTMF tone duration in ms.
Definition: dmr6x2uv_codeplug.cc:479
void enableKnobLock(bool enable)
Enables/disables the knob lock.
Definition: dmr6x2uv_codeplug.cc:757
bool idleChannelTone() const
Returns true if the idle channel tone is enabled.
Definition: dmr6x2uv_codeplug.cc:232
virtual AnytoneDisplaySettingsExtension::Language language() const
Returns the UI language.
Definition: dmr6x2uv_codeplug.cc:250
void enableDefaultChannel(bool enable)
Enables/disables default boot channel.
Definition: dmr6x2uv_codeplug.cc:879
virtual void setVFOFrequencyStep(Frequency kHz)
Sets the VFO frequency step in kHz.
Definition: dmr6x2uv_codeplug.cc:273
virtual Interval groupCallHangTime() const
Returns the group call hang time in seconds.
Definition: dmr6x2uv_codeplug.cc:429
virtual unsigned transmitTimeout() const
Returns the transmit timeout in seconds.
Definition: dmr6x2uv_codeplug.cc:241
virtual void setSTEFrequency(double freq)
Sets the STE (squelch tail eliminate) frequency setting.
Definition: dmr6x2uv_codeplug.cc:418
void setFuncKey2Long(AnytoneKeySettingsExtension::KeyFunction func)
Sets the key function for a long press on the function key 2.
Definition: dmr6x2uv_codeplug.cc:378
virtual void setTransmitTimeout(unsigned tot)
Sets the transmit timeout in seconds.
Definition: dmr6x2uv_codeplug.cc:245
Frequency autoRepeaterMaxFrequencyVHF() const
Returns the maximum frequency in Hz for the auto-repeater range in VHF band.
Definition: dmr6x2uv_codeplug.cc:831
void setAutoRepeaterMaxFrequencyVHF(Frequency Hz)
Sets the maximum frequency in Hz for the auto-repeater range in VHF band.
Definition: dmr6x2uv_codeplug.cc:835
virtual void setGroupCallHangTime(Interval sec)
Sets the group call hang time in seconds.
Definition: dmr6x2uv_codeplug.cc:433
bool sidekeysLock() const
Returns true if the sidekeys are locked.
Definition: dmr6x2uv_codeplug.cc:769
virtual bool proMode() const
Returns true if the "pro mode" is enabled.
Definition: dmr6x2uv_codeplug.cc:548
virtual void setWakeHeadPeriod(Interval ms)
Sets the wake head-period in ms.
Definition: dmr6x2uv_codeplug.cc:457
void setRXBacklightDuration(Interval sec)
Sets the backlight duration in seconds.
Definition: dmr6x2uv_codeplug.cc:947
unsigned defaultZoneIndexB() const
Returns the default zone index (0-based) for VFO B.
Definition: dmr6x2uv_codeplug.cc:909
void setFuncKeyAShort(AnytoneKeySettingsExtension::KeyFunction func)
Sets the key function for a short press on the function key 1/A.
Definition: dmr6x2uv_codeplug.cc:297
virtual void enableRemoteStunKill(bool enable)
Enables/disables remote stun/kill.
Definition: dmr6x2uv_codeplug.cc:579
virtual bool selectTXContactEnabled() const
Returns true, if the selection of a TX contact is enabled.
Definition: dmr6x2uv_codeplug.cc:593
virtual void enableFilterOwnID(bool enable)
Enables/disables filter of own ID in call lists.
Definition: dmr6x2uv_codeplug.cc:561
virtual void setStandbyBackgroundColor(AnytoneDisplaySettingsExtension::Color color)
Sets the stand-by background color.
Definition: dmr6x2uv_codeplug.cc:957
virtual bool filterOwnID() const
Returns true if the own ID is filtered in call lists.
Definition: dmr6x2uv_codeplug.cc:557
AnytoneKeySettingsExtension::KeyFunction funcKey2Long() const
Returns the key function for a long press on the function key 2.
Definition: dmr6x2uv_codeplug.cc:374
virtual void enableSMSConfirm(bool enable)
Enables/disables SMS confirmation.
Definition: dmr6x2uv_codeplug.cc:695
void enableVFOModeA(bool enable)
Enables/disables VFO mode for VFO A.
Definition: dmr6x2uv_codeplug.cc:387
void setAutoRepeaterDirectionB(AnytoneAutoRepeaterSettingsExtension::Direction dir)
Sets the auto-repeater direction for VFO B.
Definition: dmr6x2uv_codeplug.cc:861
void setFuncKeyALong(AnytoneKeySettingsExtension::KeyFunction func)
Sets the key function for a long press on the function key 1.
Definition: dmr6x2uv_codeplug.cc:342
virtual void enableMonitorColorCodeMatch(bool enable)
Enables/disables monitor color code match.
Definition: dmr6x2uv_codeplug.cc:615
virtual AnytoneSettingsExtension::STEType steType() const
Returns the STE (squelch tail eliminate) type.
Definition: dmr6x2uv_codeplug.cc:401
virtual void setManDownDelay(Interval sec)
Sets the "man down" delay in seconds.
Definition: dmr6x2uv_codeplug.cc:642
virtual bool remoteMonitor() const
Returns true remote monitor is enabled.
Definition: dmr6x2uv_codeplug.cc:584
virtual void setFMCallHold(unsigned sec)
Sets the analog call hold in seconds.
Definition: dmr6x2uv_codeplug.cc:651
void enableKeepLastCaller(bool enable)
Enables/disables keeping the last caller when changing the channel.
Definition: dmr6x2uv_codeplug.cc:938
bool keyToneEnabled() const
Returns true, if the key tone is enabled.
Definition: dmr6x2uv_codeplug.cc:566
void setDefaultChannelAToVFO()
Sets the default channel for VFO A to be VFO.
Definition: dmr6x2uv_codeplug.cc:904
void setFuncKeyBShort(AnytoneKeySettingsExtension::KeyFunction func)
Sets the key function for a short press on the function key 2/B.
Definition: dmr6x2uv_codeplug.cc:306
bool knobLock() const
Returns true if the knob is locked.
Definition: dmr6x2uv_codeplug.cc:753
bool defaultChannelBIsVFO() const
Returns true if the default channel for VFO B is VFO.
Definition: dmr6x2uv_codeplug.cc:917
bool updateConfig(Context &ctx)
Updates the abstract config from general settings.
Definition: dmr6x2uv_codeplug.cc:1060
bool keyToneLevelAdjustable() const
Returns true if the key-tone level is adjustable.
Definition: dmr6x2uv_codeplug.cc:736
virtual bool maintainCallChannel() const
Returns true if the call channel is maintained.
Definition: dmr6x2uv_codeplug.cc:665
virtual Interval preWaveDelay() const
Returns the pre-wave time in ms.
Definition: dmr6x2uv_codeplug.cc:445
virtual void enableSelectTXContact(bool enable)
Enables/disables selection of the TX contact.
Definition: dmr6x2uv_codeplug.cc:597
virtual unsigned fmCallHold() const
Returns the analog call hold in seconds.
Definition: dmr6x2uv_codeplug.cc:647
static constexpr unsigned int size()
Returns the size of the element.
Definition: dmr6x2uv_codeplug.hh:312
virtual double steFrequency() const
Returns the STE (squelch tail eliminate) frequency setting in Hz.
Definition: dmr6x2uv_codeplug.cc:409
void setFuncKey2Short(AnytoneKeySettingsExtension::KeyFunction func)
Sets the key function for a short press on the function key 2.
Definition: dmr6x2uv_codeplug.cc:333
virtual void enableMonitorIDMatch(bool enable)
Enables/disables monitor ID match.
Definition: dmr6x2uv_codeplug.cc:624
virtual void enableManDown(bool enable)
Enables/disables "man down".
Definition: dmr6x2uv_codeplug.cc:509
TBSTFrequency
TBST (open repeater) frequencies.
Definition: dmr6x2uv_codeplug.hh:293
virtual void setPrivateCallHangTime(Interval sec)
Sets the private call hang time in seconds.
Definition: dmr6x2uv_codeplug.cc:441
unsigned defaultChannelBIndex() const
Returns the default channel index for VFO B.
Definition: dmr6x2uv_codeplug.cc:921
virtual void setDTMFToneDuration(unsigned ms)
Sets the DTMF tone duration in ms.
Definition: dmr6x2uv_codeplug.cc:490
bool showCurrentContact() const
Returns true if the current contact is shown.
Definition: dmr6x2uv_codeplug.cc:727
virtual void enableMaintainCallChannel(bool enable)
Enables/disables maintaining the call channel.
Definition: dmr6x2uv_codeplug.cc:669
Frequency autoRepeaterMinFrequencyVHF() const
Returns the minimum frequency in Hz for the auto-repeater range in VHF band.
Definition: dmr6x2uv_codeplug.cc:823
AnytoneKeySettingsExtension::KeyFunction funcKey1Long() const
Returns the key function for a long press on the function key 1.
Definition: dmr6x2uv_codeplug.cc:365
virtual bool wfmVFOEnabled() const
Returns true if the WFM RX is in VFO mode.
Definition: dmr6x2uv_codeplug.cc:470
virtual unsigned priorityZoneBIndex() const
Returns the priority Zone B index.
Definition: dmr6x2uv_codeplug.cc:682
virtual void setSimplexRepeaterTimeslot(AnytoneSimplexRepeaterSettingsExtension::TimeSlot slot)
Sets the time-slot in simplex repeater mode.
Definition: dmr6x2uv_codeplug.cc:791
virtual bool monitorColorCodeMatch() const
Returns true if the monitor matches color code.
Definition: dmr6x2uv_codeplug.cc:611
void enableGPSUnitsImperial(bool enable)
Enables/disables imperial GPS units.
Definition: dmr6x2uv_codeplug.cc:818
virtual bool fmSendIDAndContact() const
If enabled, the FM ID is sent together with selected contact.
Definition: dmr6x2uv_codeplug.cc:866
bool vfoModeA() const
Returns true if the VFO A is in VFO mode.
Definition: dmr6x2uv_codeplug.cc:383
virtual void setMonitorSlotMatch(AnytoneDMRSettingsExtension::SlotMatch match)
Sets the monitor slot match.
Definition: dmr6x2uv_codeplug.cc:606
virtual Frequency tbstFrequency() const
Returns the TBST frequency.
Definition: dmr6x2uv_codeplug.cc:523
virtual bool gpsMessageEnabled() const
Returns true if the GPS range reporting is enabled.
Definition: dmr6x2uv_codeplug.cc:656
DTMFDuration
DTMF signalling durations.
Definition: dmr6x2uv_codeplug.hh:288
virtual void enableRemoteMonitor(bool enable)
Enables/disables remote monitor.
Definition: dmr6x2uv_codeplug.cc:588
AnytoneKeySettingsExtension::KeyFunction funcKeyAShort() const
Returns the key function for a short press on the function key 1/A.
Definition: dmr6x2uv_codeplug.cc:293
void setAutoRepeaterMaxFrequencyUHF(Frequency Hz)
Sets the maximum frequency in Hz for the auto-repeater range in UHF band.
Definition: dmr6x2uv_codeplug.cc:852
void enableVFOModeB(bool enable)
Enables/disables VFO mode for VFO B.
Definition: dmr6x2uv_codeplug.cc:396
virtual void setPreWaveDelay(Interval ms)
Sets the pre-wave time in ms.
Definition: dmr6x2uv_codeplug.cc:449
virtual Interval wakeHeadPeriod() const
Returns the wake head-period in ms.
Definition: dmr6x2uv_codeplug.cc:453
virtual unsigned int manualDialedPrivateCallHangTime() const
Returns the private-call hang time, if private call was dialed manually.
Definition: dmr6x2uv_codeplug.cc:970
virtual bool remoteStunKill() const
Returns true remote stun/kill is enabled.
Definition: dmr6x2uv_codeplug.cc:575
virtual bool monitorTimeSlotHold() const
Returns true if the monitor holds the time slot.
Definition: dmr6x2uv_codeplug.cc:629
virtual void setTBSTFrequency(Frequency freq)
Sets the TBST frequency.
Definition: dmr6x2uv_codeplug.cc:533
AnytoneKeySettingsExtension::KeyFunction funcKeyBShort() const
Returns the key function for a short press on the function key 2/B.
Definition: dmr6x2uv_codeplug.cc:302
virtual bool smsConfirmEnabled() const
Returns true, if a SMS confirmation is sent.
Definition: dmr6x2uv_codeplug.cc:691
bool keypadLock() const
Returns true if the keypad is locked.
Definition: dmr6x2uv_codeplug.cc:761
AnytoneKeySettingsExtension::KeyFunction funcKey2Short() const
Returns the key function for a short press on the function key 2.
Definition: dmr6x2uv_codeplug.cc:329
bool vfoModeB() const
Returns true if the VFO B is in VFO mode.
Definition: dmr6x2uv_codeplug.cc:392
Frequency autoRepeaterMaxFrequencyUHF() const
Returns the maximum frequency in Hz for the auto-repeater range in UHF band.
Definition: dmr6x2uv_codeplug.cc:848
virtual void setManualDialedPrivateCallHangTime(unsigned int dur)
Sets the private-call hang time, if the private call was dialed maually.
Definition: dmr6x2uv_codeplug.cc:974
Frequency autoRepeaterMinFrequencyUHF() const
Returns the minimum frequency in Hz for the auto-repeater range in UHF band.
Definition: dmr6x2uv_codeplug.cc:840
virtual Interval privateCallHangTime() const
Returns the private call hang time in seconds.
Definition: dmr6x2uv_codeplug.cc:437
virtual void enableMonitorTimeSlotHold(bool enable)
Enables/disables monitor time slot hold.
Definition: dmr6x2uv_codeplug.cc:633
bool showLastHeard() const
Returns true if the last heard is shown while pressing PTT.
Definition: dmr6x2uv_codeplug.cc:796
virtual Frequency vfoFrequencyStep() const
Returns the VFO frequency step in kHz.
Definition: dmr6x2uv_codeplug.cc:259
void setDefaultChannelAIndex(unsigned idx)
Sets the default channel index for VFO A.
Definition: dmr6x2uv_codeplug.cc:900
virtual void enableGPSMessage(bool enable)
Enables/disables GPS range reporting.
Definition: dmr6x2uv_codeplug.cc:660
void enableKeyLockForced(bool enable)
Enables/disables the "professional" key lock.
Definition: dmr6x2uv_codeplug.cc:781
void setFuncKey1Long(AnytoneKeySettingsExtension::KeyFunction func)
Sets the key function for a long press on the function key 1.
Definition: dmr6x2uv_codeplug.cc:369
virtual AnytoneDMRSettingsExtension::SMSFormat smsFormat() const
Returns the SMS format.
Definition: dmr6x2uv_codeplug.cc:805
void enableKeyTone(bool enable)
Enables/disables the key-tone.
Definition: dmr6x2uv_codeplug.cc:570
AnytoneKeySettingsExtension::KeyFunction funcKeyCShort() const
Returns the key function for a short press on the function key 3/C.
Definition: dmr6x2uv_codeplug.cc:311
virtual void setPriorityZoneAIndex(unsigned idx)
Sets the priority zone A index.
Definition: dmr6x2uv_codeplug.cc:678
FreqStep
Possible VFO frequency steps.
Definition: dmr6x2uv_codeplug.hh:276
@ FREQ_STEP_2_5kHz
2.5kHz
Definition: dmr6x2uv_codeplug.hh:277
@ FREQ_STEP_50kHz
50kHz
Definition: dmr6x2uv_codeplug.hh:284
@ FREQ_STEP_12_5kHz
12.5kHz
Definition: dmr6x2uv_codeplug.hh:281
@ FREQ_STEP_6_25kHz
6.25kHz
Definition: dmr6x2uv_codeplug.hh:279
@ FREQ_STEP_25kHz
25kHz
Definition: dmr6x2uv_codeplug.hh:283
@ FREQ_STEP_5kHz
5kHz
Definition: dmr6x2uv_codeplug.hh:278
@ FREQ_STEP_20kHz
20kHz
Definition: dmr6x2uv_codeplug.hh:282
@ FREQ_STEP_10kHz
10kHz
Definition: dmr6x2uv_codeplug.hh:280
virtual void setManualDialedGroupCallHangTime(unsigned int dur)
Sets the group-call hang time, if the group call was dialed maually.
Definition: dmr6x2uv_codeplug.cc:966
void enableKeypadLock(bool enable)
Enables/disables the keypad lock.
Definition: dmr6x2uv_codeplug.cc:765
AnytoneKeySettingsExtension::KeyFunction funcKeyCLong() const
Returns the key function for a long press on the function key 3.
Definition: dmr6x2uv_codeplug.cc:356
virtual void enableMonitorSimplexRepeater(bool enable)
Enables/disables the speaker during RX in simplex repeater mode.
Definition: dmr6x2uv_codeplug.cc:722
void setDefaultZoneIndexB(unsigned idx)
Sets the default zone (0-based) for VFO B.
Definition: dmr6x2uv_codeplug.cc:913
virtual void setPriorityZoneBIndex(unsigned idx)
Sets the priority zone B index.
Definition: dmr6x2uv_codeplug.cc:686
void setDefaultChannelBToVFO()
Sets the default channel for VFO B to be VFO.
Definition: dmr6x2uv_codeplug.cc:929
AnytoneKeySettingsExtension::KeyFunction funcKeyALong() const
Returns the key function for a long press on the function key 1.
Definition: dmr6x2uv_codeplug.cc:338
virtual void enableSimplexRepeater(bool enable)
Enables disables the simplex repeater feature.
Definition: dmr6x2uv_codeplug.cc:704
AnytoneAutoRepeaterSettingsExtension::Direction autoRepeaterDirectionB() const
Returns the auto-repeater direction for VFO B.
Definition: dmr6x2uv_codeplug.cc:857
virtual bool monitorIDMatch() const
Returns true if the monitor matches ID.
Definition: dmr6x2uv_codeplug.cc:620
void setDefaultZoneIndexA(unsigned idx)
Sets the default zone (0-based) for VFO A.
Definition: dmr6x2uv_codeplug.cc:888
void setFuncKeyBLong(AnytoneKeySettingsExtension::KeyFunction func)
Sets the key function for a long press on the function key 2.
Definition: dmr6x2uv_codeplug.cc:351
virtual void enableWFMMonitor(bool enable)
Enables/disables WFM monitor.
Definition: dmr6x2uv_codeplug.cc:518
void setFuncKey1Short(AnytoneKeySettingsExtension::KeyFunction func)
Sets the key function for a short press on the function key 1.
Definition: dmr6x2uv_codeplug.cc:324
GeneralSettingsElement(uint8_t *ptr, unsigned size)
Hidden Constructor.
Definition: dmr6x2uv_codeplug.cc:219
virtual bool wfmMonitor() const
Returns true if WFM monitor is enabled.
Definition: dmr6x2uv_codeplug.cc:514
virtual unsigned priorityZoneAIndex() const
Returns the priority Zone A index.
Definition: dmr6x2uv_codeplug.cc:674
virtual bool simplexRepeaterEnabled() const
Returns true if the simplex repeater feature is enabled.
Definition: dmr6x2uv_codeplug.cc:700
AnytoneKeySettingsExtension::KeyFunction funcKeyBLong() const
Returns the key function for a long press on the function key 2.
Definition: dmr6x2uv_codeplug.cc:347
void enableShowLastHeard(bool enable)
Enables/disables showing last heard.
Definition: dmr6x2uv_codeplug.cc:800
virtual void enableProMode(bool enable)
Enables/disables the "pro mode".
Definition: dmr6x2uv_codeplug.cc:552
void setKeyToneLevel(unsigned level)
Sets the key-tone level.
Definition: dmr6x2uv_codeplug.cc:744
void setDefaultChannelBIndex(unsigned idx)
Sets the default channel index for VFO B.
Definition: dmr6x2uv_codeplug.cc:925
virtual void setLanguage(AnytoneDisplaySettingsExtension::Language lang)
Sets the UI language.
Definition: dmr6x2uv_codeplug.cc:254
virtual bool monitorSimplexRepeaterEnabled() const
Returns true if the speaker is switched on during RX in simplex repeater mode, see simplexRepeaterEna...
Definition: dmr6x2uv_codeplug.cc:718
virtual bool manDown() const
Returns true if "man down" is enabled.
Definition: dmr6x2uv_codeplug.cc:505
void setKeyToneLevelAdjustable()
Sets the key-tone level adjustable.
Definition: dmr6x2uv_codeplug.cc:748
virtual unsigned int manualDialedGroupCallHangTime() const
Returns the group-call hang time, if group call was dialed manually.
Definition: dmr6x2uv_codeplug.cc:962
bool defaultChannel() const
Returns true if the default boot channel is enabled.
Definition: dmr6x2uv_codeplug.cc:875
void setAutoRepeaterMinFrequencyUHF(Frequency Hz)
Sets the minimum frequency in Hz for the auto-repeater range in UHF band.
Definition: dmr6x2uv_codeplug.cc:844
bool keyLockForced() const
Returns true if the "professional" key is locked.
Definition: dmr6x2uv_codeplug.cc:777
virtual AnytoneDisplaySettingsExtension::Color standbyBackgroundColor() const
Returns the stand-by background color.
Definition: dmr6x2uv_codeplug.cc:953
void setGPSUpdatePeriod(Interval sec)
Sets the GPS update period in seconds.
Definition: dmr6x2uv_codeplug.cc:713
virtual Interval manDownDelay() const
Returns the "man down" delay in seconds.
Definition: dmr6x2uv_codeplug.cc:638
bool defaultChannelAIsVFO() const
Returns true if the default channel for VFO A is VFO.
Definition: dmr6x2uv_codeplug.cc:892
virtual AnytoneSimplexRepeaterSettingsExtension::TimeSlot simplexRepeaterTimeslot() const
Returns the time-slot in simplex repeater mode.
Definition: dmr6x2uv_codeplug.cc:786
virtual void setWFMChannelIndex(unsigned idx)
Sets the wide-FM (broadcast) channel index.
Definition: dmr6x2uv_codeplug.cc:466
bool fromConfig(const Flags &flags, Context &ctx)
Encodes the general settings.
Definition: dmr6x2uv_codeplug.cc:980
STEFrequency
All possible STE (squelch tail eliminate) frequencies.
Definition: dmr6x2uv_codeplug.hh:298
virtual unsigned wfmChannelIndex() const
Returns the wide-FM (broadcast) channel index.
Definition: dmr6x2uv_codeplug.cc:462
virtual void setSTEType(AnytoneSettingsExtension::STEType type)
Sets the STE (squelch tail eliminate) type.
Definition: dmr6x2uv_codeplug.cc:405
virtual void enableWFMVFO(bool enable)
Enables/disables VFO mode for WFM RX.
Definition: dmr6x2uv_codeplug.cc:474
unsigned defaultZoneIndexA() const
Returns the default zone index (0-based) for VFO A.
Definition: dmr6x2uv_codeplug.cc:884
void setAutoRepeaterMinFrequencyVHF(Frequency Hz)
Sets the minimum frequency in Hz for the auto-repeater range in VHF band.
Definition: dmr6x2uv_codeplug.cc:827
virtual void setSMSFormat(AnytoneDMRSettingsExtension::SMSFormat fmt)
Sets the SMS format.
Definition: dmr6x2uv_codeplug.cc:809
void enableIdleChannelTone(bool enable)
Enables/disables the idle channel tone.
Definition: dmr6x2uv_codeplug.cc:236
void setFuncKeyCShort(AnytoneKeySettingsExtension::KeyFunction func)
Sets the key function for a short press on the function key 3/C.
Definition: dmr6x2uv_codeplug.cc:315
Represents the device specific binary codeplug for BTECH DMR-6X2UV radios.
Definition: dmr6x2uv_codeplug.hh:191
void allocateForDecoding()
Allocate all code-plug elements that must be downloaded for decoding.
Definition: dmr6x2uv_codeplug.cc:2020
void allocateGPSSystems()
Allocates GPS settings memory section.
Definition: dmr6x2uv_codeplug.cc:2158
virtual bool linkRoaming(Context &ctx, const ErrorStack &err=ErrorStack())
Links roaming channels and zones.
Definition: dmr6x2uv_codeplug.cc:2349
bool createGPSSystems(Context &ctx, const ErrorStack &err=ErrorStack())
Create GPS systems from codeplug.
Definition: dmr6x2uv_codeplug.cc:2194
bool decodeElements(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes the downloaded codeplug.
Definition: dmr6x2uv_codeplug.cc:2045
bool allocateBitmaps()
Allocates the bitmaps.
Definition: dmr6x2uv_codeplug.cc:1973
virtual bool createChannels(Context &ctx, const ErrorStack &err=ErrorStack())
Create channels from codeplug.
Definition: dmr6x2uv_codeplug.cc:2119
virtual bool encodeChannels(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encode channels into codeplug.
Definition: dmr6x2uv_codeplug.cc:2103
DMR6X2UVCodeplug(const QString &label, QObject *parent=nullptr)
Hidden constructor.
Definition: dmr6x2uv_codeplug.cc:1960
bool linkGPSSystems(Context &ctx, const ErrorStack &err=ErrorStack())
Link GPS systems.
Definition: dmr6x2uv_codeplug.cc:2232
virtual void allocateRoaming()
Allocates memory to store all roaming channels and zones.
Definition: dmr6x2uv_codeplug.cc:2254
void setBitmaps(Context &ctx)
Sets all bitmaps for the given config.
Definition: dmr6x2uv_codeplug.cc:1986
bool encodeGPSSystems(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the GPS settings section.
Definition: dmr6x2uv_codeplug.cc:2167
D878UVCodeplug::RoamingZoneBitmapElement RoamingZoneBitmapElement
Reuse roaming zone bitmap from D878UV.
Definition: dmr6x2uv_codeplug.hh:1095
bool decodeGeneralSettings(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes the general settings section.
Definition: dmr6x2uv_codeplug.cc:2083
D878UVCodeplug::RoamingZoneElement RoamingZoneElement
Reuse roaming zone from D878UV.
Definition: dmr6x2uv_codeplug.hh:1097
bool linkGeneralSettings(Context &ctx, const ErrorStack &err=ErrorStack())
Link the general settings.
Definition: dmr6x2uv_codeplug.cc:2097
D878UVCodeplug::RoamingChannelElement RoamingChannelElement
Reuse roaming channel from D878UV.
Definition: dmr6x2uv_codeplug.hh:1093
void allocateForEncoding()
Allocate all code-plug elements that are defined through the common Config.
Definition: dmr6x2uv_codeplug.cc:2012
virtual bool createRoaming(Context &ctx, const ErrorStack &err=ErrorStack())
Creates roaming channels and zones from codeplug.
Definition: dmr6x2uv_codeplug.cc:2319
bool encodeGeneralSettings(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the general settings section.
Definition: dmr6x2uv_codeplug.cc:2068
void allocateGeneralSettings()
Allocates general settings memory section.
Definition: dmr6x2uv_codeplug.cc:2062
D878UVCodeplug::RoamingChannelBitmapElement RoamingChannelBitmapElement
Reuse roaming channel bitmap from D878UV.
Definition: dmr6x2uv_codeplug.hh:1091
bool encodeElements(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the given config (via context) to the binary codeplug.
Definition: dmr6x2uv_codeplug.cc:2031
virtual bool linkChannels(Context &ctx, const ErrorStack &err=ErrorStack())
Link channels.
Definition: dmr6x2uv_codeplug.cc:2138
virtual bool encodeRoaming(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the roaming channels and zones.
Definition: dmr6x2uv_codeplug.cc:2285
void allocateUpdated()
Allocate all code-plug elements that must be written back to the device to maintain a working codeplu...
Definition: dmr6x2uv_codeplug.cc:2003
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
This class represents a GPS signalling system within the codeplug.
Definition: gpssystem.hh:64
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
Simple range class representing some range in some data type.
Definition: ranges.hh:14
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
Implements encoding of CTCSS tones.
Definition: d868uv_codeplug.hh:209
Some internal used offsets within the element.
Definition: d868uv_codeplug.hh:553
Some limits for the codeplug.
Definition: d868uv_codeplug.hh:798
Some internal used offsets within the codeplug.
Definition: d868uv_codeplug.hh:822
Internal used sizes.
Definition: d868uv_codeplug.hh:903
Background colors supported by the DMR-6X2UV.
Definition: dmr6x2uv_codeplug.hh:211
static uint8_t encode(AnytoneDisplaySettingsExtension::Color color)
Maps color -> code.
Definition: dmr6x2uv_codeplug.cc:58
CodedColor
Encoding of the supported colors.
Definition: dmr6x2uv_codeplug.hh:220
static AnytoneDisplaySettingsExtension::Color decode(uint8_t code)
Maps code -> color.
Definition: dmr6x2uv_codeplug.cc:48
Colors supported by the DMR-6X2UV.
Definition: dmr6x2uv_codeplug.hh:196
CodedColor
Encoding of the supported colors.
Definition: dmr6x2uv_codeplug.hh:205
static uint8_t encode(AnytoneDisplaySettingsExtension::Color color)
Maps color -> code.
Definition: dmr6x2uv_codeplug.cc:29
static AnytoneDisplaySettingsExtension::Color decode(uint8_t code)
Maps code -> color.
Definition: dmr6x2uv_codeplug.cc:13
Some limits for entries.
Definition: dmr6x2uv_codeplug.hh:782
static constexpr TimeRange autoRoamDelay()
Auto-roaming delay limits.
Definition: dmr6x2uv_codeplug.hh:796
static constexpr IntRange repRangeReminder()
Out of range reminder count limits.
Definition: dmr6x2uv_codeplug.hh:784
static constexpr TimeRange autoRoamingInterval()
Auto-roaming interval limits.
Definition: dmr6x2uv_codeplug.hh:792
static constexpr IntRange repeaterReconnections()
Repeater reconnection count limits.
Definition: dmr6x2uv_codeplug.hh:790
static constexpr TimeRange muteTimer()
Mute-timer limits.
Definition: dmr6x2uv_codeplug.hh:800
static constexpr TimeRange rangeCheckInterval()
Repeater range check interval limits.
Definition: dmr6x2uv_codeplug.hh:786
Some internal offset within the codeplug element.
Definition: dmr6x2uv_codeplug.hh:807
Font colors supported by the DMR-6X2UV.
Definition: dmr6x2uv_codeplug.hh:226
static AnytoneDisplaySettingsExtension::Color decode(uint8_t code)
Maps code -> color.
Definition: dmr6x2uv_codeplug.cc:71
static uint8_t encode(AnytoneDisplaySettingsExtension::Color color)
Maps color -> code.
Definition: dmr6x2uv_codeplug.cc:87
CodedColor
Encoding of the supported colors.
Definition: dmr6x2uv_codeplug.hh:235
Device specific encoding of the key functions.
Definition: dmr6x2uv_codeplug.hh:252
static uint8_t encode(AnytoneKeySettingsExtension::KeyFunction tone)
Encodes key function.
Definition: dmr6x2uv_codeplug.cc:107
static AnytoneKeySettingsExtension::KeyFunction decode(uint8_t code)
Decodes key function.
Definition: dmr6x2uv_codeplug.cc:162
KeyFunctionCode
Device specific key functions.
Definition: dmr6x2uv_codeplug.hh:261
Some internal used offsets within the element.
Definition: dmr6x2uv_codeplug.hh:599
Some limits for the codeplug.
Definition: dmr6x2uv_codeplug.hh:1142
static constexpr unsigned int fmAPRSMessage()
Maximum length of the FM APRS message.
Definition: dmr6x2uv_codeplug.hh:1144
static constexpr unsigned int roamingChannels()
Maximum number of roaming channels.
Definition: dmr6x2uv_codeplug.hh:1146
static constexpr unsigned int roamingZones()
Maximum number of roaming zones.
Definition: dmr6x2uv_codeplug.hh:1148
Some internal used offsets within the codeplug.
Definition: dmr6x2uv_codeplug.hh:1153
Some internal used sizes.
Definition: dmr6x2uv_codeplug.hh:1167
Helper type to encode frequencies without any rounding error.
Definition: frequency.hh:11