2001-12-19 03:18:44 +00:00
|
|
|
/*
|
|
|
|
* Hamlib Interface - CTCSS and DCS tables header
|
2009-06-01 16:51:41 +00:00
|
|
|
* Copyright (c) 2000-2009 by Stephane Fillod and Frank Singleton
|
2001-12-19 03:18:44 +00:00
|
|
|
*
|
|
|
|
*
|
2011-08-22 01:07:57 +00:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2001-12-19 03:18:44 +00:00
|
|
|
*
|
2011-08-22 01:07:57 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2001-12-19 03:18:44 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-08-22 01:07:57 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2001-12-19 03:18:44 +00:00
|
|
|
*
|
2011-08-22 01:07:57 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2001-12-19 03:18:44 +00:00
|
|
|
* License along with this library; if not, write to the Free Software
|
2011-08-22 01:07:57 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2001-12-19 03:18:44 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _TONES_H
|
|
|
|
#define _TONES_H 1
|
|
|
|
|
|
|
|
|
2017-08-05 14:09:12 +00:00
|
|
|
#include <hamlib/rig.h> /* and implicitly rig_dll.h */
|
2003-04-16 22:33:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 52 CTCSS sub-audible tones
|
|
|
|
*/
|
|
|
|
#define FULL_CTCSS_LIST \
|
2017-08-05 14:09:12 +00:00
|
|
|
600, 670, 693, 719, 744, 770, 797, 825, 854, 885, 915, \
|
|
|
|
948, 974, 1000, 1035, 1072, 1109, 1148, 1188, 1200, 1230, 1273, \
|
|
|
|
1318, 1365, 1413, 1462, 1514, 1567, 1598, 1622, 1655, 1679, \
|
|
|
|
1713, 1738, 1773, 1799, 1835, 1862, 1899, 1928, 1966, 1995, \
|
|
|
|
2035, 2065, 2107, 2181, 2257, 2291, 2336, 2418, 2503, 2541, \
|
|
|
|
0,
|
2003-04-16 22:33:18 +00:00
|
|
|
|
2017-10-05 02:32:08 +00:00
|
|
|
static const tone_t static_full_ctcss_list[] =
|
|
|
|
{
|
2017-08-05 14:09:12 +00:00
|
|
|
FULL_CTCSS_LIST
|
2003-04-16 22:33:18 +00:00
|
|
|
};
|
|
|
|
|
2018-12-19 16:11:20 +00:00
|
|
|
#define FULL_CTCSS_LIST_COUNT 52
|
|
|
|
|
2017-08-05 14:09:12 +00:00
|
|
|
|
2003-04-16 22:33:18 +00:00
|
|
|
/*
|
|
|
|
* 50 CTCSS sub-audible tones, from 67.0Hz to 254.1Hz
|
|
|
|
*
|
|
|
|
* \note Don't even think about changing a bit of this array, several
|
2011-08-22 01:07:57 +00:00
|
|
|
* backends depend on it. If you need to, create a copy for your
|
2003-04-16 22:33:18 +00:00
|
|
|
* own caps. --SF
|
|
|
|
*/
|
|
|
|
#define COMMON_CTCSS_LIST \
|
2017-08-05 14:09:12 +00:00
|
|
|
670, 693, 719, 744, 770, 797, 825, 854, 885, 915, \
|
|
|
|
948, 974, 1000, 1035, 1072, 1109, 1148, 1188, 1230, 1273, \
|
|
|
|
1318, 1365, 1413, 1462, 1514, 1567, 1598, 1622, 1655, 1679, \
|
|
|
|
1713, 1738, 1773, 1799, 1835, 1862, 1899, 1928, 1966, 1995, \
|
|
|
|
2035, 2065, 2107, 2181, 2257, 2291, 2336, 2418, 2503, 2541, \
|
|
|
|
0,
|
2003-04-16 22:33:18 +00:00
|
|
|
|
2017-10-05 02:32:08 +00:00
|
|
|
static const tone_t static_common_ctcss_list[] =
|
|
|
|
{
|
2017-08-05 14:09:12 +00:00
|
|
|
COMMON_CTCSS_LIST
|
2003-04-16 22:33:18 +00:00
|
|
|
};
|
|
|
|
|
2018-12-19 16:11:20 +00:00
|
|
|
#define COMMON_CTCSS_LIST_COUNT 50
|
|
|
|
|
2017-08-05 14:09:12 +00:00
|
|
|
|
2009-06-01 16:51:41 +00:00
|
|
|
/*
|
|
|
|
* 104 DCS codes
|
|
|
|
*/
|
|
|
|
#define COMMON_DCS_LIST \
|
2017-08-05 14:09:12 +00:00
|
|
|
23, 25, 26, 31, 32, 36, 43, 47, 51, 53, \
|
|
|
|
54, 65, 71, 72, 73, 74, 114, 115, 116, 122, 125, 131, \
|
|
|
|
132, 134, 143, 145, 152, 155, 156, 162, 165, 172, 174, 205, \
|
|
|
|
212, 223, 225, 226, 243, 244, 245, 246, 251, 252, 255, 261, \
|
|
|
|
263, 265, 266, 271, 274, 306, 311, 315, 325, 331, 332, 343, \
|
|
|
|
346, 351, 356, 364, 365, 371, 411, 412, 413, 423, 431, 432, \
|
|
|
|
445, 446, 452, 454, 455, 462, 464, 465, 466, 503, 506, 516, \
|
|
|
|
523, 526, 532, 546, 565, 606, 612, 624, 627, 631, 632, 654, \
|
|
|
|
662, 664, 703, 712, 723, 731, 732, 734, 743, 754, \
|
|
|
|
0,
|
2009-06-01 16:51:41 +00:00
|
|
|
|
2017-10-05 02:32:08 +00:00
|
|
|
static const tone_t static_common_dcs_list[] =
|
|
|
|
{
|
2017-08-05 14:09:12 +00:00
|
|
|
COMMON_DCS_LIST
|
2009-06-01 16:51:41 +00:00
|
|
|
};
|
|
|
|
|
2018-12-19 16:11:20 +00:00
|
|
|
#define COMMON_DCS_LIST_COUNT 104
|
2017-08-05 14:09:12 +00:00
|
|
|
|
2003-04-16 22:33:18 +00:00
|
|
|
/*
|
|
|
|
* 106 DCS codes
|
|
|
|
*/
|
|
|
|
#define FULL_DCS_LIST \
|
2017-08-05 14:09:12 +00:00
|
|
|
17, 23, 25, 26, 31, 32, 36, 43, 47, 50, 51, 53, \
|
|
|
|
54, 65, 71, 72, 73, 74, 114, 115, 116, 122, 125, 131, \
|
|
|
|
132, 134, 143, 145, 152, 155, 156, 162, 165, 172, 174, 205, \
|
|
|
|
212, 223, 225, 226, 243, 244, 245, 246, 251, 252, 255, 261, \
|
|
|
|
263, 265, 266, 271, 274, 306, 311, 315, 325, 331, 332, 343, \
|
|
|
|
346, 351, 356, 364, 365, 371, 411, 412, 413, 423, 431, 432, \
|
|
|
|
445, 446, 452, 454, 455, 462, 464, 465, 466, 503, 506, 516, \
|
|
|
|
523, 526, 532, 546, 565, 606, 612, 624, 627, 631, 632, 654, \
|
|
|
|
662, 664, 703, 712, 723, 731, 732, 734, 743, 754, \
|
|
|
|
0,
|
2003-04-16 22:33:18 +00:00
|
|
|
|
2017-10-05 02:32:08 +00:00
|
|
|
static const tone_t static_full_dcs_list[] =
|
|
|
|
{
|
2017-08-05 14:09:12 +00:00
|
|
|
FULL_DCS_LIST
|
2003-04-16 22:33:18 +00:00
|
|
|
};
|
|
|
|
|
2018-12-19 16:11:20 +00:00
|
|
|
#define FULL_DCS_LIST_COUNT 106
|
2017-08-05 14:09:12 +00:00
|
|
|
|
2003-04-16 22:33:18 +00:00
|
|
|
/*
|
2011-08-22 01:07:57 +00:00
|
|
|
* These arrays cannot be shared on Win32 systems,
|
2003-04-16 22:33:18 +00:00
|
|
|
* because DLL's vars don't have constant address.
|
|
|
|
*/
|
2013-09-08 13:56:28 +00:00
|
|
|
#if (defined(_WIN32) || defined(__CYGWIN__)) // && !defined(IN_HAMLIB)
|
2021-04-29 22:06:45 +00:00
|
|
|
#define common_ctcss_list (tone_t*)static_common_ctcss_list
|
|
|
|
#define full_ctcss_list (tone_t*)static_full_ctcss_list
|
|
|
|
#define full_dcs_list (tone_t*)static_full_dcs_list
|
|
|
|
#define common_dcs_list (tone_t*)static_common_dcs_list
|
2003-04-16 22:33:18 +00:00
|
|
|
|
|
|
|
#else
|
2001-12-19 03:18:44 +00:00
|
|
|
|
2021-04-29 15:49:29 +00:00
|
|
|
extern HAMLIB_EXPORT_VAR(tone_t) full_ctcss_list[];
|
|
|
|
extern HAMLIB_EXPORT_VAR(tone_t) common_ctcss_list[];
|
|
|
|
extern HAMLIB_EXPORT_VAR(tone_t) full_dcs_list[];
|
|
|
|
extern HAMLIB_EXPORT_VAR(tone_t) common_dcs_list[];
|
2001-12-19 03:18:44 +00:00
|
|
|
|
2003-04-16 22:33:18 +00:00
|
|
|
#endif
|
2001-12-19 03:18:44 +00:00
|
|
|
|
|
|
|
#endif /* _TONES_H */
|