|
LibDMRConf
0.5.0
A library to program DMR radios.
|
Represents the actual RX group list encoded within the binary code-plug. More...
#include <d878uv_codeplug.hh>
Public Member Functions | |
| grouplist_t () | |
| Constructs an empty group list. | |
| void | clear () |
| Clears this group list. | |
| bool | isValid () const |
Returns true if the group list is valid. | |
| QString | getName () const |
| Returns the name of the group list. | |
| void | setName (const QString &name) |
| Sets the name of the group list. | |
| RXGroupList * | toGroupListObj () const |
Constructs a new RXGroupList from this group list. More... | |
| bool | linkGroupList (RXGroupList *lst, const CodeplugContext &ctx) |
Populates the RXGroupList from this group list. More... | |
| void | fromGroupListObj (const RXGroupList *lst, const Config *conf) |
Constructs this group list from the given RXGroupList. | |
Public Attributes | |
| uint32_t | member [64] |
| Contact indices, 0-based, little-endian. | |
| uint8_t | name [16] |
| Group-list name, up to 16 x ASCII, 0-terminated. | |
| uint8_t | unused [16] |
| Unused, set to 0. | |
Represents the actual RX group list encoded within the binary code-plug.
Memmory layout of encoded group list (288byte):
0 8 16 24
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
00 | 64 indices of group calls, 32bit each, default 0xffffffff ...
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
fc ... |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
100 | Name, 16 x ASCII, 0-padded ...
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
10c ... |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
110 | 16 unused bytes set to 0 ...
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
11c ... |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| bool D878UVCodeplug::grouplist_t::linkGroupList | ( | RXGroupList * | lst, |
| const CodeplugContext & | ctx | ||
| ) |
Populates the RXGroupList from this group list.
The CodeplugContext is used to map the member indices.
| RXGroupList * D878UVCodeplug::grouplist_t::toGroupListObj | ( | ) | const |
Constructs a new RXGroupList from this group list.
None of the members are added yet. Call linkGroupList to do that.
1.8.17