LibDMRConf
0.5.0
A library to program DMR radios.
|
Channel representation within the binary codeplug. More...
#include <gd77_codeplug.hh>
Public Types | |
enum | Mode { MODE_ANALOG = 0, MODE_DIGITAL = 1 } |
Possible channel types analog (FM) or digital (DMR). More... | |
enum | Admit { ADMIT_ALWAYS = 0, ADMIT_CH_FREE = 1, ADMIT_COLOR = 2 } |
Possible admit criteria. More... | |
enum | PrivGroup { PRIVGR_NONE = 0, PRIVGR_53474C39 = 1 } |
Possible privacy settings (unused/forbidden in hamradio). More... | |
enum | SquelchType { SQ_TIGHT = 0, SQ_NORMAL = 1 } |
Possible squelch settings. More... | |
enum | Bandwidth { BW_12_5_KHZ = 0, BW_25_KHZ = 1 } |
Possible bandwidths for ananlog channels. More... | |
enum | Power { POWER_HIGH = 1, POWER_LOW = 0 } |
Possible power settings. More... | |
Public Member Functions | |
bool | isValid () const |
Returns true if the channel is valid. | |
void | clear () |
Clears the channel settings. | |
double | getRXFrequency () const |
Returns the RX frequency in MHz. | |
void | setRXFrequency (double f) |
Sets the RX frequency in MHz. | |
double | getTXFrequency () const |
Returns the TX frequency in MHz. | |
void | setTXFrequency (double f) |
Sets the TX frequency in MHz. | |
QString | getName () const |
Returns the channel name. | |
void | setName (const QString &name) |
Sets the channel name. | |
Signaling::Code | getRXTone () const |
Returns the CTCSS RX tone. | |
void | setRXTone (Signaling::Code tone) |
Sets the CTCSS RX tone. | |
Signaling::Code | getTXTone () const |
Returns the CTCSS TX tone. | |
void | setTXTone (Signaling::Code tone) |
Sets the CTCSS TX tone. | |
Channel * | toChannelObj () const |
Constructs a Channel object from this codeplug channel. | |
void | fromChannelObj (const Channel *c, const Config *conf) |
Resets this codeplug channel from the given Channel object. | |
bool | linkChannelObj (Channel *c, const CodeplugContext &ctx) const |
Links a previously constructed Channel object to other object within the generic configuration, for example scan lists etc. | |
Public Attributes | |
uint8_t | name [16] |
Channel Name. | |
uint32_t | rx_frequency |
RX Frequency: 8 digits BCD. | |
uint32_t | tx_frequency |
TX Frequency: 8 digits BCD. | |
uint8_t | channel_mode |
Mode: Analog or Digital. | |
uint16_t | _unused25 |
Unused, set to 0. | |
uint8_t | tot |
TOT in 15sec steps: 0=Infinite. | |
uint8_t | tot_rekey_delay |
TOT Rekey Delay in seconds [0, 255]s. | |
uint8_t | admit_criteria |
Admit Criteria: Always, Channel Free or Color Code. | |
uint8_t | _unused30 |
Unused, set to 0x50 . | |
uint8_t | scan_list_index |
Scan List index: 0=None or index + 1. | |
uint16_t | ctcss_dcs_receive |
RX CTCSS/DCS setting, 4 digits BCD or 0xffff if disabled. | |
uint16_t | ctcss_dcs_transmit |
TX CTCSS/DCS setting, 4 digits BCD or 0xffff if disabled. | |
uint8_t | _unused36 |
Unused set to 0x00 . | |
uint8_t | tx_signaling_syst |
Tx Signaling System: Off, DTMF. | |
uint8_t | _unused38 |
Unused set to 0x00 . | |
uint8_t | rx_signaling_syst |
Rx Signaling System: Off, DTMF. | |
uint8_t | _unused40 |
Unknown set to 0x16 . | |
uint8_t | privacy_group |
Privacy Group 0=None, 1=53474c39. | |
uint8_t | colorcode_tx |
TX Color Code [0,15]. | |
uint8_t | group_list_index |
Group List index 0=None or index+1. | |
uint8_t | colorcode_rx |
RX Color Code: [0,15] (usually identical to TX colorcode). | |
uint8_t | emergency_system_index |
Emergency system index, 0=None or index + 1. | |
uint16_t | contact_name_index |
Contact index, 0=None or index+1. | |
uint8_t | _unused48: 6 |
Unused set to 0x00 . | |
uint8_t | emergency_alarm_ack: 1 |
Emergency alarm ack flag. | |
uint8_t | data_call_conf: 1 |
Data-call confirmed flag. | |
uint8_t | private_call_conf: 1 |
Private call confirmed flag. | |
uint8_t | _unused49_1: 3 |
Unused set to 0b000 . | |
uint8_t | privacy: 1 |
Privacy enabled flag. | |
uint8_t | _unused49_5: 1 |
Unused set to 0b0 . | |
uint8_t | repeater_slot2: 1 |
Repeater Slot 0=slot1 or 1=slot2. | |
uint8_t | _unused49_7: 1 |
Unused set to 0b0 . | |
uint8_t | dcdm: 1 |
Dual capacity direct mode flag (do not use it). | |
uint8_t | _unused50_1: 4 |
Unused set to 0b0000. | |
uint8_t | non_ste_frequency: 1 |
Non STE = Frequency? | |
uint8_t | _unused50_6: 2 |
Unused set to 0b00. | |
uint8_t | squelch: 1 |
Squelch settings (tight or normal). | |
uint8_t | bandwidth: 1 |
Bandwidth 12.5 or 25 kHz. | |
uint8_t | rx_only: 1 |
RX only flag. | |
uint8_t | talkaround: 1 |
Allow talkaround flag. | |
uint8_t | _unused51_4: 2 |
Unused set to 0b00. | |
uint8_t | vox: 1 |
VOX enable flag. | |
uint8_t | power: 1 |
Power either Low or High. | |
uint32_t | _unused52 |
Unused set to 0. | |
Channel representation within the binary codeplug.