libdrmconf 0.12.1
A library to program DMR radios.
Loading...
Searching...
No Matches
GD77Codeplug::ChannelElement Class Reference

Channel representation within the binary codeplug. More...

#include <gd77_codeplug.hh>

Inheritance diagram for GD77Codeplug::ChannelElement:
Collaboration diagram for GD77Codeplug::ChannelElement:

Public Types

enum  ARTSMode { ARTS_OFF = 0 , ARTS_TX = 1 , ARTS_RX = 2 , ARTS_BOTH = 3 }
 ARTS send.
 
enum  STEAngle { STE_FREQUENCY = 0 , STE_120DEG = 1 , STE_180DEG = 2 , STE_240DEG = 3 }
 STE angle. More...
 
enum  PTTId { PTTID_OFF = 0 , PTTID_START = 1 , PTTID_END = 2 , PTTID_BOTH = 3 }
 PTT ID send.
 

Public Member Functions

 ChannelElement (uint8_t *ptr)
 Constructor.
 
void clear ()
 
virtual ARTSMode artsMode () const
 Returns the ARTS mode.
 
virtual void setARTSMode (ARTSMode mode)
 Sets the ARTS mode.
 
virtual STEAngle steAngle () const
 Returns the STE angle.
 
virtual void setSTEAngle (STEAngle angle)
 Sets the STE angle.
 
virtual PTTId pttIDMode () const
 Returns the PTT ID mode.
 
virtual void setPTTIDMode (PTTId mode)
 Sets the PTT ID mode.
 
virtual bool squelchIsTight () const
 Returns true if the squech type is tight.
 
virtual void enableTightSquelch (bool enable)
 Enables/disables tight squelch.
 
virtual bool loneWorker () const
 Returns true if lone worker is enabled.
 
virtual void enableLoneWorker (bool enable)
 Enables/disables lone worker.
 
virtual bool autoscan () const
 Returns true if auto scan is enabled.
 
virtual void enableAutoscan (bool enable)
 Enables/disables auto scan.
 

Protected Member Functions

 ChannelElement (uint8_t *ptr, size_t size)
 Hidden Constructor.
 

Detailed Description

Channel representation within the binary codeplug.

Each channel requires 0x38b:

     7   6   5   4   3   2   1   0   7   6   5   4   3   2   1   0   7   6   5   4   3   2   1   0   7   6   5   4   3   2   1   0
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
00 | Name, 16 x ASCII, 0xff terminated                                                                                          ...
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
0c  ...                                                                                                                            |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
10 | RX Frequency, 8 x BCD digits, little-endian                                                                                   |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
14 | TX Frequency, 8 x BCD digits, little-endian                                                                                   |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
18 | Mode (Analog/Digital)         | Unused, set to 0x00                                           | Transmit timeout              |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
1c | Transmit timeout rekey        | Admit criterion               | Unknown, set to 0x50          | Scan list index (+1)          |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
20 | CTCSS/DCS RX                                                  | CTCSS/DCS TX                                                  |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
24 | Unused, set to 0x00           | TX DTMF system index (+1)     | Unused set to 0x00            | RX DTMF system index (+1)     |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
28 | Unused, set to 0x00           | Privacy group index           | TX color-code                 | RX group list index (+1)      |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
2c | RX color code                 | Emergency system index (+1)   | Contact index (+1), little endian                             |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
30 |DCC|EAA| 0   0   0   0 | ARTS  | 0 |SLT| 0 |PRV| 0   0   0 |PCC|  STE  |NFS| 0 | PTTId | 0 |DCD|PWR|VOX|ASE|LWK|TLK|RXO|BW |SQT|
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
34 | Unused set to 0                                                                                                               |
   +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+

DCC = Data call confirm, EAA = Emergency Alarm ACK, SLT = Repeater slot, PRV = Privacy Enable,
PCC = Private call confirm, NSF = Non-STE Frequency, DCD = Direct call dual capacity mode, PWR = Power, ASE = Autoscan enable,
LWK = Lone worker enable, TLK = Talk around enable, RXO = RX only, BW = Band width, SQT = Squelch type

Member Enumeration Documentation

◆ STEAngle

STE angle.

Enumerator
STE_FREQUENCY 

STE Frequency.

STE_120DEG 

120 degree.

STE_180DEG 

180 degree.

STE_240DEG 

240 degree.


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