Encodes a selective call.
More...
#include <signaling.hh>
|
|
| SelectiveCall () |
| | Empty constructor, no selective call defined.
|
| |
|
| SelectiveCall (double ctcssFreq) |
| | Constructs a CTCSS sub tone for the specified frequency in Hz.
|
| |
|
| SelectiveCall (unsigned int octalDSCCode, bool inverted) |
| | Constructs a DCS code for the specified ocal code and inversion.
|
| |
|
bool | operator== (const SelectiveCall &other) const |
| | Comparison operator.
|
| |
|
bool | operator!= (const SelectiveCall &other) const |
| | Comparison operator.
|
| |
|
bool | isInvalid () const |
| | Returns false, if a selective call is set.
|
| |
|
bool | isValid () const |
| | Returns true, if a selective call is set.
|
| |
|
bool | isCTCSS () const |
| | Returns true, if a CTCSS sub tone is set.
|
| |
|
bool | isDCS () const |
| | Returns true, if a DCS code is set.
|
| |
|
double | Hz () const |
| | If a CTCSS sub tone is set, returns the frequency in Hz (floating point).
|
| |
|
unsigned int | mHz () const |
| | If a CTCSS sub tone is set, returns the frequency in mHz (integer).
|
| |
|
unsigned int | binCode () const |
| | If a DCS code is set, returns the binary code.
|
| |
|
unsigned int | octalCode () const |
| | If a DCS code is set, returns the octal code.
|
| |
|
bool | isInverted () const |
| | If a DCS code is set, returns the inversion flag.
|
| |
|
QString | format () const |
| | Formats the selective call.
|
| |
|
|
static SelectiveCall | parseCTCSS (const QString &text) |
| | Parses a CTCSS frequency.
|
| |
|
static SelectiveCall | parseDCS (const QString &text) |
| | Parses a DCS code.
|
| |
|
static SelectiveCall | fromBinaryDCS (unsigned int code, bool inverted) |
| | Construct from binary DCS code.
|
| |
|
static const QVector< SelectiveCall > & | standard () |
| | Returns a vector of standard selective calls.
|
| |
|
| enum class | Type { None
, CTCSS
, DCS
} |
| | Type of the subtone.
|
| |
|
|
Type | type |
| | Specifies the selective call type.
|
| |
|
union { | |
| |
|
uint16_t ctcss | |
| | CTCSS frequency in 0.1Hz.
|
| |
|
struct { | |
| |
|
uint16_t code | |
| | Binary DCS code.
|
| |
|
bool inverted | |
| | If true, the code is inverted.
|
| |
| } dcs | |
| |
| }; | | |
| |
|
|
static QVector< SelectiveCall > | _standard |
| | Fixed table of standard values.
|
| |
Encodes a selective call.
This can be CTCSS sub tones or DSC codes.
The documentation for this struct was generated from the following files:
- /builddir/build/BUILD/qdmr-0.12.3-build/qdmr-0.12.3/lib/signaling.hh
- /builddir/build/BUILD/qdmr-0.12.3-build/qdmr-0.12.3/lib/signaling.cc