libdrmconf 0.14.1
A library to program DMR radios.
Loading...
Searching...
No Matches
DM32UVCodeplug::GeneralSettingsElement Class Reference

Common settings block. More...

#include <dm32uv_codeplug.hh>

Inheritance diagram for DM32UVCodeplug::GeneralSettingsElement:
Collaboration diagram for DM32UVCodeplug::GeneralSettingsElement:

Classes

struct  Color
 Implements the translation between color names and code. More...
struct  KeyFunction
 Helper encoding/decoding key functions. More...
struct  Limit
 Some limits. More...
struct  Offset
 Some internal offsets. More...

Public Types

enum class  BootDisplay { Image =0 , Message =1 , Voltage =2 }
 Possible boot display settings.
enum class  AutoPowerOffDelay {
  Off = 0 , T30Min =1 , T60Min =2 , T2h =3 ,
  T4h =4 , T8h =5
}
 Possible auto-power-off delays.
enum class  FMRogerTone { Off =0 , Beep =1 , BDC =2 }
 Possible FM roger tones.
enum class  BacklightDuration {
  Infinity = 0 , T5s =1 , T10s =2 , T15s =3 ,
  T20s =4 , T25s =5 , T30s =6 , T1min =7 ,
  T2min =8 , T3min =9 , T4min =10 , T5min =11
}
 Possible settings for the backlight duration.
enum class  DateFormat { YYYYMMDD = 0 , DDMMYYYY = 1 }
 Possible date formats.
enum class  PositionFormat { DD = 0 , DMS = 1 }
 Possible position formats. More...
enum class  GNSSMode { GPS = 0 , Beidou = 1 , Both = 2 }
 GNSS modes.
enum class  RecordMode { RX = 0 , TX = 1 , Both = 2 }
 Possible recording modes.
enum class  SMSFormat { Hytera = 0 , Motorola = 1 , DMR = 2 }
 Possible SMS formats.
enum class  TalkerAliasFormat { ISO8 = 0 , UnicodeU16 = 1 }
 Talker alias formats.
enum class  TalkerAliasSource { CallsignDB = 0 , OverTheAir = 1 }
 Talker alias sources.
enum class  DualStandbyMode { SingleVFO = 0 , DoubleStandby = 1 , SingleStandby = 2 }
 Possible dual-standby modes.
enum class  VFO { A = 0 , B = 1 }
 VFO selection.
enum class  VFODisplayMode { Frequency = 0 , ChannelName = 1 }
 VFO display modes.
enum class  VFOMode { Channel = 0 , VFO = 1 }
 VFO Modes.
enum class  PowerSaveMode { Off =0 , Percent50 = 1 , Percent66 = 2 , Percent75 =3 }
 Possible power-save mode.
enum class  TBSTFrequency { Hz1000 =0 , Hz1450 =1 , Hz1750 =2 , Hz2100 =3 }
 Possible TBST frequencies.
enum class  STEMode { Off = 0 , Deg120 = 1 , Deg180 = 2 , Hz55 = 3 }
 Possible squelch tail-eliminations.

Public Member Functions

 GeneralSettingsElement (uint8_t *ptr)
 Constructor from pointer to element.
virtual BootDisplay bootDisplay () const
 Returns the boot display setting.
virtual void setBootDisplay (BootDisplay dis)
 Sets the boot display.
virtual QString bootMessage1 () const
 Returns the first boot message line.
virtual void setBootMessage1 (const QString &msg)
 Sets the first boot message line.
virtual QString bootMessage2 () const
 Returns the second boot message line.
virtual void setBootMessage2 (const QString &msg)
 Sets the second boot message line.
virtual bool mcuResetEnabled () const
 Returns true if MCU reset is enabled.
virtual void enableMCUReset (bool enable)
 Enables MCU reset.
virtual Interval autoPowerOffDelay () const
 Returns the auto-power-off delay.
virtual void setAutoPowerOffDelay (const Interval &delay)
 Sets the auto-power-off delay.
virtual bool radioSilentEnabled () const
 Returns true if all tones are disabled.
virtual void enableRadioSilent (bool enable)
 Disables all tones.
virtual bool keyToneEnabled () const
 Returns true if key tones are enabled.
virtual void enableKeyTone (bool enable)
 Enables key tones.
virtual bool smsToneEnabled () const
 Returns true if sms tones are enabled.
virtual void enableSMSTone (bool enable)
 Enables sms tones.
virtual bool groupCallToneEnabled () const
 Returns true if group call tone is enabled.
virtual void enableGroupCallTone (bool enable)
 Enables group call tones.
virtual bool privateCallToneEnabled () const
 Returns true if private call tone is enabled.
virtual void enablePrivateCallTone (bool enable)
 Enables group call tones.
virtual bool eotToneEnabled () const
 Returns true if EOT tone is enabled.
virtual void enableEOTTone (bool enable)
 Enables EOT tones.
virtual bool talkPermitToneEnabled () const
 Returns true if talk permit tone is enabled.
virtual void enableTalkPermitTone (bool enable)
 Enables talk permit tones.
virtual bool bootToneEnabled () const
 Returns true if boot tone is enabled.
virtual void enableBootTone (bool enable)
 Enables boot tones.
virtual bool voicePromptEnabled () const
 Returns true if voice prompt is enabled.
virtual void enableVoicePrompt (bool enable)
 Enables voice prompt.
virtual bool lowBatteryToneEnabled () const
 Returns true if low-battery tone is enabled.
virtual void enableLowBatteryTone (bool enable)
 Enables low-battery tones.
virtual FMRogerTone fmRogerTone () const
 Returns the FM roger tone setting.
virtual void setFMRogerTone (FMRogerTone tone)
 Sets the FM roger tone.
virtual unsigned int displayBrightness () const
 Returns the display brightness setting [0-10].
virtual void setDisplayBrightness (unsigned int n)
 Sets the display brightness [0-10].
virtual Interval backlightDuration () const
 Returns the backlight duration.
virtual void setBacklightDuration (Interval duration)
 Sets the backlight duration.
virtual Interval menuDuration () const
 Returns the menu hold time.
virtual void setMenuDuration (Interval duration)
 Sets the menu hold time.
virtual bool showVolmueChange () const
 Returns true if the volume change prompt is shown.
virtual void enableShowVolumeChange (bool enable)
 Enable volume change prompt.
virtual DateFormat dateFormat () const
 Returns the date format.
virtual void setDateFormat (DateFormat format)
 Sets the date format.
virtual bool showClock () const
 Returns true if the clock is shown.
virtual void enableShowClock (bool enable)
 Enable clock.
virtual Color::Code callColor () const
 Returns the call color.
virtual void setCallColor (Color::Code c)
 Sets the call color.
virtual Color::Code standbyColor () const
 Returns the standby text color.
virtual void setStandbyColor (Color::Code c)
 Sets the standby text color.
virtual Color::Code channelNameAColor () const
 Returns the channel name A color.
virtual void setChannelNameAColor (Color::Code c)
 Sets the channel name A color.
virtual Color::Code channelNameBColor () const
 Returns the channel name B color.
virtual void setChannelNameBColor (Color::Code c)
 Sets the channel name B color.
virtual Color::Code zoneNameAColor () const
 Returns the zone name A color.
virtual void setZoneNameAColor (Color::Code c)
 Sets the zone name A color.
virtual Color::Code zoneNameBColor () const
 Returns the zone name B color.
virtual void setZoneNameBColor (Color::Code c)
 Sets the zone name B color.
virtual PositionFormat positionFormat () const
 Returns the position display format.
virtual void setPositionFormat (PositionFormat format)
 Sets the position display format.
virtual GNSSSettings::Systems gnss () const
 Returns the GNSS mode.
virtual void setGNSS (GNSSSettings::Systems mode)
 Sets the GNSS mode.
virtual bool gnssEnabled () const
 Returns true if GNSS is enabled.
virtual void enableGNSS (bool enable)
 Enables GNSS.
virtual QTimeZone timeZone () const
 Returns the time zone.
virtual void setTimeZone (const QTimeZone &timeZone)
 Sets the timezone.
virtual Interval posUpdatePeriod () const
 Returns the position update period.
virtual void setPosUpdatePeriod (const Interval &period)
 Sets the position update period.
virtual RecordMode recordMode () const
 Returns possible recording modes.
virtual void setRecordMode (RecordMode mode)
 Sets the record mode.
virtual bool recordingEnabled () const
 Returns true if recording is enabled.
virtual void enableRecording (bool enable)
 Enables/disables recording.
virtual bool groupCallMatchEnabled () const
 Returns true if group call must match.
virtual void enableGroupCallMatch (bool enable)
 Enables group call match.
virtual bool privateCallMatchEnabled () const
 Returns true if private call must match.
virtual void enablePrivateCallMatch (bool enable)
 Enables private call match.
virtual Interval dmrCallHangTime () const
 Returns the DMR call hang time.
virtual void setDMRCallHangTime (const Interval &hangTime)
 Sets the DMR call hang time.
virtual Interval activeWaitTime () const
 Returns the active wait time.
virtual void setActiveWaitTime (Interval waitTime)
 Sets the active wait time.
virtual unsigned int activeRetries () const
 Returns the number of active retries.
virtual void setActiveRetries (unsigned int retries)
 Sets the number of active retires.
virtual Interval dmrPreambleDuration () const
 Retruns the DMR preamble duration.
virtual void setDmrPreambleDuration (Interval duration)
 Sets the DMR preamble duration.
virtual bool dmrRemoteMonitorEnabled () const
 Returns true if the DMR remote monitor is enabled.
virtual void enableDMRRemoteMonitor (bool enable)
 Enables the remote monitor.
virtual bool dmrRemoteKillEnabled () const
 Returns true if the remote kill switch is enabled.
virtual void enableDMRRemoteKill (bool enable)
 Enables the remote kill swtich.
virtual bool dmrRemoteRadioCheckEnabled () const
 Returns true if the remote radio check is enabled.
virtual void enableDMRRemoteRadioCheck (bool enable)
 Enables remote radio check.
virtual bool dmrRemoteReenableEnabled () const
 Returns true if the remote reenable is enabled.
virtual void enableDMRRemoteReenable (bool enable)
 Enables DMR remote reenable.
virtual bool dmrRXAlertEnabled () const
 Returns true reception of DMR alerts is enabled.
virtual void enableDMRRXAlert (bool enable)
 Enables enables reception of DMR alerts.
virtual SMSExtension::Format smsFormat () const
 Returns the DMR SMS format.
virtual void setSMSFormat (SMSExtension::Format format)
 Sets the DMR SMS format.
virtual bool missedCallNotificationEnabled () const
 Retruns true missed call notification is enabled.
virtual void enableMissedCallNotification (bool enable)
 Enables missed call notification.
virtual Interval dmrRemoteMonitorDuration () const
 Returns the remote monitor duration.
virtual void setDMRRemoteMonitorDuration (Interval duration)
 Sets the remote monitor duration.
virtual DMRSettings::TalkerAliasEncoding talkerAliasEncoding () const
 Returns the talker alias format.
virtual void setTalkerAliasEncoding (DMRSettings::TalkerAliasEncoding format)
 Sets the talker alias format.
virtual bool txTalkerAliasEnabled () const
 Returns true, if transmission of talker alias is enabled.
virtual void enableTXTalkerAlias (bool enable)
 Enables transmission of talker alias.
virtual TalkerAliasSource talkerAliasSource () const
 Returns the talker alias source.
virtual void setTalkerAliasSource (TalkerAliasSource source)
 Sets the talker alias source.
virtual DualStandbyMode dualStandbyMode () const
 Returns the dual-standby mode.
virtual void setDualStandbyMode (DualStandbyMode mode)
 Sets the dual-standby mode.
virtual VFO mainVFO () const
 Returns the main VFO.
virtual void setMainVFO (VFO mainVFO)
 Sets the main VFO.
virtual VFODisplayMode vfoDisplayModeA () const
 Returns the VFO A display mode.
virtual void setVFODisplayModeA (VFODisplayMode mode)
 Sets the VFO A display mode.
virtual VFODisplayMode vfoDisplayModeB () const
 Returns the VFO B display mode.
virtual void setVFODisplayModeB (VFODisplayMode mode)
 Sets the VFO B display mode.
virtual VFOMode vfoModeA () const
 Returns the VFO A mode.
virtual void setVFOModeA (VFOMode mode)
 Sets the VFO A mode.
virtual VFOMode vfoModeB () const
 Returns the VFO B mode.
virtual void setVFOModeB (VFOMode mode)
 Sets the VFO B mode.
virtual bool vfoModeDisabled () const
 Returns true if VFO modes are disabled.
virtual void disableVFOMode (bool enable)
 Disables VFO modes.
virtual Interval dualStandbyHangTime () const
 Returns the dual-standby hang-time.
virtual void setDualStandbyHangTime (Interval hangTime)
 Sets the dual-standby hang-time.
virtual bool sideKeyLockEnabled () const
 Returns true if the side keys are locked.
virtual void enableSideKeyLock (bool enable)
 Enable side key lock.
virtual bool knobLockEnabled () const
 Returns true, if the knowb is locked.
virtual void enableKnobLock (bool enable)
 Enables the knob lock.
virtual Interval autoKeyLockDelay () const
 Returns the auto key-lock delay.
virtual void setAutoKeyLockDelay (Interval delay)
 Sets the auto key-lock delay.
virtual KeyFunction::Function sk1Short () const
 Returns the side-key 1 short-press function.
virtual void setSK1Short (KeyFunction::Function function)
 Sets the side-key 1 short-press function.
virtual KeyFunction::Function sk1Long () const
 Returns the side-key 1 long-press function.
virtual void setSK1Long (KeyFunction::Function function)
 Sets the side-key 1 long-press function.
virtual KeyFunction::Function sk2Short () const
 Returns the side-key 2 short-press function.
virtual void setSK2Short (KeyFunction::Function function)
 Sets the side-key 2 short-press function.
virtual KeyFunction::Function sk2Long () const
 Returns the side-key 2 long-press function.
virtual void setSK2Long (KeyFunction::Function function)
 Sets the side-key 2 long-press function.
virtual KeyFunction::Function p1Short () const
 Returns the programmable key 1 short-press function.
virtual void setP1Short (KeyFunction::Function function)
 Sets the programmable key 1 short-press function.
virtual KeyFunction::Function p1Long () const
 Returns the programmable key 1 long-press function.
virtual void setP1Long (KeyFunction::Function function)
 Sets the programmable key 1 long-press function.
virtual KeyFunction::Function p2Short () const
 Returns the programmable key 2 short-press function.
virtual void setP2Short (KeyFunction::Function function)
 Sets the programmable key 2 short-press function.
virtual KeyFunction::Function p2Long () const
 Returns the programmable key 2 long-press function.
virtual void setP2Long (KeyFunction::Function function)
 Sets the programmable key 2 long-press function.
virtual Interval longPressDuration () const
 Returns the long-press duration.
virtual void setLongPressDuration (Interval duration)
 Sets the long-press duration.
virtual Interval transmitTimeout () const
 Returns the transmit timeout.
virtual void setTransmitTimeout (Interval timeout)
 Sets transmit timeout.
virtual Interval transmitTimeoutReminder () const
 Returns the transmit timeout reminder.
virtual void setTransmitTimeoutReminder (Interval timeout)
 Sets transmit timeout reminder.
virtual Level voxLevel () const
 Returns the VOX level.
virtual void setVOXLevel (Level voxLevel)
 Sets the VOX level.
virtual Interval voxDelay () const
 Retruns the VOX delay.
virtual void setVoxDelay (Interval delay)
 Sets the VOX delay.
virtual PowerSaveMode powerSaveMode () const
 Returns the power-save mode.
virtual void setPowerSaveMode (PowerSaveMode mode)
 Sets the power-save mode.
virtual bool weatherAlarmEnabled () const
 Returns true, if the NOAA weather alarm is enabled.
virtual void enableWeatherAlarm (bool enable)
 Enables the NOAA weather alarm.
virtual bool allLEDsDisabled () const
 Returns true if all LEDs are disabled.
virtual void disableAllLEDs (bool disable)
 Disables all LEDs.
virtual Frequency tbstFrequency () const
 Returns the TBST frequency.
virtual void setTBSTFrequency (const Frequency &frequency)
 Sets the TBST frequency.
virtual STEMode steMode () const
 Returns the squelch tail elimination mode.
virtual void setSTEMode (STEMode mode)
 Sets the STE mode.
virtual Level fmMicLevel () const
 Returns the FM mic level.
virtual void setFMMicLevel (Level level)
 Sets the FM mic level.
virtual Level dmrMicLevel () const
 Returns the DMR mic level.
virtual void setDMRMicLevel (Level level)
 Sets the DMR mic level.
virtual bool decode (Context &ctx, const ErrorStack &err=ErrorStack())
 Decodes the general settings.
virtual bool encode (Context &ctx, const ErrorStack &err=ErrorStack())
 Encode general settings.
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.
virtual void clear ()
 Abstract method to reset the element within the codeplug.
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::Bit &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::Bit &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.
void clearBit (const Offset::Bit &offset)
 Clears a specific bit.
uint8_t getUInt2 (const Offset::Bit &offset) const
 Reads a 2bit unsigned integer at the given bit-offset.
uint8_t getUInt2 (unsigned offset, unsigned bit) const
 Reads a 2bit unsigned integer at the given byte- and bit-offset.
void setUInt2 (const Offset::Bit &offset, uint8_t value)
 Stores a 2bit unsigned integer at the given 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 (const Offset::Bit &offset) const
 Reads a 3bit unsigned integer at the given bit-offset.
uint8_t getUInt3 (unsigned offset, unsigned bit) const
 Reads a 3bit unsigned integer at the given byte- and bit-offset.
void setUInt3 (const Offset::Bit &offset, uint8_t value)
 Stores a 3bit unsigned integer at the given 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 (const Offset::Bit &offset) const
 Reads a 4bit unsigned integer at the given bit-offset.
uint8_t getUInt4 (unsigned offset, unsigned bit) const
 Reads a 4bit unsigned integer at the given byte- and bit-offset.
void setUInt4 (const Offset::Bit &offset, uint8_t value)
 Stores a 4bit unsigned integer at the given 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 (const Offset::Bit &offset) const
 Reads a 5bit 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 (const Offset::Bit &offset, uint8_t value)
 Stores a 5bit unsigned integer at the given byte- and bit-offset.
void setUInt5 (unsigned offset, unsigned bit, uint8_t value)
 Stores a 5bit unsigned integer at the given byte- and bit-offset.
uint8_t getUInt6 (const Offset::Bit &offset) const
 Reads a 6bit unsigned integer 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 (const Offset::Bit &offset, uint8_t value)
 Stores 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.
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.

Static Public Member Functions

static constexpr unsigned int size ()
 Returns the size og the element.

Additional Inherited Members

Protected Member Functions inherited from Codeplug::Element
 Element (uint8_t *ptr, size_t size)
 Hidden constructor.
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

Common settings block.

Member Enumeration Documentation

◆ PositionFormat

Possible position formats.

Enumerator
DD 

Decimal degree.

DMS 

Degree, minute, second.

Member Function Documentation

◆ autoKeyLockDelay()

Interval DM32UVCodeplug::GeneralSettingsElement::autoKeyLockDelay ( ) const
virtual

Returns the auto key-lock delay.

If set to infinity, auto key-lock is disabled.

◆ setAutoKeyLockDelay()

void DM32UVCodeplug::GeneralSettingsElement::setAutoKeyLockDelay ( Interval delay)
virtual

Sets the auto key-lock delay.

If set to infinity, the auto key-lock is disabled.

◆ setTransmitTimeout()

void DM32UVCodeplug::GeneralSettingsElement::setTransmitTimeout ( Interval timeout)
virtual

Sets transmit timeout.

If set to infinity, the tot is disabled.

◆ setTransmitTimeoutReminder()

void DM32UVCodeplug::GeneralSettingsElement::setTransmitTimeoutReminder ( Interval timeout)
virtual

Sets transmit timeout reminder.

If set to 0 disabled.

◆ transmitTimeout()

Interval DM32UVCodeplug::GeneralSettingsElement::transmitTimeout ( ) const
virtual

Returns the transmit timeout.

If infinite, the transmit timeout is disabled.

◆ transmitTimeoutReminder()

Interval DM32UVCodeplug::GeneralSettingsElement::transmitTimeoutReminder ( ) const
virtual

Returns the transmit timeout reminder.

If 0 disabled.


The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/qdmr-0.14.1-build/qdmr-0.14.1/lib/dm32uv_codeplug.hh
  • /builddir/build/BUILD/qdmr-0.14.1-build/qdmr-0.14.1/lib/dm32uv_codeplug.cc