libdrmconf 0.12.1
A library to program DMR radios.
Loading...
Searching...
No Matches
GD77Codeplug::ContactElement Class Reference

Specific codeplug representation of a DMR contact for the GD77. More...

#include <gd77_codeplug.hh>

Inheritance diagram for GD77Codeplug::ContactElement:
Collaboration diagram for GD77Codeplug::ContactElement:

Classes

struct  Offset
 Some internal offsets. More...
 

Public Member Functions

 ContactElement (uint8_t *ptr)
 Constructor.
 
void clear ()
 Resets the contact.
 
bool isValid () const
 Returns true if the contact is valid.
 
virtual void markValid (bool valid=true)
 Marks the entry as valid/invalid.
 
bool fromContactObj (const DMRContact *obj, Context &ctx, const ErrorStack &err=ErrorStack())
 

Protected Member Functions

 ContactElement (uint8_t *ptr, unsigned size)
 Hidden constructor.
 

Detailed Description

Specific codeplug representation of a DMR contact for the GD77.

Memory layout of the contact (0x18b):

     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 | Name, 16 ASCII encoded bytes, 0xff terminated                                                                              ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0c  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
10 | Contact DMR ID 8 BCD digits, little endian                                                                                    |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
14 | Type 0=Grp, 1=Priv, 2 = All   | RX tone 0=off, 1=on           | Ring style [0..10]            | Valid if 0xff, 0x00 otherwise |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

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