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

Represents a digital (DMR) contact within the codeplug. More...

#include <uv390_codeplug.hh>

Public Types

enum  CallType { CALL_GROUP = 1, CALL_PRIVATE = 2, CALL_ALL = 3 }
 Call types. More...
 

Public Member Functions

void clear ()
 Clears and invalidates the contact.
 
bool isValid () const
 Returns true if the contact is valid.
 
uint32_t getId () const
 Returns the contact DMR ID.
 
void setId (uint32_t num)
 Sets the contact DMR ID.
 
QString getName () const
 Returns the name of the contact.
 
void setName (const QString &name)
 Sets the name of the contact.
 
DigitalContacttoContactObj () const
 Constructs a generic DigitalContact from this codeplug representation.
 
void fromContactObj (const DigitalContact *obj, const Config *conf)
 Initializes this codeplug contact from the given generic DigitalContact.
 

Public Attributes

uint8_t id [3]
 Call ID, [1,16777215], default = 0xffffff.
 
uint8_t type: 5
 Call Type, 1=Group Call, 2=Private Call or 3 = All Call, 0=Disabled.
 
uint8_t receive_tone: 1
 Call Receive Tone, 0=no or 1=yes.
 
uint8_t _unused2: 2
 Unknown, always 0b11.
 
uint16_t name [16]
 Contact Name (16 x 16bit Unicode), default=0x00.
 

Detailed Description

Represents a digital (DMR) contact within the codeplug.

Memmory layout of encoded contact:

     0                               8                               16                              24
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
00 | DMR ID (binary coded)                                                                         |   Contact Type    |RXT| 1   1 |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
04 | Contact Name 16 x 16bit Unicode                                                                                            ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
20  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
where
RXT = Receive tone;

Member Enumeration Documentation

◆ CallType

Call types.

Enumerator
CALL_GROUP 

Group call.

CALL_PRIVATE 

Private call.

CALL_ALL 

All call.


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