|
LibDMRConf
0.5.0
A library to program DMR radios.
|
Represents a sinle scan list within the codeplug. More...
#include <rd5r_codeplug.hh>
Public Types | |
| enum | PriorityType { PL_NONPRI = 0, PL_DISABLE = 1, PL_PRI = 2, PL_PRI_NONPRI = 3 } |
| Possible priority channel types. More... | |
Public Member Functions | |
| scanlist_t () | |
| Constructor. | |
| void | clear () |
| Resets the scan list. | |
| QString | getName () const |
| Returns the name of the scan list. | |
| void | setName (const QString &name) |
| Sets the name of the scan list. | |
| ScanList * | toScanListObj () const |
Constrcuts a ScanList object from this codeplug representation. | |
| bool | linkScanListObj (ScanList *lst, const CodeplugContext &ctx) const |
Links a previously constructed ScanList object to the rest of the generic configuration. | |
| void | fromScanListObj (const ScanList *lst, const Config *conf) |
Initializes this codeplug representation from the given ScanList object. | |
Public Attributes | |
| uint8_t | name [15] |
| Scan list name, ASCII, 0xff terminated. | |
| uint8_t | _unused: 4 |
| Unknown set to 1. | |
| uint8_t | channel_mark: 1 |
| Channel mark, default 1. | |
| uint8_t | pl_type: 2 |
| PL type, default 3. | |
| uint8_t | talkback: 1 |
| Talkback, default 1. | |
| uint16_t | member [32] |
| Channel indices, 0=not used/EOL or channel index+2. | |
| uint16_t | priority_ch1 |
| Priority channel 1 index, index+2 or 0=None, 1=selected. | |
| uint16_t | priority_ch2 |
| Priority channel 2 index, index+2 or 0=None, 1=selected. | |
| uint16_t | tx_designated_ch |
| Designated TX channel, channel index+1 or 0=last active channel. | |
| uint8_t | sign_hold_time |
| Signaling Hold Time (x25 = msec) default 40=1000ms. | |
| uint8_t | prio_sample_time |
| Priority Sample Time (x250 = msec) default 8=2000ms. | |
Represents a sinle scan list within the codeplug.
Memmory layout of the scan list.
0 8 16 24
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0000 | Name, 15 ASCII encoded bytes, 0xff terminated ...
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
000c ... | 0 0 0 0 |ChM| PLT |TKB|
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0010 | Channel 00 index +1, 0 end of list | Channel 01 index +1 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
...
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
004c | Channel 30 index +1 | Channel 31 index +1 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0050 | Priority Channel 1, index+2, 0=None, 1=Current | Priority Channel 2, index+2, 0=None, 1=Current |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0054 | TX Channel, index+1, 0=last active | Sig. hold time N x 25ms | Pri. sample time N x 250ms |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
where
ChM = Channel mark; PLT = PL type; TKB = Talkback
1.8.17