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

Represents the general config of the radio within the D578UV binary codeplug. More...

#include <d578uv_codeplug.hh>

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

Classes

struct  KeyFunction
 Device specific key functions. More...
 
struct  Offset
 Some internal offsets. More...
 
struct  TimeZone
 Device specific time zones. More...
 

Public Member Functions

 GeneralSettingsElement (uint8_t *ptr)
 Constructor.
 
bool keyToneEnabled () const
 Returns true, if the key tone is enabled.
 
void enableKeyTone (bool enable)
 Enables/disables the key-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.
 
AnytoneSettingsExtension::VFOScanType vfoScanType () const
 Returns the VFO scan type.
 
void setVFOScanType (AnytoneSettingsExtension::VFOScanType type)
 Sets the VFO scan type.
 
unsigned int dmrMicGain () const
 Returns the mirophone gain.
 
void setDMRMicGain (unsigned int gain)
 Sets the microphone gain.
 
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.
 
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.
 
virtual bool wfmEnabled () const
 Returns true, if the WFM/Airband receiver is enabled.
 
virtual void enableWFM (bool enable)
 Enables/disables WFM/Airband receiver.
 
bool recording () const
 Returns true if recording is enabled.
 
void enableRecording (bool enable)
 Enables/disables recording.
 
unsigned brightness () const
 Returns the display brightness.
 
void setBrightness (unsigned level)
 Sets the display brightness.
 
bool gps () const
 Returns true if GPS is enabled.
 
void enableGPS (bool enable)
 Enables/disables recording.
 
bool smsAlert () const
 Returns true if SMS alert is enabled.
 
void enableSMSAlert (bool enable)
 Enables/disables SMS alert.
 
virtual bool wfmMonitor () const
 Returns true if WFM monitor is enabled.
 
virtual void enableWFMMonitor (bool enable)
 Enables/disables WFM monitor.
 
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.
 
virtual Frequency tbstFrequency () const
 Returns the TBST frequency.
 
virtual void setTBSTFrequency (Frequency freq)
 Sets the TBST frequency.
 
bool callAlert () const
 Returns true if call alert is enabled.
 
void enableCallAlert (bool enable)
 Enables/disables call alert.
 
QTimeZone gpsTimeZone () const
 Returns the GPS time zone.
 
void setGPSTimeZone (const QTimeZone &zone)
 Sets the GPS time zone.
 
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 idleChannelTone () const
 Returns true if the idle channel tone is enabled.
 
void enableIdleChannelTone (bool enable)
 Enables/disables the idle channel tone.
 
Interval menuExitTime () const
 Returns the menu exit time in seconds.
 
void setMenuExitTime (Interval intv)
 Sets the menu exit time in seconds.
 
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.
 
bool startupTone () const
 Returns true if the startup tone is enabled.
 
void enableStartupTone (bool enable)
 Enables/disables the startup tone.
 
bool callEndPrompt () const
 Returns true if the call-end prompt is enabled.
 
void enableCallEndPrompt (bool enable)
 Enables/disables the call-end prompt.
 
unsigned maxSpeakerVolume () const
 Returns the maximum volume.
 
void setMaxSpeakerVolume (unsigned level)
 Sets the maximum volume.
 
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.
 
bool getGPSPosition () const
 Returns true if get GPS position is enabled.
 
void enableGetGPSPosition (bool enable)
 Enables/disables get GPS position.
 
Interval longPressDuration () const
 Returns the long-press duration in ms.
 
void setLongPressDuration (Interval ms)
 Sets the long-press duration in ms.
 
bool volumeChangePrompt () const
 Returns true if the volume change prompt is enabled.
 
void enableVolumeChangePrompt (bool enable)
 Enables/disables the volume change prompt.
 
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.
 
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.
 
AnytoneDisplaySettingsExtension::LastCallerDisplayMode lastCallerDisplayMode () const
 Returns the last-caller display mode.
 
void setLastCallerDisplayMode (AnytoneDisplaySettingsExtension::LastCallerDisplayMode mode)
 Sets the last-caller display mode.
 
virtual unsigned fmCallHold () const
 Returns the analog call hold in seconds.
 
virtual void setFMCallHold (unsigned sec)
 Sets the analog call hold in seconds.
 
bool displayClock () const
 Returns true if the clock is shown.
 
void enableDisplayClock (bool enable)
 Enables/disables clock display.
 
virtual bool gpsMessageEnabled () const
 Returns true if the GPS range reporting is enabled.
 
virtual void enableGPSMessage (bool enable)
 Enables/disables GPS range reporting.
 
bool enhanceAudio () const
 Returns true if the audio is "enhanced".
 
void enableEnhancedAudio (bool enable)
 Enables/disables "enhanced" audio.
 
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.
 
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.
 
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.
 
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.
 
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.
 
bool displayCall () const
 Returns true if the call is displayed instead of the name.
 
void enableDisplayCall (bool enable)
 Enables/disables call display.
 
virtual bool bluetooth () const
 Returns true if bluetooth is enabled.
 
virtual void enableBluetooth (bool enable)
 Enables/disables bluetooth.
 
virtual bool btAndInternalMic () const
 Returns true if the internal mic is additionally active when BT is active.
 
virtual void enableBTAndInternalMic (bool enable)
 Enables/disables the internal mic when BT is active.
 
virtual bool btAndInternalSpeaker () const
 Returns true if the internal speaker is additionally active when BT is active.
 
virtual void enableBTAndInternalSpeaker (bool enable)
 Enables/disables the internal speaker when BT is active.
 
virtual bool pluginRecTone () const
 Returns true if the plug-in record tone is enabled.
 
virtual void enablePluginRecTone (bool enable)
 Enables/disables the plug-in record tone.
 
virtual Interval gpsUpdatePeriod () const
 Returns the GPS ranging interval in seconds.
 
virtual void setGPSUpdatePeriod (Interval sec)
 Sets the GPS ranging interval in seconds.
 
virtual unsigned int btMicGain () const
 Returns the bluetooth microphone gain [1,10].
 
virtual void setBTMicGain (unsigned int gain)
 Sets the bluetooth microphone gain [1,10].
 
virtual unsigned int btSpeakerGain () const
 Returns the bluetooth speaker gain [1,10].
 
virtual void setBTSpeakerGain (unsigned int gain)
 Sets the bluetooth speaker gain [1,10].
 
virtual bool displayChannelNumber () const
 Returns true if the channel number is displayed.
 
virtual void enableDisplayChannelNumber (bool enable)
 Enables/disables display of channel number.
 
bool showCurrentContact () const
 Returns true if the current contact is shown.
 
void enableShowCurrentContact (bool enable)
 Enables/disables display of current contact.
 
virtual Interval autoRoamPeriod () const
 Returns the auto roaming period in minutes.
 
virtual void setAutoRoamPeriod (Interval min)
 Sets the auto roaming period in minutes.
 
AnytoneDisplaySettingsExtension::Color callDisplayColor () const
 Returns the display color for callsigns.
 
void setCallDisplayColor (AnytoneDisplaySettingsExtension::Color color)
 Sets the display color for callsigns.
 
bool gpsUnitsImperial () const
 Returns true if the GPS units are imperial.
 
void enableGPSUnitsImperial (bool enable)
 Enables/disables imperial GPS units.
 
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 Interval autoRoamDelay () const
 Returns the auto-roam delay in seconds.
 
virtual void setAutoRoamDelay (Interval sec)
 Sets the auto-roam delay in seconds.
 
virtual AnytoneDisplaySettingsExtension::Color standbyTextColor () const
 Returns the standby text color.
 
virtual void setStandbyTextColor (AnytoneDisplaySettingsExtension::Color color)
 Sets the standby text color.
 
virtual AnytoneDisplaySettingsExtension::Color standbyBackgroundColor () const
 Returns the standby image color.
 
virtual void setStandbyBackgroundColor (AnytoneDisplaySettingsExtension::Color color)
 Sets the standby image color.
 
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.
 
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.
 
virtual unsigned defaultRoamingZoneIndex () const
 Returns the default roaming zone index.
 
virtual void setDefaultRoamingZoneIndex (unsigned idx)
 Sets the default roaming zone index.
 
virtual bool repeaterRangeCheck () const
 Returns true if repeater range check is enabled.
 
virtual void enableRepeaterRangeCheck (bool enable)
 Enables/disables repeater range check.
 
virtual Interval repeaterRangeCheckInterval () const
 Returns the repeater range check period in seconds.
 
virtual void setRepeaterRangeCheckInterval (Interval sec)
 Sets the repeater range check interval in seconds.
 
virtual unsigned repeaterRangeCheckCount () const
 Returns the number of repeater range checks.
 
virtual void setRepeaterRangeCheckCount (unsigned n)
 Sets the number of repeater range checks.
 
virtual AnytoneRoamingSettingsExtension::RoamStart roamingStartCondition () const
 Returns the roaming start condition.
 
virtual void setRoamingStartCondition (AnytoneRoamingSettingsExtension::RoamStart cond)
 Sets the roaming start condition.
 
virtual bool separateDisplay () const
 Returns true if the "separate display" is enabled.
 
virtual void enableSeparateDisplay (bool enable)
 Enables/disables "separate display.
 
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.
 
virtual AnytoneDisplaySettingsExtension::Color channelNameColor () const
 Returns the channel name color.
 
virtual void setChannelNameColor (AnytoneDisplaySettingsExtension::Color color)
 Sets the channel name color.
 
virtual bool repeaterCheckNotification () const
 Returns true if repeater check notification is enabled.
 
virtual void enableRepeaterCheckNotification (bool enable)
 Enables/disables repeater check notification.
 
virtual bool roaming () const
 Returns true if roaming is enabled.
 
virtual void enableRoaming (bool enable)
 Enables/disables repeater check notification.
 
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.
 
virtual AnytoneKeySettingsExtension::KeyFunction funcKey3Short () const
 Returns the function for programmable function key 3 short press.
 
virtual void setFuncKey3Short (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the function for programmable function key 3 short press.
 
virtual AnytoneKeySettingsExtension::KeyFunction funcKey4Short () const
 Returns the function for programmable function key 4 short press.
 
virtual void setFuncKey4Short (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the function for programmable function key 4 short press.
 
virtual AnytoneKeySettingsExtension::KeyFunction funcKey5Short () const
 Returns the function for programmable function key 5 short press.
 
virtual void setFuncKey5Short (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the function for programmable function key 5 short press.
 
virtual AnytoneKeySettingsExtension::KeyFunction funcKey6Short () const
 Returns the function for programmable function key 6 short press.
 
virtual void setFuncKey6Short (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the function for programmable function key 6 short press.
 
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.
 
virtual AnytoneKeySettingsExtension::KeyFunction funcKeyDShort () const
 Returns the function for programmable function key D short press.
 
virtual void setFuncKeyDShort (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the function for programmable function key D short press.
 
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.
 
virtual AnytoneKeySettingsExtension::KeyFunction funcKey3Long () const
 Returns the function for programmable function key 3 long press.
 
virtual void setFuncKey3Long (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the function for programmable function key 3 long press.
 
virtual AnytoneKeySettingsExtension::KeyFunction funcKey4Long () const
 Returns the function for programmable function key 4 long press.
 
virtual void setFuncKey4Long (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the function for programmable function key 4 long press.
 
virtual AnytoneKeySettingsExtension::KeyFunction funcKey5Long () const
 Returns the function for programmable function key 5 long press.
 
virtual void setFuncKey5Long (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the function for programmable function key 5 long press.
 
virtual AnytoneKeySettingsExtension::KeyFunction funcKey6Long () const
 Returns the function for programmable function key 6 long press.
 
virtual void setFuncKey6Long (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the function for programmable function key 6 long press.
 
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.
 
virtual AnytoneKeySettingsExtension::KeyFunction funcKeyDLong () const
 Returns the function for programmable function key D long press.
 
virtual void setFuncKeyDLong (AnytoneKeySettingsExtension::KeyFunction func)
 Sets the function for programmable function key D long press.
 
virtual unsigned repeaterCheckNumNotifications () const
 Returns the number of repeater check notifications.
 
virtual void setRepeaterCheckNumNotifications (unsigned num)
 Sets the number of repeater check notifications.
 
virtual Interval transmitTimeoutRekey () const
 Returns the transmit timeout rekey interval in seconds [0,255], 0=Off.
 
virtual void setTransmitTimeoutRekey (Interval dt)
 Sets the transmit timeout rekey interval in seconds [0,255], 0=Off.
 
virtual bool btHoldTimeEnabled () const
 Returns true, if the bluetooth hold time is enabled.
 
virtual bool btHoldTimeInfinite () const
 Returns true, if the bluetooth hold time is infinite.
 
virtual Interval btHoldTime () const
 Returns the bluetooth hold time.
 
virtual void setBTHoldTime (Interval interval)
 Sets the bluethooth hold time (1-120s).
 
virtual void setBTHoldTimeInfinite ()
 Sets the bluethooth hold time to infinite.
 
virtual void disableBTHoldTime ()
 Sets the bluethooth hold time to infinite.
 
virtual Interval btRXDelay () const
 Returns the bluetooth RX delay in ms.
 
virtual void setBTRXDelay (Interval delay)
 Sets the bluetooth RX delay in ms.
 
bool fromConfig (const Flags &flags, Context &ctx)
 Encodes the general settings.
 
bool updateConfig (Context &ctx)
 Updates the abstract config from general settings.
 
bool linkSettings (RadioSettings *settings, Context &ctx, const ErrorStack &err)
 Links the general settings.
 
- Public Member Functions inherited from AnytoneCodeplug::GeneralSettingsElement
void clear ()
 Resets the general settings.
 
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.
 
Elementoperator= (const Element &other)
 Copy assignment.
 
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 (const Offset::BitOffset &offset) const
 Reads a specific bit at the given byte-offset.
 
bool getBit (unsigned offset, unsigned bit) const
 Reads a specific bit at the given byte-offset.
 
void setBit (const Offset::BitOffset &offset, bool value=true)
 Sets 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 ()
 The size of the element.
 

Protected Types

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 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

Represents the general config of the radio within the D578UV binary codeplug.

This class implements only the differences to the D878UV general settings D878UVCodeplug::GeneralSettingsElement

Binary encoding of the general settings (size 0x00f0 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 | Key tones                     | Display mode                  | Auto key-lock enable          | Auto shut-down delay          |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
04 | Transmit timeout              | Language                      | Boot display mode             | Boot password enable          |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
08 | VFO Frequency step            | Squelch level A               | Squelch level B               | VFO scan type                 |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0c | DMR mic. gain                 | Work mode A                   | Work mode B                   | STE Type                      |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
10 | STE when no signal            | Group call hang time          | Private call hang time        | Pre-wave delay                |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
14 | Wake head period              | WFM channel index             | WFM Mode                      | Work mode MEM zone idx A      |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
18 | Work mode MEM zone idx B      | Airband/WFM enable            | Record enable                 | Unknown                       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
1c | Unknown                       | Display brightness            | Unknown                       | GPS enable                    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
20 | SMS alert tone enable         | WFM monitor enable            | Unknown                       | Main channel B                |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
24 | Sub channel enable            | TBST frequency                | Call alert tone enable        | GPS time zone                 |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
28 | Talk permit tones             | DMR call reset tone enable    | DMR idle channel tone         | Menu exit time                |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
2c | Filter own ID in missed calls | Boot tone enable              | Show call end prompt          | Max. volume                   |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
30 | Remote stun & kill enable     | Remote monitor enable         | Get GPS position              | Long key-press duration       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
34 | Show volume bar               | Auto repeater mode A          | DMR monitor mode              | DMR monitor match CC          |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
38 | DMR monitor match ID          | DMR monitor slot hold         | Last caller display mode      | Unknown                       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
3c | Analog call hang time         | Show clock                    | Enable GPS template info      | Enhance sound                 |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
40 | UHF VFO scan minimum frequency in 10Hz, 32bit uint, little-endian                                                             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
44 | UHF VFO scan maximum frequency in 10Hz, 32bit uint, little-endian                                                             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
48 | VHF VFO scan minimum frequency in 10Hz, 32bit uint, little-endian                                                             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
4c | VHF VFO scan maximum frequency in 10Hz, 32bit uint, little-endian                                                             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
50 | Auto-repeater VHF min frequency in 10Hz, 32bit uint, litte-endian                                                             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
54 | Auto-repeater VHF max frequency in 10Hz, 32bit uint, litte-endian                                                             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
58 | Auto-repeater UHF min frequency in 10Hz, 32bit uint, litte-endian                                                             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
5c | Auto-repeater UHF max frequency in 10Hz, 32bit uint, litte-endian                                                             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
60 | Talk permit tone 1 frequency                                  | Talk permit tone 2 frequency                                  |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
64 | Talk permit tone 3 frequency                                  | Talk permit tone 4 frequency                                  |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
68 | Talk permit tone 5 frequency                                  | Talk permit tone 1 duration in 10ms, 16bit uint little endian |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
6c | Talk permit tone 2 duration in 10ms, 16bit uint little endian | Talk permit tone 3 duration in 10ms, 16bit uint little endian |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
70 | Talk permit tone 4 duration in 10ms, 16bit uint little endian | Talk permit tone 5 duration in 10ms, 16bit uint little endian |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
74 | Idle channel tone 1 freuency in Hz, 16bit uint little endian  | Idle channel tone 2 freuency in Hz, 16bit uint little endian  |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
78 | Idle channel tone 3 freuency in Hz, 16bit uint little endian  | Idle channel tone 4 freuency in Hz, 16bit uint little endian  |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
7c | Idle channel tone 5 freuency in Hz, 16bit uint little endian  | Idle channel tone 1 duration in 10ms 16bit uint little endian |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
80 | Idle channel tone 2 duration in 10ms 16bit uint little endian | Idle channel tone 3 duration in 10ms 16bit uint little endian |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
84 | Idle channel tone 4 duration in 10ms 16bit uint little endian | Idle channel tone 5 duration in 10ms 16bit uint little endian |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
88 | Call reset tone 1 freuency in Hz, 16bit uint little endian    | Call reset tone 2 freuency in Hz, 16bit uint little endian    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
8c | Call reset tone 3 freuency in Hz, 16bit uint little endian    | Call reset tone 4 freuency in Hz, 16bit uint little endian    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
90 | Call reset tone 5 freuency in Hz, 16bit uint little endian    | Call reset tone 1 duration in 10ms, 16bit uint little endian  |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
94 | Call reset tone 2 duration in 10ms, 16bit uint little endian  | Call reset tone 3 duration in 10ms, 16bit uint little endian  |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
98 | Call reset tone 4 duration in 10ms, 16bit uint little endian  | Call reset tone 5 duration in 10ms, 16bit uint little endian  |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
9c | Auto rep. offset index UHF    | Auto rep. offset index VHF    | Unknown                       | Priority zone A index         |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
a0 | Priority zone B index         | Unknown                       | Caller display mode           | Unknown                       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
a4 | Bluetooth enable              | BT + int microphone           | BT + int. speaker             | Plug-in recoding tone enable  |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
a8 | GPS Ranging interval          | BT mic gain [0,4]             | BT speaker gain [0,4]         | Channel number mode           |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
ac | Show current contact          | Auto-roaming interval         | Call sign color               | GPS units                     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
b0 |           |FKL|SkL| 0 |KbL|KnL| Auto-roaming wait             | Standby text color            | Standby background image      |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
b4 | Show last call on boot        | SMS format                    | Auto repeater mode B          | Send addr book with own code  |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
b8 | Boot channel enable           | Boot zone A index             | Boot zone B index             | Boot channel index A          |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
bc | Unknown                       | Roaming zone index            | Repeater check enable         | Repeater check interval       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
c0 | Repeater check recon. count   | Auto-roaming start condition  | Unknown                       | Show display separator        |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
c4 | Channel switch keep last call | Channel A name color          | Repeater out of range notif.  | Unknown                       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
c8 | Auto roaming enable           | P1 key short press            | P2 key short press            | P3 key short press            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
cc | P4 key short press            | P5 key short press            | P6 key short press            | PA key short press            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
d0 | PB key short press            | PC key short press            | PD key short press            | P1 key long press             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
d4 | P2 key long press             | P3 key long press             | P4 key long                   | P5 key long press             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
d8 | P6 key long press             | PA key long press             | PB key long press             | PC key long press             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
dc | PD key long press             | Unknown                       | Out of range notify count     | Transmit timeout rekey        |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
e0 | Unknown                                                       | BT hold time                  | BT RX delay                   |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
e4 | Unknown                                                                                                                       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
e8 | Unknown                                                                                                                       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
ec | Unknown                                                                                                                       |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

Where:
  Bluethooth settings:
    - BT hold time in seconds, 0=off (default), [off, 1, ..., 30, infinity].
    - BT RX delay stored in multiples of 0.5s, 0=0.5, 1=1.0s, 2=1.5s (default), ..., 10=5.5s.
  STE (squelch tail):
    - STE Type: 0=Off (default), 1=Silent, 2=120deg, 3=180deg, 4=240deg, 5=55Hz
    - STE when no signal: 0=Off (default), 1=55.2Hz, 2=259.2Hz
  WFM/Air band:
    - Air band/WFM enable: 0=Off (both, default), 1=WFM, 2=Air-band A, 3=Air-band B
    - WFM mode: 0=Channel (default), 1=VFO
    - Air band mode: 0=Channel (default), 1=VFO
    - Air band TX offset direction: 0=positive (default), 1=negative
    - Air band squelch: 0=Off (default), [1,5]
  Power save:
    - Auto shut-down delay: 0=off, 1=10m, 2=30min, 3=60min, 4=120min
  Key settings:
    - KnL: Knob lock enable.
    - KbL: Key-board lock enable.
    - SkL: Side-key lock enable.
    - FKL: Forced key lock enable.
    - Long key-press duration: 0=1s, 1=2s, ..., 4=5s
  Other:
    - Send addr book with own code: Sends ANI analog ID together with selected addr book ID.
    - Transmit timeout in multiples of 30s. 0=Off, 1=30s, ..., 8=240s
    - Transmit timeout rekey in seconds. 0=Off, 1=1s, ..., 255=255s.
    - VFO Frequency step: 0=2.5k, 1=5k, 2=6.25k, 3=8.33l, 4=10k, 5=12.5k, 6=20k, 7=25k, 8=30k, 9=50k.
    - Squelch level A/B: 0=Off, 1=1, ..., 5=5.
    - TBST frequency: 0=1000kHz, 1=1450kHz, 2=1750kHz, 3=2100kHz.
    - Analog call hang time in seconds, [0,30]
    - Priority zone A/B index 0xff=Off.
  DMR settings:
    - Group/private call hang time in seconds 1=1s, 2=2s, ..., 30=30s, 31=30min, 32=infinity.
    - Pre-wave delay in multiples of 20ms 0=0ms (default), 1=20ms, ..., 50=1000ms
    - Wake head period in multiples of 20ms 0=0ms (default), 1=20ms, ..., 60=1200ms
    - DMR monitor mode 0=Off, 1=Single slot, 2=Dual-slot.
    - SMS format: 0=Motorola (default), 1=Hytera, 2=DMR Standard
  Boot settings:
    - Boot display mode: 0=Default, 1=Custom text, 2=Custom image
    - Boot channel index A/B: Index within zone, 0xff = VFO
  Tone settings:
    - Talk permit tones: 0=None, 1=DMR, 2=FM, 3=Both
    - Key tones: 0=Off, 1=1, ..., 8=8, 9=With RX tone A, 10=With RX tone B
    - DMR idle channel tone: 0=Off, 1=Type 1, 2=Type 2, 3=Type 3.
  Display settings:
    - Display brightness 0=1, ..., 4=5
    - Menu exit time in multiples of 5s: 0=5s, 1=10s, ..., 11=60s
    - Last caller display mode: 0=Off, 1=Show ID, 2=Show Call, 3=Show both
    - Caller display mode: 0=Show name, 1=Show call
    - Callsign/Channel A/B name/ color: 0=Orange (default), 1=Red, 2=Yellow, 3=Green, 4=Turquoise, 5=Blue, 6=White
    - Standby text color: 0=White, 1=Black, 2=Orange, 3=Red, 4=Yellow, 5=Green, 6=Turquoise, 7=Blue
    - Channel number mode: 0=Channel number, 1=Channel index within zone.
    - Standby background image: 0=Default, 1=Custom image 1, 2=Custom image 2
  GPS settings:
    - GPS time zone: 00h=UTC-12:00, ..., 09h=UTC-3:30, 0Ah=UTC-3:00, ..., 0Dh=UTC, ..., 11h=UTC+3:30,
      12h=UTC+4:00, 13h=UTC+4:30, 14h=UTC+5:00, 15h=UTC+5:30, 16h=UTC+5:45, ..., 1Ah=UTC+8:30, ...,
      1Fh=UTC+13:00
    - GPS Ranging interval in seconds [5,255]
    - GPS units: 0=metric, 1=imperial
  Scan settings:
    - VFO scan type: 0=TO (fixed time, default), 1=CO (carrier), 2=SE (stop)
  Auto-repeater settings:
    - Auto repeater mode A/B: 0=Off, 1=positive, 2=negative
    - Auto rep. offset index UHF/VHF: index, 0xff=Off.
    - Repeater check interval in multiples of 5s: 0=5s, 1=10s, ..., 9=50
    - Repeater check recon. count 0=1, 1=2, 2=3
    - Repeater out of range notif.: 0=None, 1=Bell, 2=Voice
    - Out of range notify count: 0=1, 1=2, ..., 9=10.
    - Auto-roaming start condition: 0=time, 1=repeater out of range
    - Auto-roaming interval in minutes. 0=1min, 1=2min, ..., 255=256min.
    - Auto-roaming wait interval in seconds, 0=off, 1=1s, ...,
  Audio settings:
    - Max. volume: 0=Indoors (default), 1=1, ..., 8=8.
    - DMR mic. gain: 0=1 (default), ..., 4=5

Member Function Documentation

◆ defaultChannelAIndex()

unsigned D578UVCodeplug::GeneralSettingsElement::defaultChannelAIndex ( ) const
virtual

Returns the default channel index for VFO A.

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

Implements AnytoneCodeplug::GeneralSettingsElement.

◆ defaultChannelBIndex()

unsigned D578UVCodeplug::GeneralSettingsElement::defaultChannelBIndex ( ) const
virtual

Returns the default channel index for VFO B.

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

Implements AnytoneCodeplug::GeneralSettingsElement.

◆ setSTEFrequency()

void D578UVCodeplug::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 D578UVCodeplug::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: