libdrmconf 0.12.1
A library to program DMR radios.
Loading...
Searching...
No Matches
channel.hh
1#ifndef CHANNEL_HH
2#define CHANNEL_HH
3
4#include <QObject>
5#include <QAbstractTableModel>
6
7#include "configobject.hh"
8#include "configreference.hh"
9#include "signaling.hh"
10
11#include "opengd77_extension.hh"
12#include "tyt_extensions.hh"
13#include "opengd77_extension.hh"
14#include "anytone_extension.hh"
15#include "commercial_extension.hh"
16
17class Config;
18class RXGroupList;
19class DMRContact;
20class ScanList;
21class APRSSystem;
23class RoamingZone;
24class DMRRadioID;
25
26
33class Channel: public ConfigObject
34{
35 Q_OBJECT
36
38 Q_PROPERTY(Frequency rxFrequency READ rxFrequency WRITE setRXFrequency SCRIPTABLE false)
40 Q_PROPERTY(Frequency txFrequency READ txFrequency WRITE setTXFrequency SCRIPTABLE false)
42 Q_PROPERTY(Power power READ power WRITE setPower SCRIPTABLE false)
44 Q_PROPERTY(unsigned timeout READ timeout WRITE setTimeout SCRIPTABLE false)
46 Q_PROPERTY(bool rxOnly READ rxOnly WRITE setRXOnly)
50 Q_PROPERTY(unsigned vox READ vox WRITE setVOX SCRIPTABLE false)
55
57 Q_CLASSINFO("IdPrefix", "ch")
58
59public:
61 enum class Power {
62 Max,
63 High,
64 Mid,
65 Low,
66 Min
67 };
68 Q_ENUM(Power)
69
70protected:
73 explicit Channel(QObject *parent=nullptr);
75 Channel(const Channel &other, QObject *parent=nullptr);
76
77public:
78 bool copy(const ConfigItem &other);
79 void clear();
80
82 Frequency rxFrequency() const;
84 bool setRXFrequency(Frequency freq);
86 Frequency txFrequency() const;
88 bool setTXFrequency(Frequency freq);
89
91 bool defaultPower() const;
93 Power power() const;
95 void setPower(Power power);
97 void setDefaultPower();
98
100 bool defaultTimeout() const;
102 bool timeoutDisabled() const;
104 unsigned timeout() const;
106 bool setTimeout(unsigned dur);
108 void disableTimeout();
110 void setDefaultTimeout();
111
113 bool rxOnly() const;
115 bool setRXOnly(bool enable);
116
118 bool voxDisabled() const;
120 bool defaultVOX() const;
122 unsigned vox() const;
124 void setVOX(unsigned level);
126 void setVOXDefault();
128 void disableVOX();
129
131 const ScanListReference *scanListRef() const;
135 ScanList *scanList() const;
137 bool setScanList(ScanList *list);
138
144
150
151public:
152 bool parse(const YAML::Node &node, Context &ctx, const ErrorStack &err=ErrorStack());
153 bool link(const YAML::Node &node, const Context &ctx, const ErrorStack &err=ErrorStack());
154
155protected:
156 bool populate(YAML::Node &node, const Context &context, const ErrorStack &err=ErrorStack());
157
158protected slots:
160 void onReferenceModified();
161
162protected:
172 unsigned _txTimeOut;
176 unsigned _vox;
183};
184
185
190{
191 Q_OBJECT
192
193protected:
195 explicit AnalogChannel(QObject *parent=nullptr);
196
197public:
199 AnalogChannel(const AnalogChannel &other, QObject *parent=nullptr);
200};
201
202
210{
211 Q_OBJECT
212
214 Q_PROPERTY(Admit admit READ admit WRITE setAdmit)
216 Q_PROPERTY(unsigned squelch READ squelch WRITE setSquelch SCRIPTABLE false)
218 Q_PROPERTY(SelectiveCall rxTone READ rxTone WRITE setRXTone)
220 Q_PROPERTY(SelectiveCall txTone READ txTone WRITE setTXTone)
224 Q_PROPERTY(APRSSystemReference* aprs READ aprs WRITE setAPRS)
225
228
229
230public:
232 enum class Admit {
233 Always,
234 Free,
235 Tone
236 };
237 Q_ENUM(Admit)
238
239
240 enum class Bandwidth {
241 Narrow,
242 Wide
243 };
244 Q_ENUM(Bandwidth)
245
246public:
248 Q_INVOKABLE explicit FMChannel(QObject *parent=nullptr);
250 FMChannel(const FMChannel &other, QObject *parent=nullptr);
251
252 bool copy(const ConfigItem &other);
253 ConfigItem *clone() const;
254 void clear();
255
257 Admit admit() const;
259 void setAdmit(Admit admit);
260
262 bool defaultSquelch() const;
264 bool squelchDisabled() const;
266 unsigned squelch() const;
268 bool setSquelch(unsigned squelch);
270 void disableSquelch();
272 void setSquelchDefault();
273
275 SelectiveCall rxTone() const;
277 bool setRXTone(SelectiveCall code);
279 SelectiveCall txTone() const;
281 bool setTXTone(SelectiveCall code);
282
284 Bandwidth bandwidth() const;
286 bool setBandwidth(Bandwidth bw);
287
289 const APRSSystemReference *aprs() const;
293 void setAPRS(APRSSystemReference *ref);
295 APRSSystem *aprsSystem() const;
297 void setAPRSSystem(APRSSystem *sys);
298
304
305public:
306 YAML::Node serialize(const Context &context, const ErrorStack &err=ErrorStack());
307 bool parse(const YAML::Node &node, Context &ctx, const ErrorStack &err=ErrorStack());
308
309protected:
310 bool populate(YAML::Node &node, const Context &context, const ErrorStack &err=ErrorStack());
311
312protected:
316 unsigned _squelch;
325
328};
329
330
335{
336 Q_OBJECT
337
338protected:
340 explicit DigitalChannel(QObject *parent=nullptr);
341
342public:
344 DigitalChannel(const DigitalChannel &other, QObject *parent=nullptr);
345};
346
347
354{
355 Q_OBJECT
356
358 Q_PROPERTY(Admit admit READ admit WRITE setAdmit)
360 Q_PROPERTY(unsigned colorCode READ colorCode WRITE setColorCode)
362 Q_PROPERTY(TimeSlot timeSlot READ timeSlot WRITE setTimeSlot)
373
378
379public:
381 enum class Admit {
382 Always,
383 Free,
384 ColorCode
385 };
386 Q_ENUM(Admit)
387
388
389 enum class TimeSlot {
390 TS1,
391 TS2
392 };
393 Q_ENUM(TimeSlot)
394
395public:
397 Q_INVOKABLE explicit DMRChannel(QObject *parent=nullptr);
399 DMRChannel(const DMRChannel &other, QObject *parent=nullptr);
400
401 ConfigItem *clone() const;
402 void clear();
403
405 Admit admit() const;
407 void setAdmit(Admit admit);
408
410 unsigned colorCode() const;
412 bool setColorCode(unsigned cc);
413
415 TimeSlot timeSlot() const;
417 bool setTimeSlot(TimeSlot ts);
418
420 const GroupListReference *groupList() const;
426 RXGroupList *groupListObj() const;
428 bool setGroupListObj(RXGroupList *rxg);
429
431 const DMRContactReference *contact() const;
437 DMRContact *txContactObj() const;
440
442 const PositioningSystemReference *aprs() const;
448 PositioningSystem *aprsObj() const;
450 bool setAPRSObj(PositioningSystem *sys);
451
453 const RoamingZoneReference *roaming() const;
459 RoamingZone *roamingZone() const;
461 bool setRoamingZone(RoamingZone *zone);
462
464 const DMRRadioIDReference *radioId() const;
470 DMRRadioID *radioIdObj() const;
472 bool setRadioIdObj(DMRRadioID *id);
473
478
484
485public:
486 YAML::Node serialize(const Context &context, const ErrorStack &err=ErrorStack());
487
488protected:
492 unsigned _colorCode;
505
510};
511
512
516{
517 Q_OBJECT
518
519protected:
522 explicit SelectedChannel();
523
524public:
526 virtual ~SelectedChannel();
527
528 bool copy(const ConfigItem &other);
529 ConfigItem *clone() const;
530
532 static SelectedChannel *get();
533
534protected:
537};
538
539
548{
549 Q_OBJECT
550
551public:
553 explicit ChannelList(QObject *parent=nullptr);
554
555 int add(ConfigObject *obj, int row=-1, bool unique=true);
556
558 Channel *channel(int idx) const;
560 DMRChannel *findDMRChannel(Frequency rx, Frequency tx, DMRChannel::TimeSlot ts, unsigned cc) const;
563
564public:
565 ConfigItem *allocateChild(const YAML::Node &node, ConfigItem::Context &ctx, const ErrorStack &err=ErrorStack());
566};
567
568
569#endif // CHANNEL_HH
Implements a reference to an APRS system.
Definition configreference.hh:229
Represents an APRS system within the generic config.
Definition gpssystem.hh:132
Base class for all analog channels.
Definition channel.hh:190
AnalogChannel(QObject *parent=nullptr)
Hidden constructor.
Definition channel.cc:382
Implements the settings extension for DMR channels on AnyTone devices.
Definition anytone_extension.hh:221
Implements the settings extension for FM channels on AnyTone devices.
Definition anytone_extension.hh:141
Container class holding all channels (analog and digital) for a specific configuration (Config).
Definition channel.hh:548
ChannelList(QObject *parent=nullptr)
Constructs an empty channel list.
Definition channel.cc:971
int add(ConfigObject *obj, int row=-1, bool unique=true)
Adds an element to the list.
Definition channel.cc:978
ConfigItem * allocateChild(const YAML::Node &node, ConfigItem::Context &ctx, const ErrorStack &err=ErrorStack())
Allocates a member objects for the given YAML node.
Definition channel.cc:1023
Channel * channel(int idx) const
Gets the channel at the specified index.
Definition channel.cc:987
DMRChannel * findDMRChannel(Frequency rx, Frequency tx, DMRChannel::TimeSlot ts, unsigned cc) const
Finds a digital channel with the given frequencies, time slot and color code.
Definition channel.cc:994
FMChannel * findFMChannelByTxFreq(Frequency freq) const
Finds an analog channel with the given frequency.
Definition channel.cc:1012
The base class of all channels (analog and digital) of a codeplug configuration.
Definition channel.hh:34
ScanList * scanList() const
Returns the default scan list for the channel.
Definition channel.cc:234
bool link(const YAML::Node &node, const Context &ctx, const ErrorStack &err=ErrorStack())
Links the given object to the rest of the codeplug using the given context.
Definition channel.cc:365
void setDefaultTimeout()
Sets the timeout to the global default timeout.
Definition channel.cc:172
unsigned _txTimeOut
Transmit timeout in seconds.
Definition channel.hh:172
bool defaultTimeout() const
Returns true if the transmit timeout is specified by the global default value.
Definition channel.cc:146
ScanListReference * scanListRef
The scan list.
Definition channel.hh:48
TyTChannelExtension * tyt
The TyT channel extension.
Definition channel.hh:54
bool _defaultPower
If true, the channel uses the global power setting.
Definition channel.hh:168
bool setTimeout(unsigned dur)
(Re-)Sets the TX timeout (TOT) in seconds.
Definition channel.cc:161
Frequency _txFreq
The TX frequency in Hz.
Definition channel.hh:166
void setPower(Power power)
(Re-)Sets the power setting of the channel, overrides default power.
Definition channel.cc:127
unsigned _vox
Holds the VOX level.
Definition channel.hh:176
Power power
The transmit power.
Definition channel.hh:42
Power
Specifies the prefix for every ID assigned to every channel during serialization.
Definition channel.hh:61
@ Low
Low power setting (e.g., 1W).
@ Mid
Medium power setting (e.g., 2W, if available)
@ High
High power setting (e.g, 5W).
@ Max
Highest power setting (e.g. > 5W, if available).
@ Min
Lowest power setting (e.g., <1W, if available).
TyTChannelExtension * tytChannelExtension() const
Returns the channel extension for TyT devices.
Definition channel.cc:265
void setTyTChannelExtension(TyTChannelExtension *ext)
Sets the TyT channel extension.
Definition channel.cc:269
void clear()
Clears the config object.
Definition channel.cc:67
bool voxDisabled() const
Returns true if the VOX is disabled.
Definition channel.cc:198
bool populate(YAML::Node &node, const Context &context, const ErrorStack &err=ErrorStack())
Recursively serializes the configuration to YAML nodes.
Definition channel.cc:282
TyTChannelExtension * _tytChannelExtension
Owns the TyT channel extension object.
Definition channel.hh:182
OpenGD77ChannelExtension * _openGD77ChannelExtension
Owns the OpenGD77 channel extension object.
Definition channel.hh:180
void setDefaultPower()
Sets the channel to use the default power setting.
Definition channel.cc:136
unsigned vox
The VOX setting.
Definition channel.hh:50
bool copy(const ConfigItem &other)
Copies the given item into this one.
Definition channel.cc:51
void disableTimeout()
Disables the transmit timeout.
Definition channel.cc:181
bool _rxOnly
RX only flag.
Definition channel.hh:174
bool rxOnly
If true, the channel is receive only.
Definition channel.hh:46
bool timeoutDisabled() const
Returns true if the transmit timeout is disabled.
Definition channel.cc:151
Channel(QObject *parent=nullptr)
Hidden constructor.
Definition channel.cc:29
ScanListReference * scanListRef()
Returns the reference to the scan list.
bool setRXOnly(bool enable)
Set, whether the channel is RX only.
Definition channel.cc:191
bool defaultVOX() const
Returns true if the VOX is specified by the global default value.
Definition channel.cc:202
bool defaultPower() const
Returns true if the channel uses the global default power setting.
Definition channel.cc:117
Frequency rxFrequency
The receive frequency of the channel in Hz.
Definition channel.hh:38
OpenGD77ChannelExtension * openGD77ChannelExtension() const
Returns the channel extension for the OpenGD77 firmware.
Definition channel.cc:248
bool setTXFrequency(Frequency freq)
(Re-)Sets the TX frequency of the channel in Hz.
Definition channel.cc:105
unsigned timeout
The transmit timeout in seconds.
Definition channel.hh:44
bool parse(const YAML::Node &node, Context &ctx, const ErrorStack &err=ErrorStack())
Parses the given YAML node, updates the given object and updates the given context (IDs).
Definition channel.cc:316
void disableVOX()
Disables the VOX.
Definition channel.cc:219
void onReferenceModified()
Gets called whenever a referenced object is changed or deleted.
Definition channel.cc:243
Frequency _rxFreq
The RX frequency in Hz.
Definition channel.hh:164
void setOpenGD77ChannelExtension(OpenGD77ChannelExtension *ext)
Sets the OpenGD77 channel extension.
Definition channel.cc:252
bool setScanList(ScanList *list)
(Re-) Sets the default scan list for the channel.
Definition channel.cc:238
bool setRXFrequency(Frequency freq)
(Re-)Sets the RX frequency of the channel in Hz.
Definition channel.cc:89
void setVOXDefault()
Sets the VOX level to the default value.
Definition channel.cc:215
ScanListReference _scanlist
Default scan list of the channel.
Definition channel.hh:178
void setVOX(unsigned level)
Sets the VOX level [0-10].
Definition channel.cc:210
OpenGD77ChannelExtension * openGD77
The OpenGD77 channel extension.
Definition channel.hh:52
Frequency txFrequency
The transmit frequency of the channel in Hz.
Definition channel.hh:40
Power _power
The transmit power setting.
Definition channel.hh:170
Implements the generic extension for all channels configuring commercial features of DMR.
Definition commercial_extension.hh:35
Parse context for config objects.
Definition configobject.hh:48
Base class for all configuration objects (channels, zones, contacts, etc).
Definition configobject.hh:40
List class for config objects.
Definition configobject.hh:349
Base class of all labeled and named objects.
Definition configobject.hh:199
The config class, representing the codeplug configuration.
Definition config.hh:70
Extension to the DigitalChannel class to implement an DMR channel.
Definition channel.hh:354
ConfigItem * clone() const
Clones this item.
Definition channel.cc:690
CommercialChannelExtension * commercial
The commercial channel extension.
Definition channel.hh:375
void setAnytoneChannelExtension(AnytoneDMRChannelExtension *ext)
Sets the AnyTone DMR channel extension.
Definition channel.cc:911
void setRadioId(DMRRadioIDReference *ref)
Sets the reference to the radio ID.
Definition channel.cc:869
DMRRadioID * radioIdObj() const
Returns the radio ID associated with this channel.
Definition channel.cc:877
DMRContactReference * contact()
Returns a reference to the transmit contact.
bool setTXContactObj(DMRContact *c)
(Re-) Sets the default TX contact for this channel.
Definition channel.cc:790
TimeSlot
Possible timeslots for digital channels.
Definition channel.hh:389
@ TS2
Time/repeater slot 2.
@ TS1
Time/repeater slot 1.
void setAdmit(Admit admit)
(Re-)Sets the admit criterion for the channel.
Definition channel.cc:704
bool setTimeSlot(TimeSlot ts)
(Re-)Sets the time slot for the channel.
Definition channel.cc:729
void setRoaming(RoamingZoneReference *ref)
Sets the reference to the roaming zone.
Definition channel.cc:839
RoamingZone * roamingZone() const
Returns the roaming zone associated with this channel or nullptr if not set.
Definition channel.cc:847
RXGroupList * groupListObj() const
Returns the RX group list for the channel.
Definition channel.cc:754
TimeSlot timeSlot
The time slot of the channel.
Definition channel.hh:362
bool setAPRSObj(PositioningSystem *sys)
Associates the GPS System with this channel.
Definition channel.cc:821
bool setColorCode(unsigned cc)
(Re-)Sets the color code for the channel.
Definition channel.cc:714
unsigned _colorCode
The channel color code.
Definition channel.hh:492
AnytoneDMRChannelExtension * _anytoneExtension
Owns the AnyTone DMR channel extension.
Definition channel.hh:509
GroupListReference * groupList
The rx group list.
Definition channel.hh:366
Admit
Possible admit criteria of digital channels.
Definition channel.hh:381
@ Always
No admit criteria, allows one to transmit any time.
@ Free
Transmit only if channel is free.
@ ColorCode
Transmit if channel is free or differs given color code.
void setCommercialExtension(CommercialChannelExtension *ext)
Sets the commercial channel extension.
Definition channel.cc:894
DMRContactReference * contact
The tx contact.
Definition channel.hh:368
AnytoneDMRChannelExtension * anytoneChannelExtension() const
Returns the DMR channel extension for AnyTone devices.
Definition channel.cc:907
DMRRadioIDReference _radioId
Radio ID to use on this channel.
Definition channel.hh:504
Admit _admit
The admit criterion.
Definition channel.hh:490
void setAPRS(PositioningSystemReference *ref)
Sets the reference to the positioning system.
Definition channel.cc:808
bool setRadioIdObj(DMRRadioID *id)
Associates the given radio ID with this channel.
Definition channel.cc:882
PositioningSystemReference _posSystem
The GPS system.
Definition channel.hh:500
void setGroupList(GroupListReference *ref)
Sets the reference to the group list.
Definition channel.cc:746
DMRRadioIDReference * radioId()
Returns the reference to the radio ID.
DMRRadioIDReference * radioId
The radio ID.
Definition channel.hh:364
unsigned colorCode
The color code of the channel.
Definition channel.hh:360
CommercialChannelExtension * commercialExtension() const
Returns the extension for commercial features.
Definition channel.cc:890
void clear()
Clears the config object.
Definition channel.cc:676
Admit admit
The admit criterion of the channel.
Definition channel.hh:358
TimeSlot _timeSlot
The time slot for the channel.
Definition channel.hh:494
GroupListReference _rxGroup
The RX group list for this channel.
Definition channel.hh:496
RoamingZoneReference * roaming
The roaming zone.
Definition channel.hh:372
GroupListReference * groupList()
Returns a reference to the group list.
RoamingZoneReference * roaming()
Returns a reference to the roaming zone.
CommercialChannelExtension * _commercialExtension
Owns the commercial channel extension.
Definition channel.hh:507
bool setRoamingZone(RoamingZone *zone)
Associates the given roaming zone with this channel.
Definition channel.cc:852
PositioningSystem * aprsObj() const
Returns the GPS system associated with this channel or nullptr if not set.
Definition channel.cc:816
DMRContactReference _txContact
The default TX contact.
Definition channel.hh:498
bool setGroupListObj(RXGroupList *rxg)
(Re-)Sets the RX group list for the channel.
Definition channel.cc:759
PositioningSystemReference * aprs()
Returns a reference to the positioning system.
DMRContact * txContactObj() const
Returns the default TX contact to call on this channel.
Definition channel.cc:785
Q_INVOKABLE DMRChannel(QObject *parent=nullptr)
Constructs a new empty digital (DMR) channel.
Definition channel.cc:632
RoamingZoneReference _roaming
Roaming zone for the channel.
Definition channel.hh:502
void setContact(DMRContactReference *ref)
Sets the reference to the transmit contact.
Definition channel.cc:777
PositioningSystemReference * aprs
The positioning system.
Definition channel.hh:370
AnytoneDMRChannelExtension * anytone
The AnyTone DMR channel extension.
Definition channel.hh:377
YAML::Node serialize(const Context &context, const ErrorStack &err=ErrorStack())
Recursively serializes the configuration to YAML nodes.
Definition channel.cc:924
Represents a reference to a DMR contact.
Definition configreference.hh:99
Represents a digital contact, that is a DMR number.
Definition contact.hh:141
Implements a reference to a radio ID.
Definition configreference.hh:251
Represents a DMR radio ID within the abstract config.
Definition radioid.hh:33
Base class of all digital channels.
Definition channel.hh:335
DigitalChannel(QObject *parent=nullptr)
Hidden constructor.
Definition channel.cc:616
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:41
Extension to the AnalogChannel class to implement an analog FM channel.
Definition channel.hh:210
Bandwidth bandwidth
The band width of the channel.
Definition channel.hh:222
APRSSystem * aprsSystem() const
Returns the APRS system used for this channel or nullptr if disabled.
Definition channel.cc:539
AnytoneFMChannelExtension * anytoneChannelExtension() const
Returns the FM channel extension for AnyTone devices.
Definition channel.cc:548
void setSquelchDefault()
Sets the squelch to the global default value.
Definition channel.cc:484
AnytoneFMChannelExtension * anytone
The AnyTone FM channel extension.
Definition channel.hh:227
bool setBandwidth(Bandwidth bw)
(Re-)Sets the bandwidth of the analog channel.
Definition channel.cc:515
unsigned _squelch
Holds the squelch level [0,10].
Definition channel.hh:316
SelectiveCall txTone
The TX tone (CTCSS/DSC).
Definition channel.hh:220
Admit _admit
Holds the admit criterion.
Definition channel.hh:314
bool defaultSquelch() const
Returns true if the global default squelch level is used.
Definition channel.cc:462
Admit admit
The admit criterion of the channel.
Definition channel.hh:214
SelectiveCall rxTone
The RX tone (CTCSS/DSC).
Definition channel.hh:218
unsigned squelch
The squelch level of the channel [1-10].
Definition channel.hh:216
Bandwidth _bw
The channel bandwidth.
Definition channel.hh:322
APRSSystemReference * aprs()
Returns the reference to the APRS system.
bool copy(const ConfigItem &other)
Copies the given item into this one.
Definition channel.cc:418
Admit
Admit criteria of analog channel.
Definition channel.hh:232
@ Always
Allow always.
@ Free
Allow when channel free.
@ Tone
Allow when free or wrong ctcss/dcs tone is present.
void setAdmit(Admit admit)
(Re-)Sets the admit criterion for the analog channel.
Definition channel.cc:456
ConfigItem * clone() const
Clones this item.
Definition channel.cc:430
SelectiveCall _rxTone
The RX CTCSS/DCS setting.
Definition channel.hh:318
bool squelchDisabled() const
Returns true if the squelch is disabled.
Definition channel.cc:466
Q_INVOKABLE FMChannel(QObject *parent=nullptr)
Constructs a new empty analog channel.
Definition channel.cc:399
bool setTXTone(SelectiveCall code)
(Re-)Sets the CTCSS/DCS TX tone, SIGNALING_NONE disables the TX tone.
Definition channel.cc:504
bool parse(const YAML::Node &node, Context &ctx, const ErrorStack &err=ErrorStack())
Parses the given YAML node, updates the given object and updates the given context (IDs).
Definition channel.cc:591
SelectiveCall _txTone
The TX CTCSS/DCS setting.
Definition channel.hh:320
YAML::Node serialize(const Context &context, const ErrorStack &err=ErrorStack())
Recursively serializes the configuration to YAML nodes.
Definition channel.cc:565
void disableSquelch()
Disables the quelch.
Definition channel.cc:480
bool setSquelch(unsigned squelch)
(Re-)Sets the squelch level [0,10].
Definition channel.cc:474
bool populate(YAML::Node &node, const Context &context, const ErrorStack &err=ErrorStack())
Recursively serializes the configuration to YAML nodes.
Definition channel.cc:576
APRSSystemReference _aprsSystem
A reference to the APRS system used on the channel or nullptr if disabled.
Definition channel.hh:324
AnytoneFMChannelExtension * _anytoneExtension
Owns the AnyTone FM channel extension.
Definition channel.hh:327
Bandwidth
Possible bandwidth of an analog channel.
Definition channel.hh:240
@ Narrow
Narrow bandwidth (12.5kHz).
@ Wide
Wide bandwidth (25kHz).
bool setRXTone(SelectiveCall code)
(Re-)Sets the CTCSS/DCS RX tone, SIGNALING_NONE disables the RX tone.
Definition channel.cc:493
void clear()
Clears the config object.
Definition channel.cc:440
void setAPRS(APRSSystemReference *ref)
Sets the APRS system reference.
Definition channel.cc:532
void setAnytoneChannelExtension(AnytoneFMChannelExtension *ext)
Sets the AnyTone FM channel extension.
Definition channel.cc:552
void setAPRSSystem(APRSSystem *sys)
Sets the APRS system.
Definition channel.cc:543
APRSSystemReference * aprs
The APRS system.
Definition channel.hh:224
Implements a reference to a group list.
Definition configreference.hh:262
Implements the channel extensions for the OpenGD77 radios.
Definition opengd77_extension.hh:18
Implements a reference to a positioning system.
Definition configreference.hh:214
Base class of the positioning systems, that is APRS and DMR position reporting system.
Definition gpssystem.hh:17
Generic representation of a RX group list.
Definition rxgrouplist.hh:14
Implements a reference to a roaming zone.
Definition configreference.hh:273
Represents a RoamingZone within the abstract device configuration.
Definition roamingzone.hh:15
Implements a reference to a scan list.
Definition configreference.hh:203
Generic representation of a scan list.
Definition scanlist.hh:15
Internal singleton class representing the "currently selected" channel.
Definition channel.hh:516
static SelectedChannel * _instance
Holds the channel singleton instance.
Definition channel.hh:536
virtual ~SelectedChannel()
Destructor.
Definition channel.cc:946
ConfigItem * clone() const
Clones this item.
Definition channel.cc:956
bool copy(const ConfigItem &other)
Copies the given item into this one.
Definition channel.cc:951
static SelectedChannel * get()
Constructs/gets the singleton instance.
Definition channel.cc:961
SelectedChannel()
Constructs the "selected" channel.
Definition channel.cc:940
Represents the TyT channel extension.
Definition tyt_extensions.hh:13
Helper type to encode frequencies without any rounding error.
Definition frequency.hh:11
Encodes a selective call.
Definition signaling.hh:13