libdrmconf 0.12.1
A library to program DMR radios.
 
Loading...
Searching...
No Matches
ChirpFormat Class Reference

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

#include <chirpformat.hh>

Inheritance diagram for ChirpFormat:

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.
 
static const QSet< QString > _knownHeaders
 Internal used set of known headers.
 
static const QHash< QString, Duplex_duplexCodes
 Mapping of duplex codes.
 
static const QHash< QString, Mode_modeCodes
 Mapping of mode codes.
 
static const QHash< QString, ToneMode_toneModeCodes
 Mapping of tone mode codes.
 
static const QHash< QString, CrossMode_crossModes
 Mapping of cross mode codes.
 

Detailed Description

Some common constants for the CIRP reader/writer.

Member Enumeration Documentation

◆ CrossMode

enum class 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 class 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 class 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 class ChirpFormat::Polarity
strongprotected

Polarity of DCS codes.

Enumerator
Normal 

Normal DCS encoding.

Reversed 

Reversed DCS encoding.

◆ ToneMode

enum class 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.
Definition chirpformat.hh:70
@ ToneDTCS
TX CTCSS, RX DCS.
Definition chirpformat.hh:69
@ NoneDTCS
No TX, RX DCS.
Definition chirpformat.hh:66
@ DTCSTone
TX DCS, RX CTCSS.
Definition chirpformat.hh:71
@ ToneTone
TX CTCSS, RX CTCSS.
Definition chirpformat.hh:68
@ NoneTone
No TX, RX CTCSS.
Definition chirpformat.hh:65
@ ToneNone
TX CTCSS, no RX.
Definition chirpformat.hh:67
@ DTCSDTCS
TX DCS, RX DCS.
Definition chirpformat.hh:72

Mapping of cross mode codes.

◆ _duplexCodes

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

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).
Definition chirpformat.hh:40
@ NFM
12.5kHz FM (also NBFM).
Definition chirpformat.hh:38
@ DV
D-STAR (not supported by qdmr yet).
Definition chirpformat.hh:41
@ WFM
100kHz FM (WBFM, broadcast).
Definition chirpformat.hh:39
@ DN
SystemFusion (not supported by qdmr yet).
Definition chirpformat.hh:42
@ FM
25kHz FM (still NBFM).
Definition chirpformat.hh:37

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.
Definition chirpformat.hh:51
@ DTCS_R
Transmission of a DCS code and also DCS squelch.
Definition chirpformat.hh:52
@ TSQL_R
Inverted, CTCSS tone squelch. That is, the squelch opens if a specific CTCSS tone is not received.
Definition chirpformat.hh:50
@ None
No transmission of subtones.
Definition chirpformat.hh:47
@ TSQL
CTCSS tone squelch.
Definition chirpformat.hh:49
@ Cross
More complex setting (see CrossMode).
Definition chirpformat.hh:53
@ Tone
Transmission of a CTCSS tone.
Definition chirpformat.hh:48

Mapping of tone mode codes.


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