LibDMRConf  0.5.2
A library to program DMR radios.
Public Types | Public Member Functions | Public Attributes | List of all members
OpenGD77Codeplug::contact_t Struct Reference

Specific codeplug representation of a DMR contact. More...

#include <opengd77_codeplug.hh>

Public Types

enum  CallType { CALL_GROUP = 0, CALL_PRIVATE = 1, CALL_ALL = 2 }
 Possible call types. More...
 

Public Member Functions

 contact_t ()
 Constructor.
 
void clear ()
 Resets an invalidates the contact entry.
 
bool isValid () const
 Returns true, if the contact is valid.
 
uint32_t getId () const
 Returns the DMR ID of the contact.
 
void setId (uint32_t num)
 Sets the DMR ID of the contact.
 
QString getName () const
 Returns the name of the contact.
 
void setName (const QString &name)
 Sets the name of the contact.
 
DigitalContacttoContactObj () const
 Constructs a DigitalContact instance from this codeplug contact.
 
void fromContactObj (const DigitalContact *obj, const Config *conf)
 Resets this codeplug contact from the given DigitalContact.
 

Public Attributes

uint8_t name [16]
 Contact name in ASCII, 0xff terminated.
 
uint8_t id [4]
 BCD coded 8 digits DMR ID.
 
uint8_t type
 Call Type, one of Group Call, Private Call or All Call.
 
uint8_t receive_tone
 Call Receive Tone, 0=Off, 1=On.
 
uint8_t ring_style
 Ring style: [0,10].
 
uint8_t timeslot_override
 Time-slot override, 0x00=Off, 0x01=TS1, 0x02=TS2.
 

Detailed Description

Specific codeplug representation of a DMR contact.

Memmory layout of the contact:

       0                               8                               16                              24
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0000 | Name, 16 ASCII encoded bytes, 0xff terminated                                                                              ...
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
000c  ...                                                                                                                            |
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0010 | Contact DMR ID 8 BCD digits.                                                                                                  |
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0014 | Type 0=Grp, 1=Priv, 2 = All   | RX tone 0=off, 1=on           | Ring style [0..10]            | Timeslot override             |
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

Member Enumeration Documentation

◆ CallType

Possible call types.

Enumerator
CALL_GROUP 

A group call.

CALL_PRIVATE 

A private call.

CALL_ALL 

An all-call.


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