libdrmconf  0.10.4
A library to program DMR radios.
Public Member Functions | Public Attributes | List of all members
OpenGD77CallsignDB::userdb_entry_t Struct Reference

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.
 

Detailed Description

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

Member Function Documentation

◆ setName()

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.


The documentation for this struct was generated from the following files: