|
libdrmconf 0.13.3
A library to program DMR radios.
|
Represents the actual channel encoded within the binary code-plug. More...
#include <d578uv_codeplug.hh>


Classes | |
| struct | Offset |
| Internal offsets within the channel element. More... | |
Public Types | |
| enum class | FMScramblerFrequency { Off = 0 , Hz3300 = 1 , Hz3200 = 2 , Hz3100 = 3 , Hz3000 = 4 , Hz2900 = 5 , Hz2800 = 6 , Hz2700 = 7 , Hz2600 = 8 , Hz2500 = 9 , Hz4095 = 10 , Hz3458 = 11 , Custom = 12 } |
| Possible FM scrambler carrier frequencies. | |
| enum class | InterruptPriority { None = 0 , Low = 1 , High = 2 } |
| Possible interrupt priorities. | |
Public Types inherited from D878UVCodeplug::ChannelElement | |
| enum class | PTTId { Off = 0 , Start = 1 , End = 2 , Both = 3 } |
| Possible PTT ID settings. More... | |
| enum class | APRSType { Off = 0 , FM = 1 , DMR = 2 } |
| Possible APRS modes. | |
| enum class | APRSPTT { Off = 0 , Start = 1 , End = 2 } |
| Defines all possible APRS PTT settings. More... | |
| enum class | AdvancedEncryptionType { AES , ARC4 } |
| Possible encryption types. | |
Public Types inherited from D868UVCodeplug::ChannelElement | |
| enum class | DMREncryptionType { Basic = 0 , Enhanced = 1 } |
| Possible encryption types. | |
| enum class | APRSType { Off = 0 , DMR = 1 } |
| Possible APRS modes. | |
Public Types inherited from AnytoneCodeplug::ChannelElement | |
| enum class | Mode { Analog = 0 , Digital = 1 , MixedAnalog = 2 , MixedDigital = 3 } |
Defines all possible channel modes, see channelMode. More... | |
| enum | Power { POWER_LOW = 0 , POWER_MIDDLE = 1 , POWER_HIGH = 2 , POWER_TURBO = 3 } |
| Defines all possible power settings. More... | |
| enum class | RepeaterMode { Simplex = 0 , Positive = 1 , Negative = 2 } |
| Defines all possible repeater modes. More... | |
| enum class | SignalingMode { None = 0 , CTCSS = 1 , DCS = 2 } |
| Possible analog signaling modes. More... | |
| enum class | Admit { Always = 0 , Free = 1 , DifferentColorCode = 2 , SameColorCode = 3 , Tone = 1 , Busy = 2 } |
| Defines possible admit criteria. More... | |
| enum class | OptSignaling { Off = 0 , DTMF = 1 , TwoTone = 2 , FiveTone = 3 } |
| Defines all possible optional signalling settings. More... | |
Public Member Functions | |
| ChannelElement (uint8_t *ptr) | |
| Constructor. | |
| virtual bool | frequenciesSwapped () const |
Returns true, if the RX and TX frequencies (and signaling) are swapped. | |
| virtual void | enableSwapFrequencies (bool enable) |
Returns true, if the RX and TX frequencies (and signaling) are swapped. | |
| virtual bool | bluetoothEnabled () const |
Returns true if bluetooth hands-free is enabled. | |
| virtual void | enableBluetooth (bool enable) |
| Enables/disables hands-free. | |
| bool | roamingEnabled () const override |
Returns true if roaming is enabled. | |
| void | enableRoaming (bool enable) override |
| Enables/disables roaming. | |
| virtual InterruptPriority | interruptPriority () const |
| Returns the interrupt priority. | |
| virtual void | setInterruptPriority (InterruptPriority pri) |
| Sets the interrupt priority. | |
| virtual bool | noiseReductionEnabled () const |
Returns true if noise reduction is enabled. | |
| virtual void | enableNoiseReduction (bool enable) |
| Enables/disables noise reduction. | |
| bool | multipleKeyEncryption () const override |
Returns true if multiple key encryption is enabled. | |
| void | enableMultipleKeyEncryption (bool enable) override |
| Enables/disables multiple key encryption. | |
| bool | randomKey () const override |
Returns true if random key is enabled. | |
| void | enableRandomKey (bool enable) override |
| Enables/disables random key. | |
| bool | sms () const override |
Returns true if SMS is enabled. | |
| void | enableSMS (bool enable) override |
| Enables/disables SMS. | |
| bool | dataACK () const override |
Returns true if data ACK is enabled. | |
| void | enableDataACK (bool enable) override |
| Enables/disables data ACK. | |
| bool | autoScan () const override |
Returns true, if auto scan is enabled. | |
| void | enableAutoScan (bool enable) override |
| Enable/disable auto scan. | |
| bool | sendTalkerAlias () const override |
| If set, transmission of talker alias for this channel is enabled. | |
| void | enableSendTalkerAlias (bool enable) override |
| Enable transmission of talker alias. | |
| AdvancedEncryptionType | advancedEncryptionType () const override |
| Returns the encryption type. | |
| void | setEncryptionType (AdvancedEncryptionType type) override |
| Sets the encryptionType. | |
| virtual bool | analogScamblerEnabled () const |
Returns true if the analog scambler is enabled. | |
| virtual Frequency | analogScramblerFrequency () const |
| If enabled, returns the analog scrambler frequency. | |
| virtual void | setAnalogScamberFrequency (Frequency f) |
| Sets the analog scambler frequency and enables the scrambler. | |
| virtual void | clearAnalogScambler () |
| Disables the scambler. | |
| unsigned int | fmAPRSFrequencyIndex () const override |
| Returns the index of the FM APRS frequency [0,7]. | |
| void | setFMAPRSFrequencyIndex (unsigned int idx) override |
| Sets the FM APRS frequency index [0,7]. | |
| bool | hasARC4EncryptionKeyIndex () const override |
Returns true, if an ARC4 encryption key index is set. | |
| unsigned int | arc4EncryptionKeyIndex () const override |
| Returns the ARC4 encryption key index. | |
| void | setARC4EncryptionKeyIndex (unsigned int index) override |
| Sets the ARC4 encryption key index. | |
| void | clearARC4EncryptionKeyIndex () override |
| Clears the ARC4 encryption key index. | |
| bool | ctcssPhaseReversal () const override |
| Removed from D578UV codeplug. | |
| void | enableCTCSSPhaseReversal (bool enable) override |
| Removed from D578UV codeplug. | |
| Channel * | toChannelObj (Context &ctx) const override |
Constructs a generic Channel object from the codeplug channel. | |
| bool | fromChannelObj (const Channel *ch, Context &ctx) override |
| Initializes this codeplug channel from the given generic configuration. | |
Public Member Functions inherited from D878UVCodeplug::ChannelElement | |
| ChannelElement (uint8_t *ptr) | |
| Constructor. | |
| void | clear () override |
| Resets the channel. | |
| virtual PTTId | pttIDSetting () const |
| Returns the PTT ID settings. | |
| virtual void | setPTTIDSetting (PTTId ptt) |
| Sets the PTT ID setting. | |
| bool | dataACK () const override |
Returns true if the data ACK is enabled. | |
| void | enableDataACK (bool enable) override |
| Enables/disables data ACK. | |
| APRSType | txAPRSType () const |
| Returns APRS type for reporting the position. | |
| void | setTXAPRSType (APRSType aprsType) |
| Sets APRS type for reporting the position. | |
| virtual AnytoneChannelExtension::APRSPTT | analogAPRSPTTSetting () const |
| Returns the analog APRS PTT setting. | |
| virtual void | setAnalogAPRSPTTSetting (AnytoneChannelExtension::APRSPTT ptt) |
| Sets the analog APRS PTT setting. | |
| virtual AnytoneChannelExtension::APRSPTT | digitalAPRSPTTSetting () const |
| Returns the digital APRS PTT setting. | |
| virtual void | setDigitalAPRSPTTSetting (AnytoneChannelExtension::APRSPTT ptt) |
| Sets the digital APRS PTT setting. | |
| unsigned | digitalAPRSSystemIndex () const override |
| Returns the DMR APRS system index. | |
| void | setDigitalAPRSSystemIndex (unsigned idx) override |
| Sets the DMR APRS system index. | |
| virtual int | frequenyCorrection () const |
| Returns the frequency correction in ???. | |
| virtual void | setFrequencyCorrection (int corr) |
| Sets the frequency correction in ???. | |
| virtual bool | hasAESEncryptionKeyIndex () const |
Returns true, if an AES encryption key index is set. | |
| virtual unsigned int | aesEncryptionKeyIndex () const |
| Returns the AES encryption key index. | |
| virtual void | setAESEncryptionKeyIndex (unsigned int index) |
| Sets the AES encryption key index. | |
| virtual void | clearAESEncryptionKeyIndex () |
| Clears the AES encryption key index. | |
| DMREncryptionType | dmrEncryptionType () const override |
| Returns the encryption type. | |
| void | setDMREncryptionType (DMREncryptionType type) override |
| Sets the encryption type. | |
| bool | hasDMREncryptionKeyIndex () const override |
Returns true if a DMR encryption key is set. | |
| unsigned | dmrEncryptionKeyIndex () const override |
| Returns the DMR encryption key index (+1), 0=Off. | |
| void | setDMREncryptionKeyIndex (unsigned idx) override |
| Sets the DMR encryption key index (+1), 0=Off. | |
| void | clearDMREncryptionKeyIndex () override |
| Clears the DMR encryption key index. | |
| Channel * | toChannelObj (Context &ctx) const override |
| Constructs a Channel object from this element. | |
| bool | linkChannelObj (Channel *c, Context &ctx) const override |
| Links a previously created channel object. | |
| bool | fromChannelObj (const Channel *c, Context &ctx) override |
| Encodes the given channel object. | |
Public Member Functions inherited from D868UVCodeplug::ChannelElement | |
| ChannelElement (uint8_t *ptr) | |
| Constructor. | |
| virtual bool | ranging () const |
Returns true if ranging is enabled. | |
| virtual void | enableRanging (bool enable) |
| Enables/disables ranging. | |
| virtual bool | throughMode () const |
Returns true if through mode is enabled. | |
| virtual void | enableThroughMode (bool enable) |
| Enables/disables though mode. | |
| APRSType | txAPRSType () const |
| Returns APRS type for reporting the position. | |
| void | setTXAPRSType (APRSType aprsType) |
| Sets APRS type for reporting the position. | |
Public Member Functions inherited from AnytoneCodeplug::ChannelElement | |
| ChannelElement (uint8_t *ptr) | |
| Constructor. | |
| virtual | ~ChannelElement () |
| Destructor. | |
| virtual unsigned | rxFrequency () const |
| Returns the RX frequency in Hz. | |
| virtual void | setRXFrequency (unsigned hz) |
| Sets the RX frequency in Hz. | |
| virtual unsigned | txOffset () const |
| Returns the TX frequency offset in Hz. | |
| virtual void | setTXOffset (unsigned hz) |
| Sets the TX frequency offset in Hz. | |
| virtual unsigned | txFrequency () const |
| Returns the TX frequency in Hz. | |
| virtual void | setTXFrequency (unsigned hz) |
| Sets the TX frequency indirectly. | |
| virtual Mode | mode () const |
| Returns the channel mode (analog, digtital, etc). | |
| virtual void | setMode (Mode mode) |
| Sets the channel mode. | |
| virtual Channel::Power | power () const |
| Returns the channel power. | |
| virtual void | setPower (Channel::Power power) |
| Sets the channel power. | |
| virtual FMChannel::Bandwidth | bandwidth () const |
| Returns the band width of the channel. | |
| virtual void | setBandwidth (FMChannel::Bandwidth bw) |
| Sets the band width of the channel. | |
| virtual RepeaterMode | repeaterMode () const |
| Returns the transmit offset direction. | |
| virtual void | setRepeaterMode (RepeaterMode mode) |
| Sets the transmit offset direction. | |
| virtual SignalingMode | rxSignalingMode () const |
| Returns the RX signaling mode. | |
| virtual void | setRXSignalingMode (SignalingMode mode) |
| Sets the RX signaling mode. | |
| virtual SelectiveCall | rxTone () const |
| Simplified access to RX signaling (tone). | |
| virtual void | setRXTone (const SelectiveCall &code) |
| Sets the RX signaling (tone). | |
| virtual SignalingMode | txSignalingMode () const |
| Returns the TX signaling mode. | |
| virtual void | setTXSignalingMode (SignalingMode mode) |
| Sets the TX signaling mode. | |
| virtual SelectiveCall | txTone () const |
| Simplified access to TX signaling (tone). | |
| virtual void | setTXTone (const SelectiveCall &code) |
| Sets the RX signaling (tone). | |
| virtual bool | rxOnly () const |
Returns true if the RX only is enabled. | |
| virtual void | enableRXOnly (bool enable) |
| Enables/disables RX only. | |
| virtual bool | callConfirm () const |
Returns true if the call confirm is enabled. | |
| virtual void | enableCallConfirm (bool enable) |
| Enables/disables call confirm. | |
| virtual bool | talkaround () const |
Returns true if the talkaround is enabled. | |
| virtual void | enableTalkaround (bool enable) |
| Enables/disables talkaround. | |
| virtual bool | txCTCSSIsCustom () const |
Returns true if the TX CTCSS tone frequency is custom (non standard). | |
| virtual SelectiveCall | txCTCSS () const |
| Returns the TX CTCSS tone. | |
| virtual void | setTXCTCSS (const SelectiveCall &tone) |
| Sets the TX CTCSS tone. | |
| virtual void | enableTXCustomCTCSS () |
| Enables TX custom CTCSS frequency. | |
| virtual bool | rxCTCSSIsCustom () const |
Returns true if the RX CTCSS tone frequency is custom (non standard). | |
| virtual SelectiveCall | rxCTCSS () const |
| Returns the RX CTCSS tone. | |
| virtual void | setRXCTCSS (const SelectiveCall &tone) |
| Sets the RX CTCSS tone. | |
| virtual void | enableRXCustomCTCSS () |
| Enables RX custom CTCSS frequency. | |
| virtual SelectiveCall | txDCS () const |
| Returns the TX DCS code. | |
| virtual void | setTXDCS (const SelectiveCall &code) |
| Sets the TX DCS code. | |
| virtual SelectiveCall | rxDCS () const |
| Returns the RX DCS code. | |
| virtual void | setRXDCS (const SelectiveCall &code) |
| Sets the RX DCS code. | |
| virtual double | customCTCSSFrequency () const |
| Returns the custom CTCSS frequency in Hz. | |
| virtual void | setCustomCTCSSFrequency (double hz) |
| Sets the custom CTCSS frequency in Hz. | |
| virtual unsigned | twoToneDecodeIndex () const |
| Returns the 2-tone decode index (0-based). | |
| virtual void | setTwoToneDecodeIndex (unsigned idx) |
| Sets the 2-tone decode index (0-based). | |
| virtual unsigned | contactIndex () const |
| Returns the transmit contact index (0-based). | |
| virtual void | setContactIndex (unsigned idx) |
| Sets the transmit contact index (0-based). | |
| virtual unsigned | radioIDIndex () const |
| Returns the radio ID index (0-based). | |
| virtual void | setRadioIDIndex (unsigned idx) |
| Sets the radio ID index (0-based). | |
| virtual AnytoneFMChannelExtension::SquelchMode | squelchMode () const |
Returns true if the sequelch is silent and false if open. | |
| virtual void | setSquelchMode (AnytoneFMChannelExtension::SquelchMode mode) |
| Enables/disables silent squelch. | |
| virtual Admit | admit () const |
| Returns the admit criterion. | |
| virtual void | setAdmit (Admit admit) |
| Sets the admit criterion. | |
| virtual OptSignaling | optionalSignaling () const |
| Returns the optional signalling type. | |
| virtual void | setOptionalSignaling (OptSignaling sig) |
| Sets the optional signaling type. | |
| virtual bool | hasScanListIndex () const |
Returns true, if a scan list index is set. | |
| virtual unsigned | scanListIndex () const |
| Returns the scan list index (0-based). | |
| virtual void | setScanListIndex (unsigned idx) |
| Sets the scan list index (0-based). | |
| virtual void | clearScanListIndex () |
| Clears the scan list index. | |
| virtual bool | hasGroupListIndex () const |
Returns true, if a group list index is set. | |
| virtual unsigned | groupListIndex () const |
| Returns the scan list index (0-based). | |
| virtual void | setGroupListIndex (unsigned idx) |
| Sets the group list index (0-based). | |
| virtual void | clearGroupListIndex () |
| Clears the group list index. | |
| virtual unsigned | twoToneIDIndex () const |
| Returns the two-tone ID index (0-based). | |
| virtual void | setTwoToneIDIndex (unsigned idx) |
| Sets the two-tone ID index (0-based). | |
| virtual unsigned | fiveToneIDIndex () const |
| Returns the five-tone ID index (0-based). | |
| virtual void | setFiveToneIDIndex (unsigned idx) |
| Sets the five-tone ID index (0-based). | |
| virtual unsigned | dtmfIDIndex () const |
| Returns the DTFM ID index (0-based). | |
| virtual void | setDTMFIDIndex (unsigned idx) |
| Sets the DTMF ID index (0-based). | |
| virtual unsigned | colorCode () const |
| Returns the color code. | |
| virtual void | setColorCode (unsigned code) |
| Sets the color code. | |
| virtual DMRChannel::TimeSlot | timeSlot () const |
| Returns the time slot. | |
| virtual void | setTimeSlot (DMRChannel::TimeSlot ts) |
| Sets the time slot. | |
| virtual bool | smsConfirm () const |
Returns true if SMS confirmation is enabled. | |
| virtual void | enableSMSConfirm (bool enable) |
| Enables/disables SMS confirmation. | |
| virtual bool | simplexTDMA () const |
Returns true if simplex TDMA is enabled. | |
| virtual void | enableSimplexTDMA (bool enable) |
| Enables/disables simplex TDMA confirmation. | |
| virtual bool | adaptiveTDMA () const |
Returns true if adaptive TDMA is enabled. | |
| virtual void | enableAdaptiveTDMA (bool enable) |
| Enables/disables adaptive TDMA. | |
| virtual bool | rxAPRS () const |
Returns true if RX APRS is enabled. | |
| virtual void | enableRXAPRS (bool enable) |
| Enables/disables RX APRS. | |
| virtual bool | loneWorker () const |
Returns true if lone worker is enabled. | |
| virtual void | enableLoneWorker (bool enable) |
| Enables/disables lone worker. | |
| virtual QString | name () const |
| Returns the channel name. | |
| virtual void | setName (const QString &name) |
| Sets the channel name. | |
Public Member Functions inherited from Codeplug::Element | |
| Element (const Element &other) | |
| Copy constructor. | |
| virtual | ~Element () |
| Destructor. | |
| Element & | operator= (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::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. | |
Protected Member Functions | |
| ChannelElement (uint8_t *ptr, unsigned size) | |
| Hidden constructor. | |
Protected Member Functions inherited from D878UVCodeplug::ChannelElement | |
| ChannelElement (uint8_t *ptr, unsigned size) | |
| Hidden constructor. | |
Protected Member Functions inherited from D868UVCodeplug::ChannelElement | |
| ChannelElement (uint8_t *ptr, unsigned size) | |
| Hidden constructor. | |
Protected Member Functions inherited from AnytoneCodeplug::ChannelElement | |
| ChannelElement (uint8_t *ptr, unsigned size) | |
| Hidden constructor. | |
Protected Member Functions inherited from Codeplug::Element | |
| Element (uint8_t *ptr, size_t size) | |
| Hidden constructor. | |
Additional Inherited Members | |
Static Public Member Functions inherited from AnytoneCodeplug::ChannelElement | |
| static constexpr unsigned int | size () |
| Returns the size of the element. | |
Protected Attributes inherited from Codeplug::Element | |
| uint8_t * | _data |
| Holds the pointer to the element. | |
| size_t | _size |
| Holds the size of the element. | |
Represents the actual channel encoded within the binary code-plug.
Matches firmware/CPS version 1.21.
|
overridevirtual |
Returns the encryption type.
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Returns the ARC4 encryption key index.
The index is 0-based.
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Returns true, if auto scan is enabled.
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Clears the ARC4 encryption key index.
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Removed from D578UV codeplug.
Reimplemented from AnytoneCodeplug::ChannelElement.
|
overridevirtual |
Returns true if data ACK is enabled.
Reimplemented from D868UVCodeplug::ChannelElement.
|
overridevirtual |
Enable/disable auto scan.
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Removed from D578UV codeplug.
Reimplemented from AnytoneCodeplug::ChannelElement.
|
overridevirtual |
Enables/disables data ACK.
Reimplemented from D868UVCodeplug::ChannelElement.
|
overridevirtual |
Enables/disables multiple key encryption.
Reimplemented from D868UVCodeplug::ChannelElement.
|
overridevirtual |
Enables/disables random key.
Reimplemented from D868UVCodeplug::ChannelElement.
|
overridevirtual |
Enables/disables roaming.
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Enable transmission of talker alias.
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Enables/disables SMS.
Reimplemented from D868UVCodeplug::ChannelElement.
|
overridevirtual |
Returns the index of the FM APRS frequency [0,7].
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Initializes this codeplug channel from the given generic configuration.
Reimplemented from D868UVCodeplug::ChannelElement.
|
overridevirtual |
Returns true, if an ARC4 encryption key index is set.
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Returns true if multiple key encryption is enabled.
Reimplemented from D868UVCodeplug::ChannelElement.
|
overridevirtual |
Returns true if random key is enabled.
Reimplemented from D868UVCodeplug::ChannelElement.
|
overridevirtual |
Returns true if roaming is enabled.
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
If set, transmission of talker alias for this channel is enabled.
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Sets the ARC4 encryption key index.
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Sets the encryptionType.
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Sets the FM APRS frequency index [0,7].
Reimplemented from D878UVCodeplug::ChannelElement.
|
overridevirtual |
Returns true if SMS is enabled.
Reimplemented from D868UVCodeplug::ChannelElement.
Constructs a generic Channel object from the codeplug channel.
Reimplemented from D868UVCodeplug::ChannelElement.