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

Represents a scan list within the codeplug. More...

#include <uv390_codeplug.hh>

Public Member Functions

 scanlist_t ()
 Constructor.
 
bool isValid () const
 Returns true if the scanlist is valid.
 
void clear ()
 Clears and invalidates the scanlist.
 
QString getName () const
 Returns the name of the scanlist.
 
void setName (const QString &n)
 Sets the name of the scanlist.
 
ScanListtoScanListObj () const
 Constructs a generic ScanList from this codeplug representation.
 
bool linkScanListObj (ScanList *l, Config *conf) const
 Links the previously constructed generic scanlist to the rest of the configuration.
 
void fromScanListObj (const ScanList *l, const Config *conf)
 Initializes this codeplug scanlist from the given generic scanlist.
 

Public Attributes

uint16_t name [16]
 Scan List Name (16 x unicode), default=0.
 
uint16_t priority_ch1
 Priority Channel 1 index or 0x0000, default=0xffff.
 
uint16_t priority_ch2
 Priority Channel 2 index or 0x0000, default=0xffff.
 
uint16_t tx_designated_ch
 Tx Designated Channel or 0xffff, default=0xffff.
 
uint8_t _unused38
 Unknown = 0xf1.
 
uint8_t sign_hold_time
 Signaling Hold Time (x25 = msec), default=0x14.
 
uint8_t prio_sample_time
 Priority Sample Time (x250 = msec), default=0x08.
 
uint8_t _unused41
 Unused = 0xff.
 
uint16_t member [31]
 Channels, zero-terminated list, default=0.
 

Detailed Description

Represents a scan list within the codeplug.

Memmory layout of encoded scan list:

     0                               8                               16                              24
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
00 | Scan List Name 16 x 16bit unicode characters                                                                               ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
1c  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
20 | Priority Channel 1, index+1, 0x0000=current, 0xffff=none      | Priority Channel 1, index+1, 0x0000=current, 0xffff=none      |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
24 |Tx Designated Channel index+1, 0x0000=current, 0xffff=none     | !!! Unknown set to 0xf1 !!!   | Hold Time N x 25ms            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
28 | Prio. Sample Time N x 250ms   | Unused, set to 0xff           | Member Channel index+1 00                                     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
2c | Member Channel index+1 01                                     |                                                            ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
64  ...                                                            | Member Channel index+1 30                                     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

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