libdrmconf 0.12.1
A library to program DMR radios.
Loading...
Searching...
No Matches
OpenGD77BaseCallsignDB::userdb_t Struct Reference

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.

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.

Detailed Description

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                                          |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

Member Function Documentation

◆ setSize()

void OpenGD77BaseCallsignDB::userdb_t::setSize ( unsigned n)

Sets the number of DB entries.

This number is limited to USERDB_NUM_ENTRIES.


The documentation for this struct was generated from the following files:
  • /builddir/build/BUILD/qdmr-0.12.1-build/qdmr-0.12.1/lib/opengd77base_callsigndb.hh
  • /builddir/build/BUILD/qdmr-0.12.1-build/qdmr-0.12.1/lib/opengd77base_callsigndb.cc