libdrmconf  0.11.3
A library to program DMR radios.
Classes | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | List of all members
DMR6X2UVCodeplug::GeneralSettingsElement Class Reference

General settings element for the DMR-6X2UV. More...

#include <dmr6x2uv_codeplug.hh>

Inheritance diagram for DMR6X2UVCodeplug::GeneralSettingsElement:
Inheritance graph
[legend]
Collaboration diagram for DMR6X2UVCodeplug::GeneralSettingsElement:
Collaboration graph
[legend]

Classes

struct  KeyFunction
 Device specific encoding of the key functions. More...
 
struct  Offset
 Some internal used offsets within the element. More...
 

Public Member Functions

 GeneralSettingsElement (uint8_t *ptr)
 Constructor.
 
bool idleChannelTone () const
 Returns true if the idle channel tone is enabled.
 
void enableIdleChannelTone (bool enable)
 Enables/disables the idle channel tone.
 
virtual unsigned transmitTimeout () const
 Returns the transmit timeout in seconds.
 
virtual void setTransmitTimeout (unsigned tot)
 Sets the transmit timeout in seconds.
 
virtual AnytoneDisplaySettingsExtension::Language language () const
 Returns the UI language.
 
virtual void setLanguage (AnytoneDisplaySettingsExtension::Language lang)
 Sets the UI language.
 
virtual Frequency vfoFrequencyStep () const
 Returns the VFO frequency step in kHz.
 
virtual void setVFOFrequencyStep (Frequency kHz)
 Sets the VFO frequency step in kHz.
 
AnytoneKeySettingsExtension::KeyFunction funcKeyAShort () const
 Returns the key function for a short press on the function key 1/A.
 
void setFuncKeyAShort (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the key function for a short press on the function key 1/A.
 
AnytoneKeySettingsExtension::KeyFunction funcKeyBShort () const
 Returns the key function for a short press on the function key 2/B.
 
void setFuncKeyBShort (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the key function for a short press on the function key 2/B.
 
AnytoneKeySettingsExtension::KeyFunction funcKeyCShort () const
 Returns the key function for a short press on the function key 3/C.
 
void setFuncKeyCShort (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the key function for a short press on the function key 3/C.
 
AnytoneKeySettingsExtension::KeyFunction funcKey1Short () const
 Returns the key function for a short press on the function key 1.
 
void setFuncKey1Short (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the key function for a short press on the function key 1.
 
AnytoneKeySettingsExtension::KeyFunction funcKey2Short () const
 Returns the key function for a short press on the function key 2.
 
void setFuncKey2Short (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the key function for a short press on the function key 2.
 
AnytoneKeySettingsExtension::KeyFunction funcKeyALong () const
 Returns the key function for a long press on the function key 1.
 
void setFuncKeyALong (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the key function for a long press on the function key 1.
 
AnytoneKeySettingsExtension::KeyFunction funcKeyBLong () const
 Returns the key function for a long press on the function key 2.
 
void setFuncKeyBLong (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the key function for a long press on the function key 2.
 
AnytoneKeySettingsExtension::KeyFunction funcKeyCLong () const
 Returns the key function for a long press on the function key 3.
 
void setFuncKeyCLong (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the key function for a long press on the function key 3.
 
AnytoneKeySettingsExtension::KeyFunction funcKey1Long () const
 Returns the key function for a long press on the function key 1.
 
void setFuncKey1Long (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the key function for a long press on the function key 1.
 
AnytoneKeySettingsExtension::KeyFunction funcKey2Long () const
 Returns the key function for a long press on the function key 2.
 
void setFuncKey2Long (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the key function for a long press on the function key 2.
 
bool vfoModeA () const
 Returns true if the VFO A is in VFO mode.
 
void enableVFOModeA (bool enable)
 Enables/disables VFO mode for VFO A.
 
bool vfoModeB () const
 Returns true if the VFO B is in VFO mode.
 
void enableVFOModeB (bool enable)
 Enables/disables VFO mode for VFO B.
 
virtual AnytoneSettingsExtension::STEType steType () const
 Returns the STE (squelch tail eliminate) type.
 
virtual void setSTEType (AnytoneSettingsExtension::STEType type)
 Sets the STE (squelch tail eliminate) type.
 
virtual double steFrequency () const
 Returns the STE (squelch tail eliminate) frequency setting in Hz. More...
 
virtual void setSTEFrequency (double freq)
 Sets the STE (squelch tail eliminate) frequency setting. More...
 
virtual Interval groupCallHangTime () const
 Returns the group call hang time in seconds.
 
virtual void setGroupCallHangTime (Interval sec)
 Sets the group call hang time in seconds.
 
virtual Interval privateCallHangTime () const
 Returns the private call hang time in seconds.
 
virtual void setPrivateCallHangTime (Interval sec)
 Sets the private call hang time in seconds.
 
virtual Interval preWaveDelay () const
 Returns the pre-wave time in ms.
 
virtual void setPreWaveDelay (Interval ms)
 Sets the pre-wave time in ms.
 
virtual Interval wakeHeadPeriod () const
 Returns the wake head-period in ms.
 
virtual void setWakeHeadPeriod (Interval ms)
 Sets the wake head-period in ms.
 
virtual unsigned wfmChannelIndex () const
 Returns the wide-FM (broadcast) channel index.
 
virtual void setWFMChannelIndex (unsigned idx)
 Sets the wide-FM (broadcast) channel index.
 
virtual bool wfmVFOEnabled () const
 Returns true if the WFM RX is in VFO mode.
 
virtual void enableWFMVFO (bool enable)
 Enables/disables VFO mode for WFM RX.
 
virtual unsigned dtmfToneDuration () const
 Returns the DTMF tone duration in ms.
 
virtual void setDTMFToneDuration (unsigned ms)
 Sets the DTMF tone duration in ms.
 
virtual bool manDown () const
 Returns true if "man down" is enabled.
 
virtual void enableManDown (bool enable)
 Enables/disables "man down".
 
virtual bool wfmMonitor () const
 Returns true if WFM monitor is enabled.
 
virtual void enableWFMMonitor (bool enable)
 Enables/disables WFM monitor.
 
virtual Frequency tbstFrequency () const
 Returns the TBST frequency.
 
virtual void setTBSTFrequency (Frequency freq)
 Sets the TBST frequency.
 
virtual bool proMode () const
 Returns true if the "pro mode" is enabled.
 
virtual void enableProMode (bool enable)
 Enables/disables the "pro mode".
 
bool keyToneEnabled () const
 Returns true, if the key tone is enabled.
 
void enableKeyTone (bool enable)
 Enables/disables the key-tone.
 
virtual bool filterOwnID () const
 Returns true if the own ID is filtered in call lists.
 
virtual void enableFilterOwnID (bool enable)
 Enables/disables filter of own ID in call lists.
 
virtual bool remoteStunKill () const
 Returns true remote stun/kill is enabled.
 
virtual void enableRemoteStunKill (bool enable)
 Enables/disables remote stun/kill.
 
virtual bool remoteMonitor () const
 Returns true remote monitor is enabled.
 
virtual void enableRemoteMonitor (bool enable)
 Enables/disables remote monitor.
 
virtual bool selectTXContactEnabled () const
 Returns true, if the selection of a TX contact is enabled.
 
virtual void enableSelectTXContact (bool enable)
 Enables/disables selection of the TX contact.
 
virtual AnytoneDMRSettingsExtension::SlotMatch monitorSlotMatch () const
 Returns the monitor slot match.
 
virtual void setMonitorSlotMatch (AnytoneDMRSettingsExtension::SlotMatch match)
 Sets the monitor slot match.
 
virtual bool monitorColorCodeMatch () const
 Returns true if the monitor matches color code.
 
virtual void enableMonitorColorCodeMatch (bool enable)
 Enables/disables monitor color code match.
 
virtual bool monitorIDMatch () const
 Returns true if the monitor matches ID.
 
virtual void enableMonitorIDMatch (bool enable)
 Enables/disables monitor ID match.
 
virtual bool monitorTimeSlotHold () const
 Returns true if the monitor holds the time slot.
 
virtual void enableMonitorTimeSlotHold (bool enable)
 Enables/disables monitor time slot hold.
 
virtual Interval manDownDelay () const
 Returns the "man down" delay in seconds.
 
virtual void setManDownDelay (Interval sec)
 Sets the "man down" delay in seconds.
 
virtual unsigned fmCallHold () const
 Returns the analog call hold in seconds.
 
virtual void setFMCallHold (unsigned sec)
 Sets the analog call hold in seconds.
 
virtual bool gpsMessageEnabled () const
 Returns true if the GPS range reporting is enabled.
 
virtual void enableGPSMessage (bool enable)
 Enables/disables GPS range reporting.
 
virtual bool maintainCallChannel () const
 Returns true if the call channel is maintained.
 
virtual void enableMaintainCallChannel (bool enable)
 Enables/disables maintaining the call channel.
 
virtual unsigned priorityZoneAIndex () const
 Returns the priority Zone A index.
 
virtual void setPriorityZoneAIndex (unsigned idx)
 Sets the priority zone A index.
 
virtual unsigned priorityZoneBIndex () const
 Returns the priority Zone B index.
 
virtual void setPriorityZoneBIndex (unsigned idx)
 Sets the priority zone B index.
 
virtual bool smsConfirmEnabled () const
 Returns true, if a SMS confirmation is sent.
 
virtual void enableSMSConfirm (bool enable)
 Enables/disables SMS confirmation.
 
virtual bool simplexRepeaterEnabled () const
 Returns true if the simplex repeater feature is enabled.
 
virtual void enableSimplexRepeater (bool enable)
 Enables disables the simplex repeater feature.
 
Interval gpsUpdatePeriod () const
 Returns the GPS update period in seconds.
 
void setGPSUpdatePeriod (Interval sec)
 Sets the GPS update period in seconds.
 
virtual bool monitorSimplexRepeaterEnabled () const
 Returns true if the speaker is switched on during RX in simplex repeater mode, see simplexRepeaterEnabled.
 
virtual void enableMonitorSimplexRepeater (bool enable)
 Enables/disables the speaker during RX in simplex repeater mode.
 
bool showCurrentContact () const
 Returns true if the current contact is shown.
 
void enableShowCurrentContact (bool enable)
 Enables/disables display of current contact.
 
bool keyToneLevelAdjustable () const
 Returns true if the key-tone level is adjustable.
 
unsigned keyToneLevel () const
 Returns the key-tone level (0=adjustable).
 
void setKeyToneLevel (unsigned level)
 Sets the key-tone level.
 
void setKeyToneLevelAdjustable ()
 Sets the key-tone level adjustable.
 
bool knobLock () const
 Returns true if the knob is locked.
 
void enableKnobLock (bool enable)
 Enables/disables the knob lock.
 
bool keypadLock () const
 Returns true if the keypad is locked.
 
void enableKeypadLock (bool enable)
 Enables/disables the keypad lock.
 
bool sidekeysLock () const
 Returns true if the sidekeys are locked.
 
void enableSidekeysLock (bool enable)
 Enables/disables the sidekeys lock.
 
bool keyLockForced () const
 Returns true if the "professional" key is locked.
 
void enableKeyLockForced (bool enable)
 Enables/disables the "professional" key lock.
 
virtual AnytoneSimplexRepeaterSettingsExtension::TimeSlot simplexRepeaterTimeslot () const
 Returns the time-slot in simplex repeater mode.
 
virtual void setSimplexRepeaterTimeslot (AnytoneSimplexRepeaterSettingsExtension::TimeSlot slot)
 Sets the time-slot in simplex repeater mode.
 
bool showLastHeard () const
 Returns true if the last heard is shown while pressing PTT.
 
void enableShowLastHeard (bool enable)
 Enables/disables showing last heard.
 
virtual AnytoneDMRSettingsExtension::SMSFormat smsFormat () const
 Returns the SMS format.
 
virtual void setSMSFormat (AnytoneDMRSettingsExtension::SMSFormat fmt)
 Sets the SMS format.
 
bool gpsUnitsImperial () const
 Returns true if the GPS units are imperial.
 
void enableGPSUnitsImperial (bool enable)
 Enables/disables imperial GPS units.
 
Frequency autoRepeaterMinFrequencyVHF () const
 Returns the minimum frequency in Hz for the auto-repeater range in VHF band.
 
void setAutoRepeaterMinFrequencyVHF (Frequency Hz)
 Sets the minimum frequency in Hz for the auto-repeater range in VHF band.
 
Frequency autoRepeaterMaxFrequencyVHF () const
 Returns the maximum frequency in Hz for the auto-repeater range in VHF band.
 
void setAutoRepeaterMaxFrequencyVHF (Frequency Hz)
 Sets the maximum frequency in Hz for the auto-repeater range in VHF band.
 
Frequency autoRepeaterMinFrequencyUHF () const
 Returns the minimum frequency in Hz for the auto-repeater range in UHF band.
 
void setAutoRepeaterMinFrequencyUHF (Frequency Hz)
 Sets the minimum frequency in Hz for the auto-repeater range in UHF band.
 
Frequency autoRepeaterMaxFrequencyUHF () const
 Returns the maximum frequency in Hz for the auto-repeater range in UHF band.
 
void setAutoRepeaterMaxFrequencyUHF (Frequency Hz)
 Sets the maximum frequency in Hz for the auto-repeater range in UHF band.
 
AnytoneAutoRepeaterSettingsExtension::Direction autoRepeaterDirectionB () const
 Returns the auto-repeater direction for VFO B.
 
void setAutoRepeaterDirectionB (AnytoneAutoRepeaterSettingsExtension::Direction dir)
 Sets the auto-repeater direction for VFO B.
 
virtual bool fmSendIDAndContact () const
 If enabled, the FM ID is sent together with selected contact.
 
virtual void enableFMSendIDAndContact (bool enable)
 Enables/disables sending contact with FM ID.
 
bool defaultChannel () const
 Returns true if the default boot channel is enabled.
 
void enableDefaultChannel (bool enable)
 Enables/disables default boot channel.
 
unsigned defaultZoneIndexA () const
 Returns the default zone index (0-based) for VFO A.
 
void setDefaultZoneIndexA (unsigned idx)
 Sets the default zone (0-based) for VFO A.
 
unsigned defaultZoneIndexB () const
 Returns the default zone index (0-based) for VFO B.
 
void setDefaultZoneIndexB (unsigned idx)
 Sets the default zone (0-based) for VFO B.
 
bool defaultChannelAIsVFO () const
 Returns true if the default channel for VFO A is VFO.
 
unsigned defaultChannelAIndex () const
 Returns the default channel index for VFO A. More...
 
void setDefaultChannelAIndex (unsigned idx)
 Sets the default channel index for VFO A.
 
void setDefaultChannelAToVFO ()
 Sets the default channel for VFO A to be VFO.
 
bool defaultChannelBIsVFO () const
 Returns true if the default channel for VFO B is VFO.
 
unsigned defaultChannelBIndex () const
 Returns the default channel index for VFO B. More...
 
void setDefaultChannelBIndex (unsigned idx)
 Sets the default channel index for VFO B.
 
void setDefaultChannelBToVFO ()
 Sets the default channel for VFO B to be VFO.
 
bool keepLastCaller () const
 Returns true if the last caller is kept when changing channel.
 
void enableKeepLastCaller (bool enable)
 Enables/disables keeping the last caller when changing the channel.
 
Interval rxBacklightDuration () const
 Returns the backlight duration in seconds.
 
void setRXBacklightDuration (Interval sec)
 Sets the backlight duration in seconds.
 
virtual AnytoneDisplaySettingsExtension::Color standbyBackgroundColor () const
 Returns the stand-by background color.
 
virtual void setStandbyBackgroundColor (AnytoneDisplaySettingsExtension::Color color)
 Sets the stand-by background color.
 
virtual unsigned int manualDialedGroupCallHangTime () const
 Returns the group-call hang time, if group call was dialed manually.
 
virtual void setManualDialedGroupCallHangTime (unsigned int dur)
 Sets the group-call hang time, if the group call was dialed maually.
 
virtual unsigned int manualDialedPrivateCallHangTime () const
 Returns the private-call hang time, if private call was dialed manually.
 
virtual void setManualDialedPrivateCallHangTime (unsigned int dur)
 Sets the private-call hang time, if the private call was dialed maually.
 
bool fromConfig (const Flags &flags, Context &ctx)
 Encodes the general settings.
 
bool updateConfig (Context &ctx)
 Updates the abstract config from general settings.
 
- Public Member Functions inherited from D868UVCodeplug::GeneralSettingsElement
 GeneralSettingsElement (uint8_t *ptr)
 Constructor.
 
void clear ()
 Resets the general settings.
 
virtual AnytonePowerSaveSettingsExtension::PowerSave powerSave () const
 Returns the power-save mode.
 
virtual void setPowerSave (AnytonePowerSaveSettingsExtension::PowerSave mode)
 Sets the power-save mode.
 
virtual unsigned voxLevel () const
 Returns the VOX level.
 
virtual void setVOXLevel (unsigned level)
 Sets the VOX level.
 
virtual Interval voxDelay () const
 Returns the VOX delay in ms.
 
virtual void setVOXDelay (Interval ms)
 Sets the VOX delay in ms.
 
virtual AnytoneAudioSettingsExtension::VoxSource voxSource () const
 Returns the VOX source.
 
virtual void setVOXSource (AnytoneAudioSettingsExtension::VoxSource source)
 Sets the VOX source.
 
unsigned int dmrMicGain () const
 Returns the mirophone gain.
 
void setDMRMicGain (unsigned int gain)
 Sets the microphone gain.
 
unsigned maxSpeakerVolume () const
 Returns the maximum volume.
 
void setMaxSpeakerVolume (unsigned level)
 Sets the maximum volume.
 
virtual unsigned maxHeadPhoneVolume () const
 Returns the maximum headphone volume.
 
virtual void setMaxHeadPhoneVolume (unsigned max)
 Sets the maximum headphone volume.
 
bool enhanceAudio () const
 Returns true if the audio is "enhanced".
 
void enableEnhancedAudio (bool enable)
 Enables/disables "enhanced" audio.
 
bool recording () const
 Returns true if recording is enabled.
 
void enableRecording (bool enable)
 Enables/disables recording.
 
virtual unsigned recordingDelay () const
 Returns the recording delay in ms.
 
virtual void setRecodringDelay (unsigned ms)
 Sets the recording delay in ms.
 
AnytoneSettingsExtension::VFOScanType vfoScanType () const
 Returns the VFO scan type.
 
void setVFOScanType (AnytoneSettingsExtension::VFOScanType type)
 Sets the VFO scan type.
 
Frequency minVFOScanFrequencyUHF () const
 Returns the minimum VFO scan frequency for the UHF band in Hz.
 
void setMinVFOScanFrequencyUHF (Frequency hz)
 Sets the minimum VFO scan frequency for the UHF band in Hz.
 
Frequency maxVFOScanFrequencyUHF () const
 Returns the maximum VFO scan frequency for the UHF band in Hz.
 
void setMaxVFOScanFrequencyUHF (Frequency hz)
 Sets the maximum VFO scan frequency for the UHF band in Hz.
 
Frequency minVFOScanFrequencyVHF () const
 Returns the minimum VFO scan frequency for the VHF band in Hz.
 
void setMinVFOScanFrequencyVHF (Frequency hz)
 Sets the minimum VFO scan frequency for the VHF band in Hz.
 
Frequency maxVFOScanFrequencyVHF () const
 Returns the maximum VFO scan frequency for the VHF band in Hz.
 
void setMaxVFOScanFrequencyVHF (Frequency hz)
 Sets the maximum VFO scan frequency for the VHF band in Hz.
 
Interval longPressDuration () const
 Returns the long-press duration in ms.
 
void setLongPressDuration (Interval ms)
 Sets the long-press duration in ms.
 
unsigned memoryZoneA () const
 Returns the memory zone for VFO A.
 
void setMemoryZoneA (unsigned zone)
 Sets the memory zone for VFO A.
 
unsigned memoryZoneB () const
 Returns the memory zone for VFO B.
 
void setMemoryZoneB (unsigned zone)
 Sets the memory zone for VFO B.
 
bool gps () const
 Returns true if GPS is enabled.
 
void enableGPS (bool enable)
 Enables/disables recording.
 
QTimeZone gpsTimeZone () const
 Returns the GPS time zone.
 
void setGPSTimeZone (const QTimeZone &zone)
 Sets the GPS time zone.
 
bool getGPSPosition () const
 Returns true if get GPS position is enabled.
 
void enableGetGPSPosition (bool enable)
 Enables/disables get GPS position.
 
bool smsAlert () const
 Returns true if SMS alert is enabled.
 
void enableSMSAlert (bool enable)
 Enables/disables SMS alert.
 
bool callAlert () const
 Returns true if call alert is enabled.
 
void enableCallAlert (bool enable)
 Enables/disables call alert.
 
bool dmrTalkPermit () const
 Returns true if the talk permit tone is enabled for digital channels.
 
void enableDMRTalkPermit (bool enable)
 Enables/disables the talk permit tone for digital channels.
 
bool fmTalkPermit () const
 Returns true if the talk permit tone is enabled for digital channels.
 
void enableFMTalkPermit (bool enable)
 Enables/disables the talk permit tone for analog channels.
 
bool dmrResetTone () const
 Returns true if the reset tone is enabled for digital calls.
 
void enableDMRResetTone (bool enable)
 Enables/disables the reset tone for digital calls.
 
bool startupTone () const
 Returns true if the startup tone is enabled.
 
void enableStartupTone (bool enable)
 Enables/disables the startup tone.
 
void callToneMelody (Melody &melody) const
 Returns the call-tone melody.
 
void setCallToneMelody (const Melody &melody)
 Sets the call-tone melody.
 
void idleToneMelody (Melody &melody) const
 Returns the idle-tone melody.
 
void setIdleToneMelody (const Melody &melody)
 Sets the idle-tone melody.
 
void resetToneMelody (Melody &melody) const
 Returns the reset-tone melody.
 
void setResetToneMelody (const Melody &melody)
 Sets the reset-tone melody.
 
bool activeChannelB () const
 Returns true if the active channel is VFO B.
 
void enableActiveChannelB (bool enable)
 Enables/disables VFO B as the active channel.
 
bool subChannel () const
 Returns true if sub channel is enabled.
 
void enableSubChannel (bool enable)
 Enables/disables sub channel.
 
Interval menuExitTime () const
 Returns the menu exit time in seconds.
 
void setMenuExitTime (Interval intv)
 Sets the menu exit time in seconds.
 
bool callEndPrompt () const
 Returns true if the call-end prompt is enabled.
 
void enableCallEndPrompt (bool enable)
 Enables/disables the call-end prompt.
 
bool volumeChangePrompt () const
 Returns true if the volume change prompt is enabled.
 
void enableVolumeChangePrompt (bool enable)
 Enables/disables the volume change prompt.
 
AnytoneDisplaySettingsExtension::LastCallerDisplayMode lastCallerDisplayMode () const
 Returns the last-caller display mode.
 
void setLastCallerDisplayMode (AnytoneDisplaySettingsExtension::LastCallerDisplayMode mode)
 Sets the last-caller display mode.
 
bool displayClock () const
 Returns true if the clock is shown.
 
void enableDisplayClock (bool enable)
 Enables/disables clock display.
 
bool displayCall () const
 Returns true if the call is displayed instead of the name.
 
void enableDisplayCall (bool enable)
 Enables/disables call display.
 
AnytoneDisplaySettingsExtension::Color callDisplayColor () const
 Returns the display color for callsigns.
 
void setCallDisplayColor (AnytoneDisplaySettingsExtension::Color color)
 Sets the display color for callsigns.
 
unsigned brightness () const
 Returns the display brightness.
 
void setBrightness (unsigned level)
 Sets the display brightness.
 
virtual bool backlightPermanent () const
 Returns true if the backlight is always on.
 
virtual void enableBacklightPermanent ()
 Sets the backlight to permanent (always on).
 
AnytoneAutoRepeaterSettingsExtension::Direction autoRepeaterDirectionA () const
 Returns the auto repeater offset direction for VFO A.
 
void setAutoRepeaterDirectionA (AnytoneAutoRepeaterSettingsExtension::Direction dir)
 Sets the auto-repeater offset direction for VFO A.
 
bool hasAutoRepeaterOffsetFrequencyIndexUHF () const
 Returns true if the auto-repeater offset frequency for UHF is set.
 
unsigned autoRepeaterOffsetFrequencyIndexUHF () const
 Returns the auto-repeater offset frequency index for UHF.
 
void setAutoRepeaterOffsetFrequenyIndexUHF (unsigned idx)
 Sets the auto-repeater offset frequency index for UHF.
 
void clearAutoRepeaterOffsetFrequencyIndexUHF ()
 Clears the auto-repeater offset frequency index for UHF.
 
bool hasAutoRepeaterOffsetFrequencyIndexVHF () const
 Returns true if the auto-repeater offset frequency for VHF is set.
 
unsigned autoRepeaterOffsetFrequencyIndexVHF () const
 Returns the auto-repeater offset frequency index for UHF.
 
void setAutoRepeaterOffsetFrequenyIndexVHF (unsigned idx)
 Sets the auto-repeater offset frequency index for VHF.
 
void clearAutoRepeaterOffsetFrequencyIndexVHF ()
 Clears the auto-repeater offset frequency index for VHF.
 
bool linkSettings (RadioSettings *settings, Context &ctx, const ErrorStack &err=ErrorStack())
 Links the general settings.
 
- Public Member Functions inherited from AnytoneCodeplug::GeneralSettingsElement
virtual bool displayFrequency () const
 Returns true if the radio displays frequecies instead of channels is enabled.
 
virtual void enableDisplayFrequency (bool enable)
 Enables/disables the frequency display.
 
virtual bool autoKeyLock () const
 Returns true if auto key-lock is enabled.
 
virtual void enableAutoKeyLock (bool enable)
 Enables/disables auto key-lock.
 
virtual Interval autoShutdownDelay () const
 Returns the auto-shutdown delay in minutes.
 
virtual void setAutoShutdownDelay (Interval min)
 Sets the auto-shutdown delay in minutes.
 
virtual AnytoneBootSettingsExtension::BootDisplay bootDisplay () const
 Returns the boot display mode.
 
virtual void setBootDisplay (AnytoneBootSettingsExtension::BootDisplay mode)
 Sets the boot display mode.
 
virtual bool bootPassword () const
 Returns true if boot password is enabled.
 
virtual void enableBootPassword (bool enable)
 Enables/disables boot password.
 
virtual unsigned squelchLevelA () const
 Squelch level of VFO A, (0=off).
 
virtual void setSquelchLevelA (unsigned level)
 Returns the squelch level for VFO A, (0=off).
 
virtual unsigned squelchLevelB () const
 Squelch level of VFO B, (0=off).
 
virtual void setSquelchLevelB (unsigned level)
 Returns the squelch level for VFO B, (0=off).
 
- Public Member Functions inherited from Codeplug::Element
 Element (const Element &other)
 Copy constructor.
 
virtual ~Element ()
 Destructor.
 
virtual bool isValid () const
 Returns true if the pointer is not null.
 
bool fill (uint8_t value, unsigned offset=0, int size=-1)
 Fills the memsets the entire element to the given value.
 
bool getBit (unsigned offset, unsigned bit) const
 Reads a specific bit at the given byte-offset.
 
void setBit (unsigned offset, unsigned bit, bool value=true)
 Sets a specific bit at the given byte-offset.
 
void clearBit (unsigned offset, unsigned bit)
 Clears a specific bit at the given byte-offset.
 
uint8_t getUInt2 (unsigned offset, unsigned bit) const
 Reads a 2bit unsigned integer at the given byte- and bit-offset.
 
void setUInt2 (unsigned offset, unsigned bit, uint8_t value)
 Stores a 2bit unsigned integer at the given byte- and bit-offset.
 
uint8_t getUInt3 (unsigned offset, unsigned bit) const
 Reads a 3bit unsigned integer at the given byte- and bit-offset.
 
void setUInt3 (unsigned offset, unsigned bit, uint8_t value)
 Stores a 3bit unsigned integer at the given byte- and bit-offset.
 
uint8_t getUInt4 (unsigned offset, unsigned bit) const
 Reads a 4bit unsigned integer at the given byte- and bit-offset.
 
void setUInt4 (unsigned offset, unsigned bit, uint8_t value)
 Stores a 4bit unsigned integer at the given byte- and bit-offset.
 
uint8_t getUInt5 (unsigned offset, unsigned bit) const
 Reads a 5bit unsigned integer at the given byte- and bit-offset.
 
void setUInt5 (unsigned offset, unsigned bit, uint8_t value)
 Stores a 5bit iunsinged nteger at the given byte- and bit-offset.
 
uint8_t getUInt6 (unsigned offset, unsigned bit) const
 Reads a 6bit unsigned integer at the given byte- and bit-offset.
 
void setUInt6 (unsigned offset, unsigned bit, uint8_t value)
 Stores a 6bit unsigned integer at the given byte- and bit-offset.
 
uint8_t getUInt8 (unsigned offset) const
 Reads a 8bit unsigned integer at the given byte- and bit-offset.
 
void setUInt8 (unsigned offset, uint8_t value)
 Reads a 8bit unsigned integer at the given byte- and bit-offset.
 
int8_t getInt8 (unsigned offset) const
 Reads a 8bit signed integer at the given byte- and bit-offset.
 
void setInt8 (unsigned offset, int8_t value)
 Reads a 8bit signed integer at the given byte- and bit-offset.
 
uint16_t getUInt16_be (unsigned offset) const
 Reads a 16bit big-endian unsigned integer at the given byte-offset.
 
uint16_t getUInt16_le (unsigned offset) const
 Reads a 16bit little-endian unsigned integer at the given byte-offset.
 
void setUInt16_be (unsigned offset, uint16_t value)
 Stores a 16bit big-endian unsigned integer at the given byte-offset.
 
void setUInt16_le (unsigned offset, uint16_t value)
 Stores a 16bit little-endian unsigned integer at the given byte-offset.
 
uint32_t getUInt24_be (unsigned offset) const
 Reads a 24bit big-endian unsigned integer at the given byte-offset.
 
uint32_t getUInt24_le (unsigned offset) const
 Reads a 24bit little-endian unsigned integer at the given byte-offset.
 
void setUInt24_be (unsigned offset, uint32_t value)
 Stores a 24bit big-endian unsigned integer at the given byte-offset.
 
void setUInt24_le (unsigned offset, uint32_t value)
 Stores a 24bit little-endian unsigned integer at the given byte-offset.
 
uint32_t getUInt32_be (unsigned offset) const
 Reads a 32bit big-endian unsigned integer at the given byte-offset.
 
uint32_t getUInt32_le (unsigned offset) const
 Reads a 32bit little-endian unsigned integer at the given byte-offset.
 
void setUInt32_be (unsigned offset, uint32_t value)
 Stores a 32bit big-endian unsigned integer at the given byte-offset.
 
void setUInt32_le (unsigned offset, uint32_t value)
 Stores a 32bit little-endian unsigned integer at the given byte-offset.
 
uint64_t getUInt64_be (unsigned offset) const
 Reads a 64bit big-endian unsigned integer at the given byte-offset.
 
uint64_t getUInt64_le (unsigned offset) const
 Reads a 64bit little-endian unsigned integer at the given byte-offset.
 
void setUInt64_be (unsigned offset, uint64_t value)
 Stores a 64bit big-endian unsigned integer at the given byte-offset.
 
void setUInt64_le (unsigned offset, uint64_t value)
 Stores a 64bit little-endian unsigned integer at the given byte-offset.
 
uint8_t getBCD2 (unsigned offset) const
 Reads a 2-digit (1-byte/8bit) BDC value in big-endian at the given byte-offset.
 
void setBCD2 (unsigned offset, uint8_t value)
 Stores a 2-digit (1-byte/8bit) BDC value in big-endian at the given byte-offset.
 
uint16_t getBCD4_be (unsigned offset) const
 Reads a 4-digit (2-byte/16bit) BDC value in big-endian at the given byte-offset.
 
void setBCD4_be (unsigned offset, uint16_t value)
 Stores a 4-digit (2-byte/16bit) BDC value in big-endian at the given byte-offset.
 
uint16_t getBCD4_le (unsigned offset) const
 Reads a 4-digit (2-byte/16bit) BDC value in little-endian at the given byte-offset.
 
void setBCD4_le (unsigned offset, uint16_t value)
 Stores a 4-digit (1-byte/16bit) BDC value in little-endian at the given byte-offset.
 
uint32_t getBCD8_be (unsigned offset) const
 Reads a 8-digit (4-byte/32bit) BDC value in big-endian at the given byte-offset.
 
void setBCD8_be (unsigned offset, uint32_t value)
 Stores a 8-digit (4-byte/32bit) BDC value in big-endian at the given byte-offset.
 
uint32_t getBCD8_le (unsigned offset) const
 Reads a 8-digit (4-byte/32bit) BDC value in little-endian at the given byte-offset.
 
void setBCD8_le (unsigned offset, uint32_t value)
 Stores a 8-digit (4-byte/32bit) BDC value in little-endian at the given byte-offset.
 
QString readASCII (unsigned offset, unsigned maxlen, uint8_t eos=0x00) const
 Reads up to maxlen ASCII chars at the given byte-offset using eos as the string termination char.
 
void writeASCII (unsigned offset, const QString &txt, unsigned maxlen, uint8_t eos=0x00)
 Stores up to maxlen ASCII chars at the given byte-offset using eos as the string termination char. More...
 
QString readUnicode (unsigned offset, unsigned maxlen, uint16_t eos=0x0000) const
 Reads up to maxlen unicode chars at the given byte-offset using eos as the string termination char.
 
void writeUnicode (unsigned offset, const QString &txt, unsigned maxlen, uint16_t eos=0x0000)
 Stores up to maxlen unicode chars at the given byte-offset using eos as the string termination char. More...
 

Static Public Member Functions

static constexpr unsigned int size ()
 Returns the size of the element.
 
- Static Public Member Functions inherited from D868UVCodeplug::GeneralSettingsElement
static constexpr unsigned int size ()
 Returns the size of the element.
 

Protected Types

enum  FreqStep {
  FREQ_STEP_2_5kHz = 0 , FREQ_STEP_5kHz = 1 , FREQ_STEP_6_25kHz = 2 , FREQ_STEP_10kHz = 3 ,
  FREQ_STEP_12_5kHz = 4 , FREQ_STEP_20kHz = 5 , FREQ_STEP_25kHz = 6 , FREQ_STEP_50kHz = 7
}
 Possible VFO frequency steps. More...
 
enum  DTMFDuration {
  DTMF_DUR_50ms = 0 , DTMF_DUR_100ms = 1 , DTMF_DUR_200ms = 2 , DTMF_DUR_300ms = 3 ,
  DTMF_DUR_500ms = 4
}
 DTMF signalling durations.
 
enum class  TBSTFrequency { Hz1000 = 0 , Hz1450 = 1 , Hz1750 = 2 , Hz2100 = 3 }
 TBST (open repeater) frequencies.
 
enum class  STEFrequency { Off = 0 , Hz55_2 = 1 , Hz259_2 = 2 }
 All possible STE (squelch tail eliminate) frequencies.
 

Protected Member Functions

 GeneralSettingsElement (uint8_t *ptr, unsigned size)
 Hidden Constructor.
 
- Protected Member Functions inherited from D868UVCodeplug::GeneralSettingsElement
 GeneralSettingsElement (uint8_t *ptr, unsigned size)
 Hidden constructor.
 
- Protected Member Functions inherited from AnytoneCodeplug::GeneralSettingsElement
 GeneralSettingsElement (uint8_t *ptr, unsigned size)
 Hidden constructor.
 
- Protected Member Functions inherited from Codeplug::Element
 Element (uint8_t *ptr, size_t size)
 Hidden constructor. More...
 

Additional Inherited Members

- Public Types inherited from AnytoneCodeplug::GeneralSettingsElement
enum class  AutoShutdown {
  Off = 0 , After10min = 1 , After30min = 2 , After60min = 3 ,
  After120min = 4
}
 Possible automatic shutdown delays.
 
- Protected Attributes inherited from Codeplug::Element
uint8_t * _data
 Holds the pointer to the element.
 
size_t _size
 Holds the size of the element.
 

Detailed Description

General settings element for the DMR-6X2UV.

Extends the AnytoneCodeplug::GeneralSettingsElement by the device specific settings for the BTECH DMR-6X2UV.

Memory representation of the encoded settings element (size 0x0e0 bytes):

     7   6   5   4   3   2   1   0   7   6   5   4   3   2   1   0   7   6   5   4   3   2   1   0   7   6   5   4   3   2   1   0
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
00 | Idle channel tone             | Display mode                  | Enable automatic key lock     | Automatic shutdown time       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
04 | Transmit timeout in 30s       | Language                      | Boot display                  | Enable boot password          |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
08 | VFO frequency step            | Squelch level VFO A           | Squelch level VFO B           | Power save mode               |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0c | VOX sensitivity               | VOX delay in 100+500*n ms     | VFO scan type                 | MIC gain                      |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
10 | PF1 short press function      | PF2 short press function      | PF3 short press function      | P1 short press function       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
14 | P2 short press function       | Work mode B                   | Work mode A                   | STE Type                      |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
18 | STE freq. no signal           | Group call hang time in sec   | Private call hang time in sec | Prewave time in 20ms          |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
1c | Wake head period in 20ms      | WFM channel index             | WFM VFO Mode enable           | Work mode MEM zone A idx      |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
20 | Work mode MEM zone B          | Unused set to 0x00            | Enable recording              | DTMF duration                 |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
24 | Man down enable               | Unused set to 0x00            | Display brightness            | Backlight duration            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
28 | Enable GPS                    | Enable SMS alert              | Unused set to 0x00            | WFM monitor enable            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
2c | Work mode main channel        | Enable sub channel            | TBST frquency                 | Enable call alert             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
30 | GPS Time zone                 | Talk permit tone              | Digital call reset tone       | VOX source                    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
34 | Enable pro mode               | Unused set to 0x00            | Enable key tone               | Menu exit time                |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
38 | Filter own ID enable          | Startup tone                  | Enable call end prompt        | Max speaker volume            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
3c | Remote stun/kill enable       | Unused set to 0x00            | Remote monitor enable         | GPS RX positions              |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
40 | Enable select TX contact      | PF1 long press function       | PF2 long press function       | PF3 long press function       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
44 | P1 long press function        | P2 long press function        | Long press duration           | Enable Volume change prompt   |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
48 | Auto repeater A direction     | Digital monitor slot          | Digital monitor color code    | Digital monitor match ID      |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
4c | Digital monitor hold slot     | Display last caller           | Unknown                       | Man down delay in sec         |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
50 | Analog call hold in seconds   | Enable display clock          | Max headphone volume          | Enable GPS range message      |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
54 | Unknown settings                                                                              | Enable enhanced audio         |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
58 | VFO Scan UHF minimum frequency in 10Hz, little endian                                                                         |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
5c | VFO Scan UHF maximum frequency in 10Hz, little endian                                                                         |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
60 | VFO Scan VHF minimum frequency in 10Hz, little endian                                                                         |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
64 | VFO Scan VHF maximum frequency in 10Hz, little endian                                                                         |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
68 | Autorep. off. idx UHF, ffh=off| Autorep. off. idx VHF, ffh=off| Unknown                                                    ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
6c  ...                                                            | Enable maintain call channel  | Priority zone A idx, 0xff=off |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
70 | Priority zone B idx, 0xff=off | Enable SMS confirmation       | Call tone frequency 1 in Hz, little endian                    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
74 | Call tone frequency 2 in Hz, little endian                    | Call tone frequency 3 in Hz, little endian                    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
78 | Call tone frequency 4 in Hz, little endian                    | Call tone frequency 5 in Hz, little endian                    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
7c | Call tone duration 1 in ms, little endian                     | Call tone duration 2 in ms, little endian                     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
80 | Call tone duration 3 in ms, little endian                     | Call tone duration 4 in ms, little endian                     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
84 | Call tone duration 5 in ms, little endian                     | Idle tone frequency 1 in Hz, little endian                    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
88 | Idle tone frequency 2 in Hz, little endian                    | Idle tone frequency 3 in Hz, little endian                    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
8c | Idle tone frequency 4 in Hz, little endian                    | Idle tone frequency 5 in Hz, little endian                    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
90 | Idle tone duration 1 in ms, little endian                     | Idle tone duration 2 in ms, little endian                     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
94 | Idle tone duration 3 in ms, little endian                     | Idle tone duration 4 in ms, little endian                     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
98 | Idle tone duration 5 in ms, little endian                     | Reset tone frequency 1 in Hz, little endian                   |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
9c | Reset tone frequency 2 in Hz, little endian                   | Reset tone frequency 3 in Hz, little endian                   |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
a0 | Reset tone frequency 4 in Hz, little endian                   | Reset tone frequency 5 in Hz, little endian                   |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
a4 | Reset tone duration 1 in ms, little endian                    | Reset tone duration 2 in ms, little endian                    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
a8 | Reset tone duration 3 in ms, little endian                    | Reset tone duration 4 in ms, little endian                    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
ac | Reset tone duration 5 in ms, little endian                    | Record delay in 200ms         | Call display mode             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
b0 | Call-sign display color       | Enable simplex repeater       | GPS ranging interv. in sec.   | Enable speaker in simpl. rep. |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
b4 | Show current contact          | Key sound adjustable          | 0   0   0   0 |KNL|KBL|SKL|PKL| SimplRepSlot 0=TS1 1=TS2 2=CH |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
b8 | Show last call on startup     | SMS format                    | GPS units                     |                               |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
bc | Auto repeater lower VHF frequency, in 10Hz, little endian                                                                     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
c0 | Auto repeater upper VHF frequency, in 10Hz, little endian                                                                     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
c4 | Auto repeater lower UHF frequency, in 10Hz, little endian                                                                     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
c8 | Auto repeater upper UHF frequency, in 10Hz, little endian                                                                     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
cc | Auto repeater B direction     | AddrBk is sent with own code  | Enable default boot channel   | Boot zone A idx               |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
d0 | Boot zone B idx               | Boot ch A idx, 0xff=VFO       | Boot ch B idx, 0xff=VFO       | Enable keep last caller       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
d4 | RX Backlight delay            | Display mode                  | ManDial GrpCall hgn time sec. | ManDial PrvCall hgn time sec. |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
d8 |                                                                                                                               |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
dc |                                                                                                                               |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

Field description:
 - Display mode: 0x00=Channel, 0x01=Frequency
 - VFO frequency step: 0x00=2.5kHz, 0x01=5kHz, 0x02=6.25kHz, 0x03=10kHz, 0x04=12.5kHz, 0x05=20kHz, 0x06=25kHz, 0x07=30kHz, 0x08=50kHz
 - Squelch level: 0x00=Off, 0x01=1, ..., 0x05=5
 - Automatic shutdown time: 0x00=Off, 0x01=10min, 0x02=30min, 0x03=60min, 0x04=120min
 - Power save mode: 0x00=Off, 0x01=1:1, 0x02=2:1
 - VOX sensitivity: 0x00=Off, 0x01=1, ..., 0x03=3
 - Work mode A/B: 0x00=VFO, 0x01=MEM
 - Work mode main channel: 0x00=A, 0x01=B
 - TBST frquency: 0x00=1000Hz, 0x01=1450Hz, 0x02=1750Hz, 0x03=2100Hz
 - GPS Time zone: 0x00=GMT-12, ..., 0x0c=GMT, 0x19=GMT+13
 - Boot display: 0x00=Default, 0x01=Custom Text, 0x02=Custom Image
 - VFO scan type: 0x00=TO, 0x01=CO, 0x02=SE
 - Key press function: 0x00=Off, 0x01=Voltage, 0x02=Power, 0x03=Repeater, 0x04=Reverse, 0x05=Digital Encryption, 0x06=Call, 0x07=VOX,
                       0x08=V/M, 0x09=Sub PTT, 0x0a=Scan, 0x0b=FM, 0x0c=Alarm, 0x0d=Record Switch, 0x0e=Record, 0x0f=SMS, 0x10=Dial,
                       0x11=GPS Information, 0x12=Monitor, 0x13=Main Ch. switch, 0x14=HotKey 1, ..., 0x19=HotKey 6, 0x1a=Work Alone,
                       0x1b=Nuisance Delete, 0x1c=Digital Monitor, 0x1d=Sub Ch Switch, 0x1e=Priority Zone, 0x1f=Programming Scan,
                       0x20=MIC sound quality, 0x21=Last call reply, 0x22=Channel type switch, 0x23=Simplex repeater, 0x24=Max. volume,
                       0x25=Ranging, 0x26=Channel ranging, 0x27=Slot switch, 0x28=Analog squelch, 0x29=Roaming, 0x2a=Zone select,
                       0x2b=Roaming settings, 0x2c=FixTime Mute, 0x2d=CTCSS/DCS settings, 0x2e=APRS type, 0x2f=APRS settings
 - Talk permit tone: 0x00=Off, 0x01=Digital, 0x02=Analog, 0x03=Both
 - STE Type: 0x00=Off, 0x01=Silent, 0x02=120deg, 0x03=180deg, 0x04=240deg
 - STE freq. no signal: 0x00=Off, 0x01=55.2Hz, 0x02=259.2Hz
 - VOX source: 0x00=Internal, 0x01=External, 0x02=Both
 - Display brightness: 0x00=1, ..., 0x04=5
 - Backlight duration: 0x00=Always, 0x01=5s, ..., 0x06=30s, 0x07=1m, ..., 0x0a=5m
 - MIC gain: 0x00=1, ..., 0x04=5
 - Max speaker/headphone volume: 0x00=Indoors, 0x01=1, ..., 0x08=8
 - Menu exit time: (n+1)*5s
 - Auto repeater A/B direction: 0x00=Off, 0x01=positive, 0x02=negative
 - Digital monitor slot: 0x00=Off, 0x01=single, 0x02=both´
 - Display last caller: 0x00=Off, 0x01=Show ID, 0x02=Show name, 0x03=Both
 - Call display mode: 0x00=Name based, 0x01=Call-sign based
 - Call-sign display color: 0x00=orange, 0x01=red, 0x02=yellow, 0x03=green, 0x04=turquoise, 0x05=blue, 0x06=white, 0x07=black
 - Enable keep last caller: A channel switch keeps laster caller.
 - RX Backlight delay: 0x00=Always, 0x01=1s, ..., 0x1e=30s.
 - Display mode: 0x00=black background, 0x01=blue background
 - Key sound adjustable: 0x00=Adjustable, 0x01=1, ..., 0x0f=15
 - GPS units: 0x00=metric, 0x01=imperial
 - KNL: Knob lock enable
 - KBL: Keyboard lock enable
 - SKL: Side key lock enable
 - PKL: Professional key lock enable
 - SMS format: 0x00=M-format, 0x01=H-format, 0x02=DMR standard

Member Enumeration Documentation

◆ FreqStep

Possible VFO frequency steps.

Enumerator
FREQ_STEP_2_5kHz 

2.5kHz

FREQ_STEP_5kHz 

5kHz

FREQ_STEP_6_25kHz 

6.25kHz

FREQ_STEP_10kHz 

10kHz

FREQ_STEP_12_5kHz 

12.5kHz

FREQ_STEP_20kHz 

20kHz

FREQ_STEP_25kHz 

25kHz

FREQ_STEP_50kHz 

50kHz

Member Function Documentation

◆ defaultChannelAIndex()

unsigned int DMR6X2UVCodeplug::GeneralSettingsElement::defaultChannelAIndex ( ) const
virtual

Returns the default channel index for VFO A.

Must be within default zone. If 0xff, default channel is VFO.

Reimplemented from D868UVCodeplug::GeneralSettingsElement.

◆ defaultChannelBIndex()

unsigned int DMR6X2UVCodeplug::GeneralSettingsElement::defaultChannelBIndex ( ) const
virtual

Returns the default channel index for VFO B.

Must be within default zone. If 0xff, default channel is VFO.

Reimplemented from D868UVCodeplug::GeneralSettingsElement.

◆ setSTEFrequency()

void DMR6X2UVCodeplug::GeneralSettingsElement::setSTEFrequency ( double  freq)
virtual

Sets the STE (squelch tail eliminate) frequency setting.

A value of 0 disables the STE. Possible values are 55.2 and 259.2 Hz.

◆ steFrequency()

double DMR6X2UVCodeplug::GeneralSettingsElement::steFrequency ( ) const
virtual

Returns the STE (squelch tail eliminate) frequency setting in Hz.

A value of 0 disables the STE. Possible values are 55.2 and 259.2 Hz.


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