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

Represents a zone within the codeplug. More...

#include <uv390_codeplug.hh>

Public Member Functions

 zone_t ()
 Constructor.
 
bool isValid () const
 Returns true if the zone is valid.
 
void clear ()
 Clears and invalidates the zone.
 
QString getName () const
 Returns the name of the zone.
 
void setName (const QString &name)
 Sets the name of the zone.
 
ZonetoZoneObj () const
 Contructs a generic Zone object from this codeplug zone.
 
bool linkZone (Zone *zone, Config *conf) const
 Links a previously created generic Zone to the rest of the generic configuration.
 
void fromZoneObj (const Zone *zone, const Config *conf)
 Initializes this codeplug zone from the given generic zone.
 

Public Attributes

uint16_t name [16]
 Zone Name (Unicode).
 
uint16_t member_a [16]
 Member A, channel indices+1 , 0=empty/EOL.
 

Detailed Description

Represents a zone within the codeplug.

Please note that a zone consists of two structs the zone_t and the zone_ext_t. The latter adds additional channels for VFO A and the channels for VFO B.

Memmory layout of encoded zone:

     0                               8                               16                              24
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
00 | Zone name, 16 x 16bit unicode chars                                                                                        ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
1c  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
20 | Member Channel index+1 00 VFO A                               |                                                            ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
3c  ...                                                            | Member Channel index+1 15 VFO A                               |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

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