libdrmconf  0.12.0
A library to program DMR radios.
Protected Types | Static Protected Attributes | List of all members
ChirpFormat Class Reference

Some common constants for the CIRP reader/writer. More...

#include <chirpformat.hh>

Inheritance diagram for ChirpFormat:
Inheritance graph
[legend]

Protected Types

enum class  Duplex {
  None , Positive , Negative , Split ,
  Off
}
 Possible values for the "duplex" column. More...
 
enum class  Mode {
  FM , NFM , WFM , AM ,
  DV , DN
}
 Possible CHIRP channel modes. More...
 
enum class  ToneMode {
  None , Tone , TSQL , TSQL_R ,
  DTCS , DTCS_R , Cross
}
 Possible modes for transmitting and processing sub tones. More...
 
enum class  Polarity { Normal , Reversed }
 Polarity of DCS codes. More...
 
enum class  CrossMode {
  NoneTone , NoneDTCS , ToneNone , ToneTone ,
  ToneDTCS , DTCSNone , DTCSTone , DTCSDTCS
}
 Generic mode for sub tones. More...
 

Static Protected Attributes

static const QSet< QString > _mandatoryHeaders
 Internal set of mandatory headers. More...
 
static const QSet< QString > _knownHeaders
 Internal used set of known headers. More...
 
static const QHash< QString, Duplex_duplexCodes
 Mapping of duplex codes. More...
 
static const QHash< QString, Mode_modeCodes
 Mapping of mode codes. More...
 
static const QHash< QString, ToneMode_toneModeCodes
 Mapping of tone mode codes. More...
 
static const QHash< QString, CrossMode_crossModes
 Mapping of cross mode codes. More...
 

Detailed Description

Some common constants for the CIRP reader/writer.

Member Enumeration Documentation

◆ CrossMode

enum ChirpFormat::CrossMode
strongprotected

Generic mode for sub tones.

There is no reason to use any other mode. This one covers everything.

Enumerator
NoneTone 

No TX, RX CTCSS.

NoneDTCS 

No TX, RX DCS.

ToneNone 

TX CTCSS, no RX.

ToneTone 

TX CTCSS, RX CTCSS.

ToneDTCS 

TX CTCSS, RX DCS.

DTCSNone 

TX DCS, no RX.

DTCSTone 

TX DCS, RX CTCSS.

DTCSDTCS 

TX DCS, RX DCS.

◆ Duplex

enum ChirpFormat::Duplex
strongprotected

Possible values for the "duplex" column.

Specifies the frequency offset direction for the transmit frequency wrt to the receive frequency.

Enumerator
None 

No offset at all. That is, the TX and RX frequencies are equal.

Positive 

Positive frequency offset, TX above RX frequency.

Negative 

Negative frequency offset, TX below RX frequency.

Split 

Explicit transmit frequency.

Off 

No transmit frequency specified. Channel is RX only.

◆ Mode

enum ChirpFormat::Mode
strongprotected

Possible CHIRP channel modes.

Enumerator
FM 

25kHz FM (still NBFM).

NFM 

12.5kHz FM (also NBFM).

WFM 

100kHz FM (WBFM, broadcast).

AM 

AM, usually airband (not supported by qdmr yet).

DV 

D-STAR (not supported by qdmr yet).

DN 

SystemFusion (not supported by qdmr yet).

◆ Polarity

enum ChirpFormat::Polarity
strongprotected

Polarity of DCS codes.

Enumerator
Normal 

Normal DCS encoding.

Reversed 

Reversed DCS encoding.

◆ ToneMode

enum ChirpFormat::ToneMode
strongprotected

Possible modes for transmitting and processing sub tones.

Enumerator
None 

No transmission of subtones.

Tone 

Transmission of a CTCSS tone.

TSQL 

CTCSS tone squelch.

TSQL_R 

Inverted, CTCSS tone squelch. That is, the squelch opens if a specific CTCSS tone is not received.

DTCS 

Transmission of a DCS code and also DCS squelch.

DTCS_R 

Transmission of a DCS code and also DCS squelch.

Cross 

More complex setting (see CrossMode).

Member Data Documentation

◆ _crossModes

QHash< QString, ChirpFormat::CrossMode > const ChirpFormat::_crossModes
staticprotected
Initial value:
= {
}
@ DTCSNone
TX DCS, no RX.
@ ToneDTCS
TX CTCSS, RX DCS.
@ NoneDTCS
No TX, RX DCS.
@ DTCSTone
TX DCS, RX CTCSS.
@ ToneTone
TX CTCSS, RX CTCSS.
@ NoneTone
No TX, RX CTCSS.
@ ToneNone
TX CTCSS, no RX.
@ DTCSDTCS
TX DCS, RX DCS.

Mapping of cross mode codes.

◆ _duplexCodes

QHash< QString, ChirpFormat::Duplex > const ChirpFormat::_duplexCodes
staticprotected
Initial value:
= {
}
@ Positive
Positive frequency offset, TX above RX frequency.
@ None
No offset at all. That is, the TX and RX frequencies are equal.
@ Off
No transmit frequency specified. Channel is RX only.
@ Negative
Negative frequency offset, TX below RX frequency.

Mapping of duplex codes.

◆ _knownHeaders

QSet< QString > const ChirpFormat::_knownHeaders
staticprotected
Initial value:
= {
"Location", "Name", "Frequency", "Duplex", "Offset", "Mode"
"Tone", "rToneFreq", "cToneFreq", "DtcsCode", "DtcsPolarity", "RxDtcsCode", "CrossMode",
"TStep", "Skip", "Power", "Comment", "URCALL", "RPT1CALL", "RPT2CALL", "DVCODE"
}

Internal used set of known headers.

◆ _mandatoryHeaders

QSet< QString > const ChirpFormat::_mandatoryHeaders
staticprotected
Initial value:
= {
"Location", "Name", "Frequency", "Duplex", "Offset", "Mode"
}

Internal set of mandatory headers.

◆ _modeCodes

QHash< QString, ChirpFormat::Mode > const ChirpFormat::_modeCodes
staticprotected
Initial value:
= {
}
@ AM
AM, usually airband (not supported by qdmr yet).
@ NFM
12.5kHz FM (also NBFM).
@ DV
D-STAR (not supported by qdmr yet).
@ WFM
100kHz FM (WBFM, broadcast).
@ DN
SystemFusion (not supported by qdmr yet).
@ FM
25kHz FM (still NBFM).

Mapping of mode codes.

◆ _toneModeCodes

QHash< QString, ChirpFormat::ToneMode > const ChirpFormat::_toneModeCodes
staticprotected
Initial value:
= {
}
@ DTCS
Transmission of a DCS code and also DCS squelch.
@ DTCS_R
Transmission of a DCS code and also DCS squelch.
@ TSQL_R
Inverted, CTCSS tone squelch. That is, the squelch opens if a specific CTCSS tone is not received.
@ None
No transmission of subtones.
@ TSQL
CTCSS tone squelch.
@ Cross
More complex setting (see CrossMode).
@ Tone
Transmission of a CTCSS tone.

Mapping of tone mode codes.


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