LibDMRConf
0.5.0
A library to program DMR radios.
|
Represents the general settings within the codeplug. More...
#include <rd5r_codeplug.hh>
Public Types | |
enum | MonitorType { OPEN_SQUELCH = 0, SILENT_MONITOR = 1 } |
Possible monitor types. More... | |
enum | ARTSTone { ARTS_DISABLED = 0, ARTS_ONCE = 4, ARTS_ALWAYS = 8 } |
Possible ARTS tone settings. More... | |
enum | ScanMode { SCANMODE_TIME = 0, SCANMODE_CARRIER = 1, SCANMODE_SEARCH = 2 } |
Possible scan modes. | |
Public Member Functions | |
general_settings_t () | |
Constructor. | |
void | clear () |
Resets the general settings. | |
void | initDefault () |
Resets the general settings to their default values. | |
QString | getName () const |
Returns the name of the radio. | |
void | setName (const QString &n) |
Sets the name of the radio. | |
uint32_t | getRadioId () const |
Returns the DMR ID of the radio. | |
void | setRadioId (uint32_t num) |
Sets the DMR ID of the radio. | |
Public Attributes | |
uint8_t | radio_name [8] |
The radio name in ASCII, 0xff terminated. | |
uint8_t | radio_id [4] |
The radio DMR ID in BCD. | |
uint32_t | _reserved12 |
Reserved, set to 0x00000000. | |
uint8_t | _reserved16 |
Unknown, set to 0x00. | |
uint8_t | tx_preamble |
TX preamble duration in 60ms steps 0=0ms, 1=60ms, default=360ms (0x06). | |
uint8_t | monitor_type |
Monitor type, 0x00 = open squelch, 0x01 = silent. | |
uint8_t | vox_sensitivity |
VOX sensitivity [1,10], default 0x03. | |
uint8_t | lowbat_intervall |
Low-battery interfvall in 5sec setps, 0=0s, 1=5s, default 30s (0x06). | |
uint8_t | call_alert_dur |
Call-alert tone duration in 5sec steps, 0=infinity, 1=5s, etc, default 0x18=120s. | |
uint8_t | lone_worker_response |
Lone-worker response timer in minutes [1,255], default 1. | |
uint8_t | lone_worker_reminder |
Lone-worker reminder timer in seconds [1,255], default 10. | |
uint8_t | grp_hang |
Group-call hang-time in 500ms setps 0=0ms, 1=500ms, default=3000ms (0x06). | |
uint8_t | priv_hang |
Private-call hang-time in 500ms setps 0=0ms, 1=500ms, default=3000ms (0x06). | |
uint8_t | downch_mode_vfo: 1 |
Down-channel mode=VFO, default 0. | |
uint8_t | upch_mode_vfo: 1 |
Up-channel mode=VFO, default 0. | |
uint8_t | reset_tone: 1 |
Reset tone, default 0. | |
uint8_t | unknown_number_tone: 1 |
Unknown number tone, default 0. | |
uint8_t | arts_tone: 4 |
ARTS tone, 0x0=disabled, 0x4=once, 0x8=always, default=once. | |
uint8_t | permit_digital: 1 |
Talk permit tone digital, default=0. | |
uint8_t | permit_ananlog: 1 |
Talk permit tone ananlog, default=0. | |
uint8_t | selftest_tone: 1 |
Self-test pass tone, default=1. | |
uint8_t | freq_ind_tone: 1 |
Channel frequency indication tone, default=0 (off). | |
uint8_t | _reserved27_4: 1 |
Unknown, set to 0. | |
uint8_t | disable_all_tones: 1 |
Disables all tones, default 0. | |
uint8_t | savebat_receive: 1 |
Save battery by disable receive, default=1. | |
uint8_t | savebet_preamble: 1 |
Save battery by disable preamble, default=1. | |
uint8_t | _reserved28_0: 5 |
Unknown, set to 0b00000. | |
uint8_t | disable_all_leds: 1 |
Disables all LEDs, default=0. | |
uint8_t | inh_quickkey_ovr: 1 |
Inhibit quick-key override, default=0. | |
uint8_t | _unknown38_7: 1 |
Unknown, set to 1. | |
uint8_t | tx_exit_tone: 4 |
TX exit tone, 0x0=off, 0x8=on, default off. | |
uint8_t | dblwait_tx_active: 1 |
Always TX on active channel on double-wait, not selected, default=1. | |
uint8_t | animation: 1 |
Enable animation, default 0. | |
uint8_t | scan_mode: 2 |
Scan mode 0b00=time, 0b01=carrier, 0b10=search, default time. | |
uint8_t | repeater_end_delay: 4 |
Repeater-end delay [0,10], default 0. | |
uint8_t | repeater_ste: 4 |
Repeater STE [0,10], default 0. | |
uint8_t | _reserved31 |
Unknown, set to 0x00. | |
uint8_t | prog_password [8] |
Programming password, 8 x ASCII 0xff terminated. | |
Represents the general settings within the codeplug.
Memmory layout of the general settings
0 8 16 24 +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 0000 | Radio name, 8 x 1byte ASCII encoded, 0xff terminated text ... +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 0004 ... | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 0008 | 8-digit BCD DMR ID | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 000c | Unused set to 0x00000000 | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 0010 | Unused set to 0x00 | Tx preamble N x 60ms | Monitor type 0=open, 1=silent | VOX sensitivity [1..10] | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 0014 | Low battery interval N x 5s | Call alert dur N x 5s | Lone worker response in min | Lone worker reminder in sec | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 0018 | Groupcall hang-time N x 500ms | Priv.call hang-time N x 500ms | ARTS tone |UNT|RST|UMV|DMV|SBP|SBR|DAT| 0 |FIT|STT|PAT|PDT| +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 001c | 1 |IQO|DAL| 0 0 0 0 0 | ScanM |ANI|DBW|TXT| 0 0 0 | Rep. delay | Rep. STE | Unused set to 0x00 | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 0020 | Prog. passwd 8 x ASCII, 0xff terminated ... +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 0024 ... | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ where UNT = Unknown number tone; RST = Reset tone; UMV = Up-channel mode VFO; DMV = Down-channel mode VFO; SBP = Save battery by disable preamble; SBR = Save battery by disable receive; DAT = Disables all tones; FIT = Channel frequency indication tone; STT = Self-test pass tone; PAT = Talk permit tone ananlog; PDT = Talk permit tone digital; IQO = Inhibit quick-key override; DAL = Disables all LEDs; ScanM = Scan mode; ANI = Enable animation; DBW = Always TX on active channel on double-wait; TXT = TX exit tone;