|
libdrmconf
0.10.4
A library to program DMR radios.
|
Represents a user-db entry within the binary codeplug. More...
#include <opengd77_callsigndb.hh>
Public Member Functions | |
| userdb_entry_t () | |
| Constructor. | |
| void | clear () |
| Resets the entry. | |
| uint32_t | getNumber () const |
| Returns the DMR ID number. | |
| void | setNumber (uint32_t number) |
| Sets the DMR ID number. | |
| QString | getName () const |
| Returns the name of the entry. | |
| void | setName (const QString &name) |
| Sets the name of the entry, 15b max. More... | |
| void | fromEntry (const UserDatabase::User &user) |
| Encodes the given user. | |
Public Attributes | |
| uint32_t | number |
| DMR ID stored in BCD little-endian. | |
| char | name [15] |
| Call or name, up to 15 ASCII chars, 0x00 padded. | |
Represents a user-db entry within the binary codeplug.
Memory representation of the call-sign DB entry (size 0x13 bytes):
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 00 | DMR ID stored in BCD, little-endian | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 04 | String containing Name, Callsign, etc. Up to 15 bytes ASCII, 0x00 terminated and padded ... +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 10 ... | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| void OpenGD77CallsignDB::userdb_entry_t::setName | ( | const QString & | name | ) |
Sets the name of the entry, 15b max.
The name gets truncated if longer than 15b.