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

Represents an entry in the DMR ID -> contact map within the binary code-plug. More...

#include <d878uv_codeplug.hh>

Public Member Functions

 contact_map_t ()
 Constructor, clears the map entry.
 
void clear ()
 Clears the map entry.
 
bool isValid () const
 Returns true if this entry is valid.
 
bool isGroup () const
 Returns true if the entry is a group-call contact.
 
uint32_t ID () const
 Returns the DMR ID of the entry.
 
void setID (uint32_t id, bool group)
 Sets the ID and group-call flag of the entry.
 
uint32_t index () const
 Returns the contact index of the entry.
 
void setIndex (uint32_t index)
 Sets the contact index of the entry.
 

Public Attributes

uint32_t id_group
 Combined ID and group-call flag. More...
 
uint32_t contact_index
 Index to contact, 32bit little endian.
 

Detailed Description

Represents an entry in the DMR ID -> contact map within the binary code-plug.

Member Data Documentation

◆ id_group

uint32_t D878UVCodeplug::contact_map_t::id_group

Combined ID and group-call flag.

The ID is encoded in BCD in big-endian, shifted to the left by one bit. Bit 0 is then the group-call flag. The cobined id and flag is then stored in little-endian.


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