1 #ifndef D868UVFILEREADER_HH
2 #define D868UVFILEREADER_HH
4 #include "d868uv_codeplug.hh"
5 #include "anytone_filereader.hh"
19 uint16_t
index()
const;
21 D868UVCodeplug::channel_t::Mode
mode()
const;
29 AnalogChannel::Bandwidth
bandwidth()
const;
43 DigitalChannel::TimeSlot
timeSlot()
const;
62 uint8_t
index()
const;
83 uint8_t
index()
const;
112 uint8_t
index()
const;
124 QString
name()
const;
143 uint8_t
index()
const;
147 QString
name()
const;
PriChannel
Defines all possible priority channel selections.
Definition: anytone_codeplug.hh:609
Base class for all elements in the codeplug file.
Definition: anytone_filereader.hh:16
This class implements a reader of AnyTone codeplug files.
Definition: anytone_filereader.hh:12
Power
Specifies the prefix for every ID assigned to every channel during serialization.
Definition: channel.hh:61
The config class, representing the codeplug configuration.
Definition: config.hh:70
Representsa a channel encoded in the manufacturer CPS file.
Definition: d868uv_filereader.hh:14
DigitalChannel::TimeSlot timeSlot() const
Returns the time slot of the channel (if digital).
Definition: d868uv_filereader.cc:119
Signaling::Code rxSignaling() const
Returns the RX CTCSS/DCS settings.
Definition: d868uv_filereader.cc:77
AnalogChannel::Admit admitAnalog() const
Returns the admit cirterion for the channel (if analog).
Definition: d868uv_filereader.cc:102
size_t size() const
Returns the storage size of the element.
Definition: d868uv_filereader.cc:129
DigitalChannel::Admit admitDigital() const
Returns the admit cirterion for the channel (if digital).
Definition: d868uv_filereader.cc:89
D868UVCodeplug::channel_t::Mode mode() const
Returns the channel mode (Analog, Digital, Mixed...).
Definition: d868uv_filereader.cc:25
uint8_t colorCode() const
Returns the color code of the channel (if digital).
Definition: d868uv_filereader.cc:114
Channel::Power power() const
Returns the power setting.
Definition: d868uv_filereader.cc:52
ChannelElement(const uint8_t *ptr)
Constructor.
Definition: d868uv_filereader.cc:13
size_t _nameLength
The length of the name.
Definition: d868uv_filereader.hh:51
double rxFrequency() const
Return the RX frequency.
Definition: d868uv_filereader.cc:30
double txFrequency() const
Return the TX frequency.
Definition: d868uv_filereader.cc:35
uint16_t index() const
Returns the index of the channel.
Definition: d868uv_filereader.cc:20
QString name() const
Returns the name of the channel.
Definition: d868uv_filereader.cc:124
Signaling::Code txSignaling() const
Returns the TX CTCSS/DCS settings.
Definition: d868uv_filereader.cc:83
bool rxOnly() const
Returns true if the channel is RX only.
Definition: d868uv_filereader.cc:72
AnalogChannel::Bandwidth bandwidth() const
Returns the bandwidth.
Definition: d868uv_filereader.cc:66
Decodes a radio ID from the manufacturer CPS file.
Definition: d868uv_filereader.hh:56
size_t size() const
Returns the storage size of the element.
Definition: d868uv_filereader.cc:160
uint8_t index() const
Returns the index of the ID.
Definition: d868uv_filereader.cc:144
QString name() const
Returns the name of the radio ID.
Definition: d868uv_filereader.cc:155
uint32_t id() const
Returns the ID.
Definition: d868uv_filereader.cc:149
RadioIDElement(const uint8_t *ptr)
Constructor for radio ID element.
Definition: d868uv_filereader.cc:137
size_t _nameLength
Holds the length of the name.
Definition: d868uv_filereader.hh:72
Represents a scan list in the manufacturer CPS file.
Definition: d868uv_filereader.hh:106
size_t _nameLength
Holds the name length.
Definition: d868uv_filereader.hh:132
size_t size() const
Returns the storage size of the element.
Definition: d868uv_filereader.cc:247
QString name() const
Returns the name of the scan list.
Definition: d868uv_filereader.cc:242
uint16_t channel(uint8_t index) const
Returns the i-th channel index.
Definition: d868uv_filereader.cc:237
ScanListElement(const uint8_t *ptr)
Constructor.
Definition: d868uv_filereader.cc:204
uint8_t numChannels() const
Returns the number of channels in the scan list.
Definition: d868uv_filereader.cc:217
uint8_t index() const
Returns the index of the scan list.
Definition: d868uv_filereader.cc:212
uint16_t prioChannel1() const
Returns the priority channel 1 index.
Definition: d868uv_filereader.cc:227
uint16_t prioChannel2() const
Returns the priority channel 2 index.
Definition: d868uv_filereader.cc:232
uint8_t _numChannels
Holds the number of channels.
Definition: d868uv_filereader.hh:130
AnytoneCodeplug::ScanListElement::PriChannel prioChannelSelect() const
Returns the priority channel selection.
Definition: d868uv_filereader.cc:222
Represents a zone within the manufacturer CPS file.
Definition: d868uv_filereader.hh:77
uint8_t _numChannels
Holds the number of channels.
Definition: d868uv_filereader.hh:99
uint16_t channel(uint8_t index) const
Returns the channel index for the i-th entry.
Definition: d868uv_filereader.cc:186
uint8_t index() const
Returns the index of the zone.
Definition: d868uv_filereader.cc:176
uint16_t channelB() const
Returns the number of channels in B.
size_t size() const
Returns the storage size of the element.
Definition: d868uv_filereader.cc:196
uint8_t numChannels() const
Returns the total number of channels in zone.
Definition: d868uv_filereader.cc:181
QString name() const
Returns the name of the zone.
Definition: d868uv_filereader.cc:191
ZoneElement(const uint8_t *ptr)
Constructor.
Definition: d868uv_filereader.cc:168
size_t _nameLength
Holds the name length.
Definition: d868uv_filereader.hh:101
uint16_t channelA() const
Returns the number of channels in A.
Reads manufacturer CPS files.
Definition: d868uv_filereader.hh:10
bool readChannels()
Read all channels.
Definition: d868uv_filereader.cc:307
bool linkRadioIDs()
Link elements.
Definition: d868uv_filereader.cc:398
bool linkHeader()
Link elements.
Definition: d868uv_filereader.cc:300
virtual bool linkChannel()
Links a channel.
Definition: d868uv_filereader.cc:358
virtual bool readScanList()
Reads a scan list.
Definition: d868uv_filereader.cc:470
virtual bool readAnalogContact()
Reads an analog contact.
Definition: d868uv_filereader.cc:538
bool readRadioIDs()
Read all radio IDs.
Definition: d868uv_filereader.cc:367
virtual bool readZone()
Reads a zone.
Definition: d868uv_filereader.cc:420
bool linkZones()
Link elements.
Definition: d868uv_filereader.cc:446
bool readHeader()
Read header of file.
Definition: d868uv_filereader.cc:293
bool linkChannels()
Link elements.
Definition: d868uv_filereader.cc:346
bool readAnalogContacts()
Read all DTMF contacts.
Definition: d868uv_filereader.cc:527
virtual bool readChannel()
Reads a channel.
Definition: d868uv_filereader.cc:319
virtual bool readRadioID()
Reads a radio ID.
Definition: d868uv_filereader.cc:379
D868UVFileReader(Config *config, const uint8_t *data, size_t size, QString &message)
Constructs a file reader for the given manufacturer CPS file (data, size).
Definition: d868uv_filereader.cc:286
bool readZones()
Read all zones.
Definition: d868uv_filereader.cc:409
bool linkAnalogContacts()
Link elements.
Definition: d868uv_filereader.cc:553
bool linkScanLists()
Link elements.
Definition: d868uv_filereader.cc:516
bool readScanLists()
Read all scal lists.
Definition: d868uv_filereader.cc:458
Code
This huge enum lists all possible RX/TX tones that can be associated with analog channels.
Definition: signaling.hh:18