12 #include "signaling.hh"
13 #include "gpssystem.hh"
14 #include <QGeoCoordinate>
19 QString decode_unicode(
const uint16_t *data,
size_t size, uint16_t fill=0x0000);
22 void encode_unicode(uint16_t *data,
const QString &text,
size_t size, uint16_t fill=0x0000);
26 QString decode_ascii(
const uint8_t *data,
size_t size, uint16_t fill=0x00);
29 void encode_ascii(uint8_t *data,
const QString &text,
size_t size, uint16_t fill=0x00);
33 QString decode_utf8(
const uint8_t *data,
size_t size, uint16_t fill=0x00);
36 void encode_utf8(uint8_t *data,
const QString &text,
size_t size, uint16_t fill=0x00);
39 double decode_frequency(uint32_t bcd);
41 uint32_t encode_frequency(
double freq);
44 uint32_t decode_dmr_id_bin(
const uint8_t *
id);
46 void encode_dmr_id_bin(uint8_t *
id, uint32_t num);
48 uint32_t decode_dmr_id_bcd(
const uint8_t *
id);
50 uint32_t decode_dmr_id_bcd_le(
const uint8_t *
id);
52 void encode_dmr_id_bcd(uint8_t *
id, uint32_t num);
54 void encode_dmr_id_bcd_le(uint8_t *
id, uint32_t num);
56 QString decode_dtmf_bin(
const uint8_t *num,
int size=16, uint8_t fill=0xff);
57 bool encode_dtmf_bin(
const QString &number, uint8_t *num,
int size=16, uint8_t fill=0xff);
59 QString decode_dtmf_bcd_be(
const uint8_t *num,
int digits);
60 bool encode_dtmf_bcd_be(
const QString &number, uint8_t *num,
int size, uint8_t fill);
68 uint16_t oct_to_dec(uint16_t oct);
71 uint16_t dec_to_oct(uint16_t dec);
74 bool validDMRNumber(
const QString &text);
76 bool validDTMFNumber(
const QString &text);
88 int levDist(
const QString &source,
const QString &target,
89 Qt::CaseSensitivity cs=Qt::CaseInsensitive);
92 uint32_t align_size(uint32_t size, uint32_t block);
94 uint32_t align_addr(uint32_t addr, uint32_t block);
96 QGeoCoordinate loc2deg(
const QString &loc);
97 QString deg2loc(
const QGeoCoordinate &coor);
Code
This huge enum lists all possible RX/TX tones that can be associated with analog channels.
Definition: signaling.hh:18