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

Generated by doxygen 1.7.5

Hamlib documentation for version 1.2.14 -- Fri Dec 23 2011 23:24:31
Project page: http://www.hamlib.org