LibDMRConf  0.5.0
A library to program DMR radios.
Public Member Functions | Public Attributes | List of all members
RD5RCodeplug::dtmf_contact_t Struct Reference

Specific codeplug representation of a DTMF (analog) contact. More...

#include <rd5r_codeplug.hh>

Public Member Functions

 dtmf_contact_t ()
 Constructor.
 
void clear ()
 Resets an invalidates the contact entry.
 
bool isValid () const
 Returns true, if the contact is valid.
 
QString getNumber () const
 Returns the DTMF number of the contact.
 
bool setNumber (const QString &number)
 Sets the DTMF number of the contact.
 
QString getName () const
 Returns the name of the contact.
 
void setName (const QString &name)
 Sets the name of the contact.
 
DTMFContacttoContactObj () const
 Constructs a DTMFContact instance from this codeplug contact.
 
void fromContactObj (const DTMFContact *obj, const Config *conf)
 Resets this codeplug contact from the given DTMFContact.
 

Public Attributes

uint8_t name [16]
 Contact name in ASCII, 0xff terminated.
 
uint8_t number [16]
 DTMF number {0-9,a-d,*,#}, 0xff terminated.
 

Detailed Description

Specific codeplug representation of a DTMF (analog) contact.

Memmory layout of the DTMF contact:

       0                               8                               16                              24
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0000 | Name, 16 ASCII encoded bytes, 0xff terminated                                                                              ...
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
000c  ...                                                                                                                            |
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0010 | DTMF number, 16 digits, table = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, *, #}, 1 byte per digit                         ...
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
001c  ...                                                                                                                            |
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

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