LibDMRConf
0.5.0
A library to program DMR radios.
|
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. | |
Zone * | toZoneObj () 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. | |
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 | +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
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.