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

Represents a single zone within the codeplug. More...

#include <rd5r_codeplug.hh>

Public Member Functions

 zone_t ()
 Constructor.
 
bool isValid () const
 Returns true if the zone entry is valid.
 
void clear ()
 Resets and invalidates the zone entry.
 
QString getName () const
 Retruns the zone name.
 
void setName (const QString &name)
 Sets the zone name.
 
ZonetoZoneObj () const
 Constructs a generic Zone object from this codeplug zone.
 
bool linkZoneObj (Zone *zone, const CodeplugContext &ctx) const
 Links a previously constructed Zone object to the rest of the configuration. More...
 
void fromZoneObjA (const Zone *zone, const Config *conf)
 Resets this codeplug zone representation from the given generic Zone object.
 
void fromZoneObjB (const Zone *zone, const Config *conf)
 Resets this codeplug zone representation from the given generic Zone object.
 

Public Attributes

uint8_t name [16]
 Zone name ASCII, 0xff terminated.
 
uint16_t member [16]
 Member channel indices+1, 0=empty/not used.
 

Detailed Description

Represents a single zone within the codeplug.

Memmory layout of the zone:

       0                               8                               16                              24
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0000 | Name, 16 ASCII encoded bytes, 0xff terminated                                                                              ...
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
000c  ...                                                                                                                            |
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0010 | Channel 00 index +1                                           | Channel 01 index +1                                           |
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
      ...
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
002c | Channel 14 index +1                                           | Channel 15 index +1                                           |
     +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

Member Function Documentation

◆ linkZoneObj()

bool RD5RCodeplug::zone_t::linkZoneObj ( Zone zone,
const CodeplugContext ctx 
) const

Links a previously constructed Zone object to the rest of the configuration.

That is linking to the referred channels.


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