Hamlib
1.2.15
|
00001 /* 00002 * Hamlib Interface - CTCSS and DCS tables header 00003 * Copyright (c) 2000-2009 by Stephane Fillod and Frank Singleton 00004 * 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 * 00020 */ 00021 00022 #ifndef _TONES_H 00023 #define _TONES_H 1 00024 00025 00026 #include "hamlib/rig.h" /* and implicitly rig_dll.h */ 00027 00028 00029 /* 00030 * 52 CTCSS sub-audible tones 00031 */ 00032 #define FULL_CTCSS_LIST \ 00033 600, 670, 693, 719, 744, 770, 797, 825, 854, 885, 915, \ 00034 948, 974, 1000, 1035, 1072, 1109, 1148, 1188, 1200, 1230, 1273, \ 00035 1318, 1365, 1413, 1462, 1514, 1567, 1598, 1622, 1655, 1679, \ 00036 1713, 1738, 1773, 1799, 1835, 1862, 1899, 1928, 1966, 1995, \ 00037 2035, 2065, 2107, 2181, 2257, 2291, 2336, 2418, 2503, 2541, \ 00038 0, 00039 00040 static const tone_t static_full_ctcss_list[] = { 00041 FULL_CTCSS_LIST 00042 }; 00043 00044 /* 00045 * 50 CTCSS sub-audible tones, from 67.0Hz to 254.1Hz 00046 * 00047 * \note Don't even think about changing a bit of this array, several 00048 * backends depend on it. If you need to, create a copy for your 00049 * own caps. --SF 00050 */ 00051 #define COMMON_CTCSS_LIST \ 00052 670, 693, 719, 744, 770, 797, 825, 854, 885, 915, \ 00053 948, 974, 1000, 1035, 1072, 1109, 1148, 1188, 1230, 1273, \ 00054 1318, 1365, 1413, 1462, 1514, 1567, 1598, 1622, 1655, 1679, \ 00055 1713, 1738, 1773, 1799, 1835, 1862, 1899, 1928, 1966, 1995, \ 00056 2035, 2065, 2107, 2181, 2257, 2291, 2336, 2418, 2503, 2541, \ 00057 0, 00058 00059 static const tone_t static_common_ctcss_list[] = { 00060 COMMON_CTCSS_LIST 00061 }; 00062 00063 /* 00064 * 104 DCS codes 00065 */ 00066 #define COMMON_DCS_LIST \ 00067 23, 25, 26, 31, 32, 36, 43, 47, 51, 53, \ 00068 54, 65, 71, 72, 73, 74, 114, 115, 116, 122, 125, 131, \ 00069 132, 134, 143, 145, 152, 155, 156, 162, 165, 172, 174, 205, \ 00070 212, 223, 225, 226, 243, 244, 245, 246, 251, 252, 255, 261, \ 00071 263, 265, 266, 271, 274, 306, 311, 315, 325, 331, 332, 343, \ 00072 346, 351, 356, 364, 365, 371, 411, 412, 413, 423, 431, 432, \ 00073 445, 446, 452, 454, 455, 462, 464, 465, 466, 503, 506, 516, \ 00074 523, 526, 532, 546, 565, 606, 612, 624, 627, 631, 632, 654, \ 00075 662, 664, 703, 712, 723, 731, 732, 734, 743, 754, \ 00076 0, 00077 00078 static const tone_t static_common_dcs_list[] = { 00079 COMMON_DCS_LIST 00080 }; 00081 00082 /* 00083 * 106 DCS codes 00084 */ 00085 #define FULL_DCS_LIST \ 00086 17, 23, 25, 26, 31, 32, 36, 43, 47, 50, 51, 53, \ 00087 54, 65, 71, 72, 73, 74, 114, 115, 116, 122, 125, 131, \ 00088 132, 134, 143, 145, 152, 155, 156, 162, 165, 172, 174, 205, \ 00089 212, 223, 225, 226, 243, 244, 245, 246, 251, 252, 255, 261, \ 00090 263, 265, 266, 271, 274, 306, 311, 315, 325, 331, 332, 343, \ 00091 346, 351, 356, 364, 365, 371, 411, 412, 413, 423, 431, 432, \ 00092 445, 446, 452, 454, 455, 462, 464, 465, 466, 503, 506, 516, \ 00093 523, 526, 532, 546, 565, 606, 612, 624, 627, 631, 632, 654, \ 00094 662, 664, 703, 712, 723, 731, 732, 734, 743, 754, \ 00095 0, 00096 00097 static const tone_t static_full_dcs_list[] = { 00098 FULL_DCS_LIST 00099 }; 00100 00101 /* 00102 * These arrays cannot be shared on Win32 systems, 00103 * because DLL's vars don't have constant address. 00104 */ 00105 #if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(IN_HAMLIB) 00106 #define common_ctcss_list static_common_ctcss_list 00107 #define full_ctcss_list static_full_ctcss_list 00108 #define full_dcs_list static_full_dcs_list 00109 #define common_dcs_list static_common_dcs_list 00110 00111 #else 00112 00113 extern const HAMLIB_EXPORT_VAR(tone_t) full_ctcss_list[]; 00114 extern const HAMLIB_EXPORT_VAR(tone_t) common_ctcss_list[]; 00115 extern const HAMLIB_EXPORT_VAR(tone_t) full_dcs_list[]; 00116 extern const HAMLIB_EXPORT_VAR(tone_t) common_dcs_list[]; 00117 00118 #endif 00119 00120 #endif /* _TONES_H */
Hamlib documentation for version 1.2.15 -- Thu Feb 2 2012 21:37:28
Project page: http://www.hamlib.org