|
libdrmconf 0.12.1
A library to program DMR radios.
|
Represents the binary call-sign database header. More...
#include <opengd77base_callsigndb.hh>
Public Member Functions | |
| userdb_t () | |
| Constructor. | |
| void | clear () |
| Resets the header. | |
| void | setSize (unsigned n) |
| Sets the number of DB entries. | |
Represents the binary call-sign database header.
Memory representation of the call-sign DB header (size: 0x0c 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 | Magic 'ID-' string | Size, 0x5d = 19bytes | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 04 | Version string, fixed to '001' | Unused, set to 0x00 | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ 08 | Number of contacts, 16bit uint, little endian | Unused set to 0x0000 | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| void OpenGD77BaseCallsignDB::userdb_t::setSize | ( | unsigned | n | ) |
Sets the number of DB entries.
This number is limited to USERDB_NUM_ENTRIES.