libdrmconf
0.10.4
A library to program DMR radios.
|
Represents the binary call-sign database header. More...
#include <opengd77_callsigndb.hh>
Public Member Functions | |
userdb_t () | |
Constructor. | |
void | clear () |
Resets the header. | |
void | setSize (unsigned n) |
Sets the number of DB entries. More... | |
Public Attributes | |
char | magic [3] |
Fixed string 'ID-'. | |
uint8_t | size |
Fixed to 0x5d for 15 byte names. | |
char | version [3] |
Version string? Fixed to '001'. | |
uint8_t | unused6 |
Unused, set to 0x00. | |
uint32_t | count |
Number of contacts in DB, 32bit little-endian. | |
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 OpenGD77CallsignDB::userdb_t::setSize | ( | unsigned | n | ) |
Sets the number of DB entries.
This number is limited to USERDB_NUM_ENTRIES.