--- /dev/null
+This file is licensed to you under the license specified in the included file\r
+`COPYING'. Look there for further details.\r
+\r
+Authors of the Hamlib API, original code:\r
+\r
+ Frank Singleton and Stephane Fillod\r
+\r
+\r
+Contributors:\r
+(if any is missing, please email the current maintainer).\r
+For any reason, if you prefer not to appear in this list, please let me know.\r
+\r
+M: Current maintainer\r
+C: Contributors\r
+W: Web-page with status/info\r
+S: Status, one of the following:\r
+\r
+ Supported: Someone is actually bothered to look after this.\r
+ Maintained: Someone actually looks after it.\r
+ Odd Fixes: It has a maintainer but they don't have time to do\r
+ much other than throw the odd patch in. See below..\r
+ Orphan: No current maintainer [but maybe you could take the\r
+ role as you write your new code].\r
+ Obsolete: Old code. Something tagged obsolete generally means\r
+ it has been replaced by a better system and you\r
+ should be using that.\r
+\r
+\r
+Backends:\r
+\r
+[adat: ADT-200A]\r
+M: Frank Goenninger DG1SBG\r
+\r
+[alinco: DX77-T]\r
+M: Ben Coleman NJ8J\r
+\r
+\r
+[aor]\r
+C: testing by John Ronan\r
+\r
+[aor: AR-7030]\r
+M: Friedrich Melchert DC9RP\r
+\r
+[aor: AR-7030 Plus]\r
+M: Larry Gadallah VE6VQ\r
+\r
+[aor: AR-3030]\r
+M: Tristan Mills\r
+\r
+[aor: AR-8200]\r
+M: Rob Walker\r
+\r
+\r
+[drake]\r
+M: Mark J. Fine\r
+\r
+\r
+[icom: ic7000]\r
+M: Kent Hill, AD7AI\r
+\r
+[icom: ic7200]\r
+M: James Watson, HZ1JW\r
+\r
+[icom: ic718]\r
+M: Chuck Gilkes, WD0FCL/4\r
+\r
+[icom: icr7000]\r
+M: Chuck Hemker, N2POR\r
+\r
+[icom: ic735]\r
+C: Darren Hatcher, G0WCW\r
+\r
+[icom: ic751]\r
+C: Lars E. Pettersson, SM6RPZ\r
+\r
+[icom: icr75]\r
+M: Mark J. Fine\r
+\r
+[icom: OptoScan]\r
+M: Michael Smith, KE4RJQ\r
+\r
+[icom]\r
+M: Stephane Fillod, F8CFE\r
+\r
+\r
+[jrc]\r
+M: Mark J. Fine\r
+C: Manual and testing by Bob Parnass, AJ9S\r
+\r
+\r
+[kenwood]\r
+M: Joop Stakenborg, PG4I\r
+C: Alessandro Zummo, IZ1PRB\r
+\r
+[kenwood: K2]\r
+M: Nate Bargmann, N0NB\r
+M: Brian Mury, VE7NGR\r
+C: Leigh Klotz, WA5ZNU\r
+\r
+[kenwood: K3]\r
+M: Nate Bargmann, N0NB\r
+C: Alexander Sack\r
+\r
+[kenwood: TS-480SAT]\r
+M: Juergen Rinas, DC3BW\r
+\r
+[kenwood: TS-570]\r
+M: Rob Frohne, KL7NA\r
+C: Thomas Beierlein, DL1JBE\r
+\r
+[kenwood: R-5000]\r
+M: Mark J. Fine\r
+\r
+[kenwood: tmd700]\r
+M: Charles Suprin, AA1VS\r
+\r
+[kenwood: thg71,tmv7,tmd700]\r
+C: Thierry Leconte, F4DWV\r
+\r
+[kenwood: thg71,tmv7]\r
+M: Andrew McNamara\r
+\r
+[kenwood: thd7]\r
+M: Stephane Fillod, F8CFE\r
+\r
+[kenwood: ts-850]\r
+C: Rob Frohne, KL7NA\r
+\r
+\r
+[kit: Si570 AVR-USB]\r
+C: Fabrice, F4AVI\r
+\r
+[kit: Elektor SDR]\r
+C: John Nogatch, AC6SL\r
+\r
+[pcr: pcr100,pcr1000]\r
+M: Alessandro Zummo, IZ1PRB\r
+C: Darren Hatcher, G0WCW\r
+\r
+\r
+[tentec]\r
+M:\r
+C: testing by James Chance, N3TKD\r
+\r
+[tentec: tt516]\r
+M: James Nykiel\r
+\r
+[tentec: tt538]\r
+M: Mike Markowski AB3AP\r
+\r
+[tentec: tt550]\r
+M: Ken Koster, N7IPB\r
+\r
+[tentec: tt565]\r
+M: Martin Ewing AA6E\r
+\r
+[tentec: Argonaut V]\r
+C: Dave Freese, W1HKJ\r
+\r
+[tentec: tt585]\r
+C: Bert, KG4BEC\r
+\r
+[tentec: rx331]\r
+M: Berndt Josef Wulf, VK5ABN\r
+\r
+\r
+[uniden: 245xlt]\r
+M: Eric Cottrell WB1HBU\r
+\r
+\r
+[winradio]\r
+M:\r
+C: Pascal Brisset\r
+\r
+\r
+[yeasu: ft1000d]\r
+M: Serge Pashenkov\r
+\r
+[yeasu: ft100]\r
+M: Alex V Flinsch, KC2IVL\r
+\r
+[yaesu: ft736]\r
+C: Ron Patterson, W6FM\r
+\r
+[yaesu: ft747]\r
+M:\r
+C: Chris Bryant, G3WIE\r
+C: Frank Singleton, VK3FCS\r
+\r
+[yaesu: ft767gx]\r
+M: Steve Conklin, AI4QR\r
+\r
+[yaesu: ft817]\r
+M: Chris Karpinsky, AA1VL\r
+\r
+[yaesu: ft847]\r
+M: Jim Jerzycke, KQ6EA\r
+C: Frank Singleton, VK3FCS\r
+\r
+[yaesu: ft920, ft890, ft900]\r
+M: Nate Bargmann, N0NB\r
+\r
+[yaesu: ft980]\r
+M: Wolfgang Buesser, DK1BW\r
+\r
+[yaesu: ft990]\r
+M: Berndt Josef Wulf, VK5ABN\r
+\r
+[yaesu: ft950,newcat]\r
+M: Terry Embry, KJ4EED\r
+\r
+[yaesu: VR-5000]\r
+M: Jacob Heder\r
+\r
+\r
+[CM108 GPIO PTT]\r
+M: Andrew Errington, ZL3AME\r
+\r
+\r
+Rotators\r
+[celestron]\r
+M: Stephane Fillod, F8CFE\r
+C: Eric/N3KQX\r
+\r
+\r
+[easycomm]\r
+M: Luc Langehegermann, LX2GT\r
+C: Francois Retief\r
+\r
+\r
+[fodtrack]\r
+M: Luc Langehegermann, LX2GT\r
+\r
+\r
+[amsat/if-100]\r
+M: Stephane Fillod, F8CFE\r
+C: Patrick Strasser, OE6PSE\r
+\r
+\r
+[heathkit:HD 1780 Intellirotor]\r
+M: Rob Frohne, KL7NA\r
+\r
+\r
+[rotorez]\r
+M: Nate Bargmann, N0NB\r
+\r
+\r
+[spid]\r
+M: Norvald H. Ryeng, LA6YKA\r
+\r
+\r
+[m2]\r
+M: Magne Mæhre, LA1BFA\r
+C: Ron Patterson, W6FM\r
+\r
+\r
+[ars]\r
+M: Stephane Fillod, F8CFE\r
+C: Chris Bryant, G3WIE\r
+\r
+\r
+[ts7400]\r
+M: Øystein Hårberg, LA7LKA\r
+\r
+\r
+[Frontend]\r
+M: Stephane Fillod, F8CFE\r
+\r
+\r
+[src/locator.c]\r
+M: Dave Hines, M1CXW\r
+C: Stephane Fillod, F8CFE\r
+C: Nate Bargmann, N0NB\r
+\r
+\r
+[test utilities]\r
+M: Stephane Fillod, F8CFE\r
+C: Nate Bargmann, N0NB\r
+C: Nirgal Vourgère\r
+\r
+\r
+[platform: FreeBSD]\r
+M: Diane Bruce, VA3DB\r
+\r
+[platform: NetBSD]\r
+M: Berndt Josef Wulf, VK5ABN\r
+\r
+[platform: win32]\r
+M: Stephane Fillod, F8CFE\r
+C: VB & testing by Darren Hatcher, G0WCW\r
+C: VB.NET wrapper by Michael Benz\r
+\r
+\r
+[packaging: debian]\r
+M: Kamal Mostafa, KA6MAL\r
+M: Jaime Robles, EA4TV\r
+C: Joop Stakenborg, PG4I\r
+\r
+[packaging: RPM]\r
+M: Alexandru Csete, OZ9AEC\r
+M: Joop Stakenborg, PG4I\r
+\r
+\r
+[Web site: http://www.hamlib.org]\r
+M: Joop Stakenborg, PG4I\r
+M: Stephane Fillod, F8CFE\r
+M: Nate Bargmann, N0NB\r
+\r
+\r
+E-mail addresses:\r
+\r
+Frank Singleton, VK3FCS, <vk3fcs (at) ix.netcom.com>\r
+Stephane Fillod, F8CFE, <fillods (at) users.sourceforge.net>\r
+Pascal Brisset <pab (at) users.sourceforge.net>\r
+Nate Bargmann, N0NB, <n0nb (at) arrl.net>\r
+Chris Karpinsky, AA1VL, <aa1vl (at) arrl.net>\r
+Joop Stakenborg, PG4I, <pg4i (at) amsat.org>\r
+Bob Parnass, AJ9S, <parnass (at) megsinet.net>\r
+Francois Retief, <fgretief (at) sun.ac.za>\r
+James Chance, N3TKD, <n3tkd (at) n3tkd.net>\r
+Chuck Hemker, N2POR, <n2por (at) amsat.org>\r
+Alex V Flinsch, KC2IVL, <avflinsch (at) verizon.net>\r
+Chuck Gilkes, WD0FCL/4, <chuck (at) webbasset.com>\r
+Dale E. Edmons, KD7ENI, <dedmons (at) comcast.net>\r
+Michael Smith, KE4RJQ <james.m.smith (at) earthlink.net>\r
+Berndt Josef Wulf, VK5ABN <wulf (at) ping.net.au>\r
+Mark J. Fine <mark.fine (at) fineware-swl.com>\r
+Jim Jerzycke, KQ6EA <kq6ea (at) amsat.org>\r
+Alexandru Csete OZ9AEC <alexc (at) phys.au.dk>\r
+Diane Bruce, VA3DB <db (at) db.net>\r
+Dave Hines, M1CXW, <hamlib (at) dph.fluff.org>\r
+Darren Hatcher, G0WCW, <g0wcw (at) hatcher.org.uk>\r
+Ben Coleman, NJ8J, <nj8j (at) benshome.net>\r
+Serge Pashenkov <serge (at) gnode.org>\r
+Lars E. Pettersson SM6RPZ <lars (at) homer.se>\r
+Thomas Beierlein, DL1JBE, <y32kn (at) users.sourceforge.net>\r
+Kent Hill, AD7AI, <fuzzballz (at) comcast.net>\r
+Dave Freese, W1HKJ, <w1hkj (at) w1hkj.com>\r
+Rob Frohne, KL7NA, <frohro (at) wwc.edu>\r
+Steve Conklin, AI4QR, <steve (at) conklinhouse.com>\r
+Martin Ewing, AA6E, <aa6e (at) arrl.net>\r
+Terry Embry, KJ4EED, <mrtembry (at) users.sourceforge.net>\r
+Alessandro Zummo, IZ1PRB <alessandro.zummo (at) towertech.it>\r
+Norvald H. Ryeng, LA6YKA <norvald (at) ryeng.name>\r
+Larry Gadallah, VE6VQ <lgadallah (at) gmail.com>\r
+Kamal Mostafa, KA6MAL, <kamal (at) whence.com>\r
+Jaime Robles, EA4TV, <jaime (at) debian.org>\r
+Wolfgang Buesser, DK1BW, <wolfgang.buesser (at) web.de>\r
+Magne Mæhre, LA1BFA, <magne (at) samfundet.no>\r
+Charles Suprin, AA1VS, <hamaa1vs (at) gmail.com>\r
+Robert Steinhäußer, DL1NC, <dl1nc (at) users.sourceforge.net>\r
+James Watson, HZ1JW, <jawatson (at) users.sourceforge.net>\r
+Juergen Rinas, DC3BW, <jrinas (at) users.sourceforge.net>\r
+Kamal Mostafa, KA6MAL, <kamal (at) whence.com>\r
+Roger, <roger-linux (at) users.sourceforge.net>\r
+Tristan Mills, <t_mills (at) users.sourceforge.net>\r
+Terry Dawson, VK2KTJ, <terry (at) users.sourceforge.net>\r
+Øystein Hårberg, LA7LKA, <oystein.haarberg (at) netrunner.nu>\r
+Alexander Sack <pisymbol (at) gmail.com>\r
+Nirgal Vourgère <contact_hamlib (at) nirgal.com>\r
+Andrew Errington <a.errington (at) lancaster.ac.uk>\r
--- /dev/null
+ GNU LESSER GENERAL PUBLIC LICENSE\r
+ Version 2.1, February 1999\r
+\r
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.\r
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r
+ Everyone is permitted to copy and distribute verbatim copies\r
+ of this license document, but changing it is not allowed.\r
+\r
+[This is the first released version of the Lesser GPL. It also counts\r
+ as the successor of the GNU Library Public License, version 2, hence\r
+ the version number 2.1.]\r
+\r
+ Preamble\r
+\r
+ The licenses for most software are designed to take away your\r
+freedom to share and change it. By contrast, the GNU General Public\r
+Licenses are intended to guarantee your freedom to share and change\r
+free software--to make sure the software is free for all its users.\r
+\r
+ This license, the Lesser General Public License, applies to some\r
+specially designated software packages--typically libraries--of the\r
+Free Software Foundation and other authors who decide to use it. You\r
+can use it too, but we suggest you first think carefully about whether\r
+this license or the ordinary General Public License is the better\r
+strategy to use in any particular case, based on the explanations below.\r
+\r
+ When we speak of free software, we are referring to freedom of use,\r
+not price. Our General Public Licenses are designed to make sure that\r
+you have the freedom to distribute copies of free software (and charge\r
+for this service if you wish); that you receive source code or can get\r
+it if you want it; that you can change the software and use pieces of\r
+it in new free programs; and that you are informed that you can do\r
+these things.\r
+\r
+ To protect your rights, we need to make restrictions that forbid\r
+distributors to deny you these rights or to ask you to surrender these\r
+rights. These restrictions translate to certain responsibilities for\r
+you if you distribute copies of the library or if you modify it.\r
+\r
+ For example, if you distribute copies of the library, whether gratis\r
+or for a fee, you must give the recipients all the rights that we gave\r
+you. You must make sure that they, too, receive or can get the source\r
+code. If you link other code with the library, you must provide\r
+complete object files to the recipients, so that they can relink them\r
+with the library after making changes to the library and recompiling\r
+it. And you must show them these terms so they know their rights.\r
+\r
+ We protect your rights with a two-step method: (1) we copyright the\r
+library, and (2) we offer you this license, which gives you legal\r
+permission to copy, distribute and/or modify the library.\r
+\r
+ To protect each distributor, we want to make it very clear that\r
+there is no warranty for the free library. Also, if the library is\r
+modified by someone else and passed on, the recipients should know\r
+that what they have is not the original version, so that the original\r
+author's reputation will not be affected by problems that might be\r
+introduced by others.\r
+\f\r
+ Finally, software patents pose a constant threat to the existence of\r
+any free program. We wish to make sure that a company cannot\r
+effectively restrict the users of a free program by obtaining a\r
+restrictive license from a patent holder. Therefore, we insist that\r
+any patent license obtained for a version of the library must be\r
+consistent with the full freedom of use specified in this license.\r
+\r
+ Most GNU software, including some libraries, is covered by the\r
+ordinary GNU General Public License. This license, the GNU Lesser\r
+General Public License, applies to certain designated libraries, and\r
+is quite different from the ordinary General Public License. We use\r
+this license for certain libraries in order to permit linking those\r
+libraries into non-free programs.\r
+\r
+ When a program is linked with a library, whether statically or using\r
+a shared library, the combination of the two is legally speaking a\r
+combined work, a derivative of the original library. The ordinary\r
+General Public License therefore permits such linking only if the\r
+entire combination fits its criteria of freedom. The Lesser General\r
+Public License permits more lax criteria for linking other code with\r
+the library.\r
+\r
+ We call this license the "Lesser" General Public License because it\r
+does Less to protect the user's freedom than the ordinary General\r
+Public License. It also provides other free software developers Less\r
+of an advantage over competing non-free programs. These disadvantages\r
+are the reason we use the ordinary General Public License for many\r
+libraries. However, the Lesser license provides advantages in certain\r
+special circumstances.\r
+\r
+ For example, on rare occasions, there may be a special need to\r
+encourage the widest possible use of a certain library, so that it becomes\r
+a de-facto standard. To achieve this, non-free programs must be\r
+allowed to use the library. A more frequent case is that a free\r
+library does the same job as widely used non-free libraries. In this\r
+case, there is little to gain by limiting the free library to free\r
+software only, so we use the Lesser General Public License.\r
+\r
+ In other cases, permission to use a particular library in non-free\r
+programs enables a greater number of people to use a large body of\r
+free software. For example, permission to use the GNU C Library in\r
+non-free programs enables many more people to use the whole GNU\r
+operating system, as well as its variant, the GNU/Linux operating\r
+system.\r
+\r
+ Although the Lesser General Public License is Less protective of the\r
+users' freedom, it does ensure that the user of a program that is\r
+linked with the Library has the freedom and the wherewithal to run\r
+that program using a modified version of the Library.\r
+\r
+ The precise terms and conditions for copying, distribution and\r
+modification follow. Pay close attention to the difference between a\r
+"work based on the library" and a "work that uses the library". The\r
+former contains code derived from the library, whereas the latter must\r
+be combined with the library in order to run.\r
+\f\r
+ GNU LESSER GENERAL PUBLIC LICENSE\r
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\r
+\r
+ 0. This License Agreement applies to any software library or other\r
+program which contains a notice placed by the copyright holder or\r
+other authorized party saying it may be distributed under the terms of\r
+this Lesser General Public License (also called "this License").\r
+Each licensee is addressed as "you".\r
+\r
+ A "library" means a collection of software functions and/or data\r
+prepared so as to be conveniently linked with application programs\r
+(which use some of those functions and data) to form executables.\r
+\r
+ The "Library", below, refers to any such software library or work\r
+which has been distributed under these terms. A "work based on the\r
+Library" means either the Library or any derivative work under\r
+copyright law: that is to say, a work containing the Library or a\r
+portion of it, either verbatim or with modifications and/or translated\r
+straightforwardly into another language. (Hereinafter, translation is\r
+included without limitation in the term "modification".)\r
+\r
+ "Source code" for a work means the preferred form of the work for\r
+making modifications to it. For a library, complete source code means\r
+all the source code for all modules it contains, plus any associated\r
+interface definition files, plus the scripts used to control compilation\r
+and installation of the library.\r
+\r
+ Activities other than copying, distribution and modification are not\r
+covered by this License; they are outside its scope. The act of\r
+running a program using the Library is not restricted, and output from\r
+such a program is covered only if its contents constitute a work based\r
+on the Library (independent of the use of the Library in a tool for\r
+writing it). Whether that is true depends on what the Library does\r
+and what the program that uses the Library does.\r
+\r
+ 1. You may copy and distribute verbatim copies of the Library's\r
+complete source code as you receive it, in any medium, provided that\r
+you conspicuously and appropriately publish on each copy an\r
+appropriate copyright notice and disclaimer of warranty; keep intact\r
+all the notices that refer to this License and to the absence of any\r
+warranty; and distribute a copy of this License along with the\r
+Library.\r
+\r
+ You may charge a fee for the physical act of transferring a copy,\r
+and you may at your option offer warranty protection in exchange for a\r
+fee.\r
+\f\r
+ 2. You may modify your copy or copies of the Library or any portion\r
+of it, thus forming a work based on the Library, and copy and\r
+distribute such modifications or work under the terms of Section 1\r
+above, provided that you also meet all of these conditions:\r
+\r
+ a) The modified work must itself be a software library.\r
+\r
+ b) You must cause the files modified to carry prominent notices\r
+ stating that you changed the files and the date of any change.\r
+\r
+ c) You must cause the whole of the work to be licensed at no\r
+ charge to all third parties under the terms of this License.\r
+\r
+ d) If a facility in the modified Library refers to a function or a\r
+ table of data to be supplied by an application program that uses\r
+ the facility, other than as an argument passed when the facility\r
+ is invoked, then you must make a good faith effort to ensure that,\r
+ in the event an application does not supply such function or\r
+ table, the facility still operates, and performs whatever part of\r
+ its purpose remains meaningful.\r
+\r
+ (For example, a function in a library to compute square roots has\r
+ a purpose that is entirely well-defined independent of the\r
+ application. Therefore, Subsection 2d requires that any\r
+ application-supplied function or table used by this function must\r
+ be optional: if the application does not supply it, the square\r
+ root function must still compute square roots.)\r
+\r
+These requirements apply to the modified work as a whole. If\r
+identifiable sections of that work are not derived from the Library,\r
+and can be reasonably considered independent and separate works in\r
+themselves, then this License, and its terms, do not apply to those\r
+sections when you distribute them as separate works. But when you\r
+distribute the same sections as part of a whole which is a work based\r
+on the Library, the distribution of the whole must be on the terms of\r
+this License, whose permissions for other licensees extend to the\r
+entire whole, and thus to each and every part regardless of who wrote\r
+it.\r
+\r
+Thus, it is not the intent of this section to claim rights or contest\r
+your rights to work written entirely by you; rather, the intent is to\r
+exercise the right to control the distribution of derivative or\r
+collective works based on the Library.\r
+\r
+In addition, mere aggregation of another work not based on the Library\r
+with the Library (or with a work based on the Library) on a volume of\r
+a storage or distribution medium does not bring the other work under\r
+the scope of this License.\r
+\r
+ 3. You may opt to apply the terms of the ordinary GNU General Public\r
+License instead of this License to a given copy of the Library. To do\r
+this, you must alter all the notices that refer to this License, so\r
+that they refer to the ordinary GNU General Public License, version 2,\r
+instead of to this License. (If a newer version than version 2 of the\r
+ordinary GNU General Public License has appeared, then you can specify\r
+that version instead if you wish.) Do not make any other change in\r
+these notices.\r
+\f\r
+ Once this change is made in a given copy, it is irreversible for\r
+that copy, so the ordinary GNU General Public License applies to all\r
+subsequent copies and derivative works made from that copy.\r
+\r
+ This option is useful when you wish to copy part of the code of\r
+the Library into a program that is not a library.\r
+\r
+ 4. You may copy and distribute the Library (or a portion or\r
+derivative of it, under Section 2) in object code or executable form\r
+under the terms of Sections 1 and 2 above provided that you accompany\r
+it with the complete corresponding machine-readable source code, which\r
+must be distributed under the terms of Sections 1 and 2 above on a\r
+medium customarily used for software interchange.\r
+\r
+ If distribution of object code is made by offering access to copy\r
+from a designated place, then offering equivalent access to copy the\r
+source code from the same place satisfies the requirement to\r
+distribute the source code, even though third parties are not\r
+compelled to copy the source along with the object code.\r
+\r
+ 5. A program that contains no derivative of any portion of the\r
+Library, but is designed to work with the Library by being compiled or\r
+linked with it, is called a "work that uses the Library". Such a\r
+work, in isolation, is not a derivative work of the Library, and\r
+therefore falls outside the scope of this License.\r
+\r
+ However, linking a "work that uses the Library" with the Library\r
+creates an executable that is a derivative of the Library (because it\r
+contains portions of the Library), rather than a "work that uses the\r
+library". The executable is therefore covered by this License.\r
+Section 6 states terms for distribution of such executables.\r
+\r
+ When a "work that uses the Library" uses material from a header file\r
+that is part of the Library, the object code for the work may be a\r
+derivative work of the Library even though the source code is not.\r
+Whether this is true is especially significant if the work can be\r
+linked without the Library, or if the work is itself a library. The\r
+threshold for this to be true is not precisely defined by law.\r
+\r
+ If such an object file uses only numerical parameters, data\r
+structure layouts and accessors, and small macros and small inline\r
+functions (ten lines or less in length), then the use of the object\r
+file is unrestricted, regardless of whether it is legally a derivative\r
+work. (Executables containing this object code plus portions of the\r
+Library will still fall under Section 6.)\r
+\r
+ Otherwise, if the work is a derivative of the Library, you may\r
+distribute the object code for the work under the terms of Section 6.\r
+Any executables containing that work also fall under Section 6,\r
+whether or not they are linked directly with the Library itself.\r
+\f\r
+ 6. As an exception to the Sections above, you may also combine or\r
+link a "work that uses the Library" with the Library to produce a\r
+work containing portions of the Library, and distribute that work\r
+under terms of your choice, provided that the terms permit\r
+modification of the work for the customer's own use and reverse\r
+engineering for debugging such modifications.\r
+\r
+ You must give prominent notice with each copy of the work that the\r
+Library is used in it and that the Library and its use are covered by\r
+this License. You must supply a copy of this License. If the work\r
+during execution displays copyright notices, you must include the\r
+copyright notice for the Library among them, as well as a reference\r
+directing the user to the copy of this License. Also, you must do one\r
+of these things:\r
+\r
+ a) Accompany the work with the complete corresponding\r
+ machine-readable source code for the Library including whatever\r
+ changes were used in the work (which must be distributed under\r
+ Sections 1 and 2 above); and, if the work is an executable linked\r
+ with the Library, with the complete machine-readable "work that\r
+ uses the Library", as object code and/or source code, so that the\r
+ user can modify the Library and then relink to produce a modified\r
+ executable containing the modified Library. (It is understood\r
+ that the user who changes the contents of definitions files in the\r
+ Library will not necessarily be able to recompile the application\r
+ to use the modified definitions.)\r
+\r
+ b) Use a suitable shared library mechanism for linking with the\r
+ Library. A suitable mechanism is one that (1) uses at run time a\r
+ copy of the library already present on the user's computer system,\r
+ rather than copying library functions into the executable, and (2)\r
+ will operate properly with a modified version of the library, if\r
+ the user installs one, as long as the modified version is\r
+ interface-compatible with the version that the work was made with.\r
+\r
+ c) Accompany the work with a written offer, valid for at\r
+ least three years, to give the same user the materials\r
+ specified in Subsection 6a, above, for a charge no more\r
+ than the cost of performing this distribution.\r
+\r
+ d) If distribution of the work is made by offering access to copy\r
+ from a designated place, offer equivalent access to copy the above\r
+ specified materials from the same place.\r
+\r
+ e) Verify that the user has already received a copy of these\r
+ materials or that you have already sent this user a copy.\r
+\r
+ For an executable, the required form of the "work that uses the\r
+Library" must include any data and utility programs needed for\r
+reproducing the executable from it. However, as a special exception,\r
+the materials to be distributed need not include anything that is\r
+normally distributed (in either source or binary form) with the major\r
+components (compiler, kernel, and so on) of the operating system on\r
+which the executable runs, unless that component itself accompanies\r
+the executable.\r
+\r
+ It may happen that this requirement contradicts the license\r
+restrictions of other proprietary libraries that do not normally\r
+accompany the operating system. Such a contradiction means you cannot\r
+use both them and the Library together in an executable that you\r
+distribute.\r
+\f\r
+ 7. You may place library facilities that are a work based on the\r
+Library side-by-side in a single library together with other library\r
+facilities not covered by this License, and distribute such a combined\r
+library, provided that the separate distribution of the work based on\r
+the Library and of the other library facilities is otherwise\r
+permitted, and provided that you do these two things:\r
+\r
+ a) Accompany the combined library with a copy of the same work\r
+ based on the Library, uncombined with any other library\r
+ facilities. This must be distributed under the terms of the\r
+ Sections above.\r
+\r
+ b) Give prominent notice with the combined library of the fact\r
+ that part of it is a work based on the Library, and explaining\r
+ where to find the accompanying uncombined form of the same work.\r
+\r
+ 8. You may not copy, modify, sublicense, link with, or distribute\r
+the Library except as expressly provided under this License. Any\r
+attempt otherwise to copy, modify, sublicense, link with, or\r
+distribute the Library is void, and will automatically terminate your\r
+rights under this License. However, parties who have received copies,\r
+or rights, from you under this License will not have their licenses\r
+terminated so long as such parties remain in full compliance.\r
+\r
+ 9. You are not required to accept this License, since you have not\r
+signed it. However, nothing else grants you permission to modify or\r
+distribute the Library or its derivative works. These actions are\r
+prohibited by law if you do not accept this License. Therefore, by\r
+modifying or distributing the Library (or any work based on the\r
+Library), you indicate your acceptance of this License to do so, and\r
+all its terms and conditions for copying, distributing or modifying\r
+the Library or works based on it.\r
+\r
+ 10. Each time you redistribute the Library (or any work based on the\r
+Library), the recipient automatically receives a license from the\r
+original licensor to copy, distribute, link with or modify the Library\r
+subject to these terms and conditions. You may not impose any further\r
+restrictions on the recipients' exercise of the rights granted herein.\r
+You are not responsible for enforcing compliance by third parties with\r
+this License.\r
+\f\r
+ 11. If, as a consequence of a court judgment or allegation of patent\r
+infringement or for any other reason (not limited to patent issues),\r
+conditions are imposed on you (whether by court order, agreement or\r
+otherwise) that contradict the conditions of this License, they do not\r
+excuse you from the conditions of this License. If you cannot\r
+distribute so as to satisfy simultaneously your obligations under this\r
+License and any other pertinent obligations, then as a consequence you\r
+may not distribute the Library at all. For example, if a patent\r
+license would not permit royalty-free redistribution of the Library by\r
+all those who receive copies directly or indirectly through you, then\r
+the only way you could satisfy both it and this License would be to\r
+refrain entirely from distribution of the Library.\r
+\r
+If any portion of this section is held invalid or unenforceable under any\r
+particular circumstance, the balance of the section is intended to apply,\r
+and the section as a whole is intended to apply in other circumstances.\r
+\r
+It is not the purpose of this section to induce you to infringe any\r
+patents or other property right claims or to contest validity of any\r
+such claims; this section has the sole purpose of protecting the\r
+integrity of the free software distribution system which is\r
+implemented by public license practices. Many people have made\r
+generous contributions to the wide range of software distributed\r
+through that system in reliance on consistent application of that\r
+system; it is up to the author/donor to decide if he or she is willing\r
+to distribute software through any other system and a licensee cannot\r
+impose that choice.\r
+\r
+This section is intended to make thoroughly clear what is believed to\r
+be a consequence of the rest of this License.\r
+\r
+ 12. If the distribution and/or use of the Library is restricted in\r
+certain countries either by patents or by copyrighted interfaces, the\r
+original copyright holder who places the Library under this License may add\r
+an explicit geographical distribution limitation excluding those countries,\r
+so that distribution is permitted only in or among countries not thus\r
+excluded. In such case, this License incorporates the limitation as if\r
+written in the body of this License.\r
+\r
+ 13. The Free Software Foundation may publish revised and/or new\r
+versions of the Lesser General Public License from time to time.\r
+Such new versions will be similar in spirit to the present version,\r
+but may differ in detail to address new problems or concerns.\r
+\r
+Each version is given a distinguishing version number. If the Library\r
+specifies a version number of this License which applies to it and\r
+"any later version", you have the option of following the terms and\r
+conditions either of that version or of any later version published by\r
+the Free Software Foundation. If the Library does not specify a\r
+license version number, you may choose any version ever published by\r
+the Free Software Foundation.\r
+\f\r
+ 14. If you wish to incorporate parts of the Library into other free\r
+programs whose distribution conditions are incompatible with these,\r
+write to the author to ask for permission. For software which is\r
+copyrighted by the Free Software Foundation, write to the Free\r
+Software Foundation; we sometimes make exceptions for this. Our\r
+decision will be guided by the two goals of preserving the free status\r
+of all derivatives of our free software and of promoting the sharing\r
+and reuse of software generally.\r
+\r
+ NO WARRANTY\r
+\r
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO\r
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.\r
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR\r
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY\r
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE\r
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE\r
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME\r
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\r
+\r
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN\r
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY\r
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU\r
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR\r
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE\r
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING\r
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A\r
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF\r
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH\r
+DAMAGES.\r
+\r
+ END OF TERMS AND CONDITIONS\r
+\f\r
+ How to Apply These Terms to Your New Libraries\r
+\r
+ If you develop a new library, and you want it to be of the greatest\r
+possible use to the public, we recommend making it free software that\r
+everyone can redistribute and change. You can do so by permitting\r
+redistribution under these terms (or, alternatively, under the terms of the\r
+ordinary General Public License).\r
+\r
+ To apply these terms, attach the following notices to the library. It is\r
+safest to attach them to the start of each source file to most effectively\r
+convey the exclusion of warranty; and each file should have at least the\r
+"copyright" line and a pointer to where the full notice is found.\r
+\r
+ <one line to give the library's name and a brief idea of what it does.>\r
+ Copyright (C) <year> <name of author>\r
+\r
+ This library is free software; you can redistribute it and/or\r
+ modify it under the terms of the GNU Lesser General Public\r
+ License as published by the Free Software Foundation; either\r
+ version 2.1 of the License, or (at your option) any later version.\r
+\r
+ This library is distributed in the hope that it will be useful,\r
+ but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
+ Lesser General Public License for more details.\r
+\r
+ You should have received a copy of the GNU Lesser General Public\r
+ License along with this library; if not, write to the Free Software\r
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r
+\r
+Also add information on how to contact you by electronic and paper mail.\r
+\r
+You should also get your employer (if you work as a programmer) or your\r
+school, if any, to sign a "copyright disclaimer" for the library, if\r
+necessary. Here is a sample; alter the names:\r
+\r
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the\r
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.\r
+\r
+ <signature of Ty Coon>, 1 April 1990\r
+ Ty Coon, President of Vice\r
+\r
+That's all there is to it!\r
--- /dev/null
+ GNU GENERAL PUBLIC LICENSE\r
+ Version 2, June 1991\r
+\r
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,\r
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r
+ Everyone is permitted to copy and distribute verbatim copies\r
+ of this license document, but changing it is not allowed.\r
+\r
+ Preamble\r
+\r
+ The licenses for most software are designed to take away your\r
+freedom to share and change it. By contrast, the GNU General Public\r
+License is intended to guarantee your freedom to share and change free\r
+software--to make sure the software is free for all its users. This\r
+General Public License applies to most of the Free Software\r
+Foundation's software and to any other program whose authors commit to\r
+using it. (Some other Free Software Foundation software is covered by\r
+the GNU Lesser General Public License instead.) You can apply it to\r
+your programs, too.\r
+\r
+ When we speak of free software, we are referring to freedom, not\r
+price. Our General Public Licenses are designed to make sure that you\r
+have the freedom to distribute copies of free software (and charge for\r
+this service if you wish), that you receive source code or can get it\r
+if you want it, that you can change the software or use pieces of it\r
+in new free programs; and that you know you can do these things.\r
+\r
+ To protect your rights, we need to make restrictions that forbid\r
+anyone to deny you these rights or to ask you to surrender the rights.\r
+These restrictions translate to certain responsibilities for you if you\r
+distribute copies of the software, or if you modify it.\r
+\r
+ For example, if you distribute copies of such a program, whether\r
+gratis or for a fee, you must give the recipients all the rights that\r
+you have. You must make sure that they, too, receive or can get the\r
+source code. And you must show them these terms so they know their\r
+rights.\r
+\r
+ We protect your rights with two steps: (1) copyright the software, and\r
+(2) offer you this license which gives you legal permission to copy,\r
+distribute and/or modify the software.\r
+\r
+ Also, for each author's protection and ours, we want to make certain\r
+that everyone understands that there is no warranty for this free\r
+software. If the software is modified by someone else and passed on, we\r
+want its recipients to know that what they have is not the original, so\r
+that any problems introduced by others will not reflect on the original\r
+authors' reputations.\r
+\r
+ Finally, any free program is threatened constantly by software\r
+patents. We wish to avoid the danger that redistributors of a free\r
+program will individually obtain patent licenses, in effect making the\r
+program proprietary. To prevent this, we have made it clear that any\r
+patent must be licensed for everyone's free use or not licensed at all.\r
+\r
+ The precise terms and conditions for copying, distribution and\r
+modification follow.\r
+\r
+ GNU GENERAL PUBLIC LICENSE\r
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\r
+\r
+ 0. This License applies to any program or other work which contains\r
+a notice placed by the copyright holder saying it may be distributed\r
+under the terms of this General Public License. The "Program", below,\r
+refers to any such program or work, and a "work based on the Program"\r
+means either the Program or any derivative work under copyright law:\r
+that is to say, a work containing the Program or a portion of it,\r
+either verbatim or with modifications and/or translated into another\r
+language. (Hereinafter, translation is included without limitation in\r
+the term "modification".) Each licensee is addressed as "you".\r
+\r
+Activities other than copying, distribution and modification are not\r
+covered by this License; they are outside its scope. The act of\r
+running the Program is not restricted, and the output from the Program\r
+is covered only if its contents constitute a work based on the\r
+Program (independent of having been made by running the Program).\r
+Whether that is true depends on what the Program does.\r
+\r
+ 1. You may copy and distribute verbatim copies of the Program's\r
+source code as you receive it, in any medium, provided that you\r
+conspicuously and appropriately publish on each copy an appropriate\r
+copyright notice and disclaimer of warranty; keep intact all the\r
+notices that refer to this License and to the absence of any warranty;\r
+and give any other recipients of the Program a copy of this License\r
+along with the Program.\r
+\r
+You may charge a fee for the physical act of transferring a copy, and\r
+you may at your option offer warranty protection in exchange for a fee.\r
+\r
+ 2. You may modify your copy or copies of the Program or any portion\r
+of it, thus forming a work based on the Program, and copy and\r
+distribute such modifications or work under the terms of Section 1\r
+above, provided that you also meet all of these conditions:\r
+\r
+ a) You must cause the modified files to carry prominent notices\r
+ stating that you changed the files and the date of any change.\r
+\r
+ b) You must cause any work that you distribute or publish, that in\r
+ whole or in part contains or is derived from the Program or any\r
+ part thereof, to be licensed as a whole at no charge to all third\r
+ parties under the terms of this License.\r
+\r
+ c) If the modified program normally reads commands interactively\r
+ when run, you must cause it, when started running for such\r
+ interactive use in the most ordinary way, to print or display an\r
+ announcement including an appropriate copyright notice and a\r
+ notice that there is no warranty (or else, saying that you provide\r
+ a warranty) and that users may redistribute the program under\r
+ these conditions, and telling the user how to view a copy of this\r
+ License. (Exception: if the Program itself is interactive but\r
+ does not normally print such an announcement, your work based on\r
+ the Program is not required to print an announcement.)\r
+\r
+These requirements apply to the modified work as a whole. If\r
+identifiable sections of that work are not derived from the Program,\r
+and can be reasonably considered independent and separate works in\r
+themselves, then this License, and its terms, do not apply to those\r
+sections when you distribute them as separate works. But when you\r
+distribute the same sections as part of a whole which is a work based\r
+on the Program, the distribution of the whole must be on the terms of\r
+this License, whose permissions for other licensees extend to the\r
+entire whole, and thus to each and every part regardless of who wrote it.\r
+\r
+Thus, it is not the intent of this section to claim rights or contest\r
+your rights to work written entirely by you; rather, the intent is to\r
+exercise the right to control the distribution of derivative or\r
+collective works based on the Program.\r
+\r
+In addition, mere aggregation of another work not based on the Program\r
+with the Program (or with a work based on the Program) on a volume of\r
+a storage or distribution medium does not bring the other work under\r
+the scope of this License.\r
+\r
+ 3. You may copy and distribute the Program (or a work based on it,\r
+under Section 2) in object code or executable form under the terms of\r
+Sections 1 and 2 above provided that you also do one of the following:\r
+\r
+ a) Accompany it with the complete corresponding machine-readable\r
+ source code, which must be distributed under the terms of Sections\r
+ 1 and 2 above on a medium customarily used for software interchange; or,\r
+\r
+ b) Accompany it with a written offer, valid for at least three\r
+ years, to give any third party, for a charge no more than your\r
+ cost of physically performing source distribution, a complete\r
+ machine-readable copy of the corresponding source code, to be\r
+ distributed under the terms of Sections 1 and 2 above on a medium\r
+ customarily used for software interchange; or,\r
+\r
+ c) Accompany it with the information you received as to the offer\r
+ to distribute corresponding source code. (This alternative is\r
+ allowed only for noncommercial distribution and only if you\r
+ received the program in object code or executable form with such\r
+ an offer, in accord with Subsection b above.)\r
+\r
+The source code for a work means the preferred form of the work for\r
+making modifications to it. For an executable work, complete source\r
+code means all the source code for all modules it contains, plus any\r
+associated interface definition files, plus the scripts used to\r
+control compilation and installation of the executable. However, as a\r
+special exception, the source code distributed need not include\r
+anything that is normally distributed (in either source or binary\r
+form) with the major components (compiler, kernel, and so on) of the\r
+operating system on which the executable runs, unless that component\r
+itself accompanies the executable.\r
+\r
+If distribution of executable or object code is made by offering\r
+access to copy from a designated place, then offering equivalent\r
+access to copy the source code from the same place counts as\r
+distribution of the source code, even though third parties are not\r
+compelled to copy the source along with the object code.\r
+\r
+ 4. You may not copy, modify, sublicense, or distribute the Program\r
+except as expressly provided under this License. Any attempt\r
+otherwise to copy, modify, sublicense or distribute the Program is\r
+void, and will automatically terminate your rights under this License.\r
+However, parties who have received copies, or rights, from you under\r
+this License will not have their licenses terminated so long as such\r
+parties remain in full compliance.\r
+\r
+ 5. You are not required to accept this License, since you have not\r
+signed it. However, nothing else grants you permission to modify or\r
+distribute the Program or its derivative works. These actions are\r
+prohibited by law if you do not accept this License. Therefore, by\r
+modifying or distributing the Program (or any work based on the\r
+Program), you indicate your acceptance of this License to do so, and\r
+all its terms and conditions for copying, distributing or modifying\r
+the Program or works based on it.\r
+\r
+ 6. Each time you redistribute the Program (or any work based on the\r
+Program), the recipient automatically receives a license from the\r
+original licensor to copy, distribute or modify the Program subject to\r
+these terms and conditions. You may not impose any further\r
+restrictions on the recipients' exercise of the rights granted herein.\r
+You are not responsible for enforcing compliance by third parties to\r
+this License.\r
+\r
+ 7. If, as a consequence of a court judgment or allegation of patent\r
+infringement or for any other reason (not limited to patent issues),\r
+conditions are imposed on you (whether by court order, agreement or\r
+otherwise) that contradict the conditions of this License, they do not\r
+excuse you from the conditions of this License. If you cannot\r
+distribute so as to satisfy simultaneously your obligations under this\r
+License and any other pertinent obligations, then as a consequence you\r
+may not distribute the Program at all. For example, if a patent\r
+license would not permit royalty-free redistribution of the Program by\r
+all those who receive copies directly or indirectly through you, then\r
+the only way you could satisfy both it and this License would be to\r
+refrain entirely from distribution of the Program.\r
+\r
+If any portion of this section is held invalid or unenforceable under\r
+any particular circumstance, the balance of the section is intended to\r
+apply and the section as a whole is intended to apply in other\r
+circumstances.\r
+\r
+It is not the purpose of this section to induce you to infringe any\r
+patents or other property right claims or to contest validity of any\r
+such claims; this section has the sole purpose of protecting the\r
+integrity of the free software distribution system, which is\r
+implemented by public license practices. Many people have made\r
+generous contributions to the wide range of software distributed\r
+through that system in reliance on consistent application of that\r
+system; it is up to the author/donor to decide if he or she is willing\r
+to distribute software through any other system and a licensee cannot\r
+impose that choice.\r
+\r
+This section is intended to make thoroughly clear what is believed to\r
+be a consequence of the rest of this License.\r
+\r
+ 8. If the distribution and/or use of the Program is restricted in\r
+certain countries either by patents or by copyrighted interfaces, the\r
+original copyright holder who places the Program under this License\r
+may add an explicit geographical distribution limitation excluding\r
+those countries, so that distribution is permitted only in or among\r
+countries not thus excluded. In such case, this License incorporates\r
+the limitation as if written in the body of this License.\r
+\r
+ 9. The Free Software Foundation may publish revised and/or new versions\r
+of the General Public License from time to time. Such new versions will\r
+be similar in spirit to the present version, but may differ in detail to\r
+address new problems or concerns.\r
+\r
+Each version is given a distinguishing version number. If the Program\r
+specifies a version number of this License which applies to it and "any\r
+later version", you have the option of following the terms and conditions\r
+either of that version or of any later version published by the Free\r
+Software Foundation. If the Program does not specify a version number of\r
+this License, you may choose any version ever published by the Free Software\r
+Foundation.\r
+\r
+ 10. If you wish to incorporate parts of the Program into other free\r
+programs whose distribution conditions are different, write to the author\r
+to ask for permission. For software which is copyrighted by the Free\r
+Software Foundation, write to the Free Software Foundation; we sometimes\r
+make exceptions for this. Our decision will be guided by the two goals\r
+of preserving the free status of all derivatives of our free software and\r
+of promoting the sharing and reuse of software generally.\r
+\r
+ NO WARRANTY\r
+\r
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\r
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\r
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\r
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\r
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\r
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\r
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\r
+REPAIR OR CORRECTION.\r
+\r
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\r
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\r
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\r
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\r
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\r
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\r
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\r
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\r
+POSSIBILITY OF SUCH DAMAGES.\r
+\r
+ END OF TERMS AND CONDITIONS\r
+\r
+ How to Apply These Terms to Your New Programs\r
+\r
+ If you develop a new program, and you want it to be of the greatest\r
+possible use to the public, the best way to achieve this is to make it\r
+free software which everyone can redistribute and change under these terms.\r
+\r
+ To do so, attach the following notices to the program. It is safest\r
+to attach them to the start of each source file to most effectively\r
+convey the exclusion of warranty; and each file should have at least\r
+the "copyright" line and a pointer to where the full notice is found.\r
+\r
+ <one line to give the program's name and a brief idea of what it does.>\r
+ Copyright (C) <year> <name of author>\r
+\r
+ This program is free software; you can redistribute it and/or modify\r
+ it under the terms of the GNU General Public License as published by\r
+ the Free Software Foundation; either version 2 of the License, or\r
+ (at your option) any later version.\r
+\r
+ This program is distributed in the hope that it will be useful,\r
+ but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+ GNU General Public License for more details.\r
+\r
+ You should have received a copy of the GNU General Public License along\r
+ with this program; if not, write to the Free Software Foundation, Inc.,\r
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
+\r
+Also add information on how to contact you by electronic and paper mail.\r
+\r
+If the program is interactive, make it output a short notice like this\r
+when it starts in an interactive mode:\r
+\r
+ Gnomovision version 69, Copyright (C) year name of author\r
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\r
+ This is free software, and you are welcome to redistribute it\r
+ under certain conditions; type `show c' for details.\r
+\r
+The hypothetical commands `show w' and `show c' should show the appropriate\r
+parts of the General Public License. Of course, the commands you use may\r
+be called something other than `show w' and `show c'; they could even be\r
+mouse-clicks or menu items--whatever suits your program.\r
+\r
+You should also get your employer (if you work as a programmer) or your\r
+school, if any, to sign a "copyright disclaimer" for the program, if\r
+necessary. Here is a sample; alter the names:\r
+\r
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program\r
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.\r
+\r
+ <signature of Ty Coon>, 1 April 1989\r
+ Ty Coon, President of Vice\r
+\r
+This General Public License does not permit incorporating your program into\r
+proprietary programs. If your program is a subroutine library, you may\r
+consider it more useful to permit linking proprietary applications with the\r
+library. If this is what you want to do, use the GNU Lesser General\r
+Public License instead of this License.\r
--- /dev/null
+For a complete log of changes to Hamlib, please visit:\r
+\r
+http://hamlib.git.sourceforge.net/git/gitweb.cgi?p=hamlib/hamlib;a=log\r
--- /dev/null
+Hamlib - Ham Radio Control Libraries\r
+\r
+Copyright (C) 2000,2001 Frank Singleton\r
+Copyright (C) 2000,2001 Stephane Fillod\r
+Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011\r
+ The Hamlib Group\r
+\r
+The 'AUTHORS' file lists contributors known as the The Hamlib Group.\r
+\r
+The frontend library source code files and associated bankend library\r
+source code files are licensed and released under the LGPL:\r
+\r
+ This library is free software; you can redistribute it and/or\r
+ modify it under the terms of the GNU Lesser General Public\r
+ License as published by the Free Software Foundation; either\r
+ version 2.1 of the License, or (at your option) any later version.\r
+\r
+ This library is distributed in the hope that it will be useful,\r
+ but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
+ Lesser General Public License for more details.\r
+\r
+ You should have received a copy of the GNU Lesser General Public\r
+ License along with this library; if not, write to the Free Software\r
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r
+\r
+The included file 'COPYING.LIB' is a copy of the GNU Lesser General\r
+Public License.\r
+\r
+\r
+Various other supplied program source files and example source files are\r
+licensed and released under the GPL:\r
+\r
+ This program is free software; you can redistribute it and/or modify\r
+ it under the terms of the GNU General Public License as published by\r
+ the Free Software Foundation; either version 2 of the License, or\r
+ (at your option) any later version.\r
+\r
+ This program is distributed in the hope that it will be useful,\r
+ but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+ GNU General Public License for more details.\r
+\r
+ You should have received a copy of the GNU General Public License along\r
+ with this program; if not, write to the Free Software Foundation, Inc.,\r
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
+\r
+The included file 'COPYING' is a copy of the GNU General Public License.\r
+\r
--- /dev/null
+Hamlib - (C) Frank Singleton 2000 (vk3fcs@ix.netcom.com)\r
+ (C) Stephane Fillod 2000-2011\r
+ (C) The Hamlib Group 2000-2011\r
+\r
+Why does Hamlib need beta-testers?\r
+==================================\r
+\r
+Hamlib is developed by a team of radio enthusiasts around the world, for\r
+fun, much in the spirit of ham radio. (Note that it is not restricted for\r
+ham usage only). There are a great deal of protocols and rigs around the\r
+world developers may not own. However, protocols may be available, so\r
+backends can be implemented, but cannot always be tested by developers.\r
+That's where beta-testers are so precious. On top of that, I've been told\r
+that there's no such sure thing like bug free code.\r
+\r
+Feedback and improvement requests are also valuable.\r
+\r
+\r
+Okay, you volunteer as beta-tester, how to proceed?\r
+===================================================\r
+\r
+First of all, you can start testing official releases. They are easier to\r
+test because they come in precompiled and packaged (.rpm, .deb, etc.) but\r
+they have the drawback of being older than the Git repository. Reports from\r
+these versions are still very appreciated. Please send them to the\r
+hamlib-developer@lists.sourceforge.net mailing list.\r
+\r
+However, the development of Hamlib is still very active, so it's better to\r
+test from the latest Git version of the code. And, depending on feedback\r
+you make, developers can commit a fix, so you can try out the change soon\r
+after, without waiting for the next official version.\r
+\r
+To proceed, you will have first to obtain either a daily snapshot or a check\r
+out the latest sources from the Git repository, then rebuild the Hamlib\r
+package and finally test it with your rig. Don't worry, it's much simpler\r
+than it looks, despite the size of the package.\r
+\r
+Pre-requisite:\r
+ - some kind of internet access\r
+ - POSIXish compiler toolchain (gcc, make, C library development headers,\r
+ etc., see README.developer for a complete list and building from a Git\r
+ checkout)\r
+\r
+\r
+So here we go:\r
+\r
+Daily Git master branch snapshots:\r
+==================================\r
+\r
+Download the latest Git master branch snapshot from:\r
+\r
+http://n0nb.users.sourceforge.net\r
+\r
+You'll find a tarball with a name like\r
+hamlib-1.2.14~git-01db7a3-20110402.tar.gz, i.e. a check out made 02 Apr 2011\r
+With a Git SHA1 of 01db7a3 (The SHA1 is a signature of each commit. Each is\r
+unique and as our project is small, the first seven characters for the full\r
+40 character SHA1 are likely unique. The shorthand SHA1 is automatically\r
+generated and may become longer in the future.), ready for building using\r
+the familiar "three step" (see below). Each morning by about 1130z a new\r
+snapshot is generated and uploaded and the prior day's version is removed.\r
+\r
+The advantage of the Git snapshot is that you won't need as many tools\r
+installed to build Hamlib as the work of the GNU Build System has already\r
+been done. Most of the other packages listed below will be needed. If you\r
+tell the 'configure' script to build certain parts of Hamlib like\r
+documentation or scripting language bindings the relavent optional packages\r
+will be needed. See 'configure --help' for more information.\r
+\r
+Here is a list of development packages needed for a complete build of the\r
+library (Debian package names are listed, other distributions may differ):\r
+\r
+* Gnu C or any C99 compliant compiler # gcc --version\r
+* Gnu make (or any modern one, BSD okay) # make --version\r
+* Git for connection to hamlib.svn.sourceforge.net\r
+\r
+N.B. The Debian and derivatives (Ubuntu and friends) 'build-essentials'\r
+package will install a number of tools and minimize the number of packages\r
+that need to be installed manually.\r
+\r
+Optional, but highly recommended for a complete build:\r
+* GNU C++ # g++ --version\r
+* swig (for bindings) 1.3.14 # swig -version\r
+* perl devel # h2xs\r
+* tcl devel # tcltk-depends\r
+* python devel # python-config\r
+* libxml2 devel # xml2-config --version\r
+* libgd2 devel # gdlib-config --version\r
+* libusb devel # libusb-config --version (not 1.0.0!)\r
+\r
+N.B The libusb package is required for building most of the 'kit' backend.\r
+The older version is needed, not 1.0.0 or higher. Debian and derivatives\r
+package libusb 0.1.12 which is what is needed.\r
+\r
+Documentation:\r
+* Doxygen\r
+\r
+\r
+Git master branch daily snapshot build:\r
+=======================================\r
+\r
+Reading the INSTALL file in top directory will explain in more detail how\r
+to do the following commands.\r
+\r
+ ./configure --disable-static --prefix=/usr/local\r
+ make\r
+ make install\r
+\r
+The prefix argument is optional. Convention is that local packages be\r
+placed in /usr/local away from distribution installed packages This is the\r
+default location for the snapshots so it may be disregarded unless you wish\r
+to install Hamlib elsewhere. The --disable-static option speeds up\r
+compilation if you don't plan to use static libraries (static libraries are\r
+usually not needed).\r
+\r
+Other useful options are '--with-perl-binding' or '--with-python-binding' or\r
+'--enable-tcl-binding' if you are interested in Swig binding support for\r
+those scripting languages If you are unsure it is safe to ignore these\r
+options.\r
+\r
+NOTE! If Hamlib has not been previously installed as a locally built\r
+package you will need to make sure that 'ldconfig' is configured correctly\r
+and run periodically after 'make install'. Most modern distributions have\r
+an /etc/ld.so.conf.d/ directory where local configuration can be made.\r
+Later versions of Debian and derivatives have a file named 'libc.conf' in\r
+this directory. The contents of libc.conf are:\r
+\r
+# libc default configuration\r
+/usr/local/lib\r
+\r
+If your system does not have such a file, one will need to be created and\r
+then 'ldconfig' will need to be run as the root user so that applications\r
+using the Hamlib libraries can find them.\r
+\r
+To delete the binary files from the source directory after compiling:\r
+\r
+ make clean\r
+\r
+To also remove the Makefiles and other build files, along with the binary\r
+files as above:\r
+\r
+ make distclean\r
+\r
+The configure script will need to be run again as above.\r
+\r
+The above commands will clean things up so Hamlib can be compiled with other\r
+configure script options.\r
+\r
+To remove Hamlib from your system:\r
+\r
+ sudo make uninstall\r
+\r
+Note that due to a limitation in a Perl support script that if the Perl\r
+binding is built and installed that not all of the files under\r
+/usr/local/lib/perl/PERL_VERSION will not be removed.\r
+\r
+\r
+Git checkout:\r
+=============\r
+\r
+Please read the beginning of README.developer file, especially Section 1 which\r
+details the Git checkout, the required tools and versions (very important or\r
+make won't even work!), and how to use the autogen.sh script.\r
+\r
+\r
+Structure:\r
+==========\r
+\r
+For the brave who want to peruse the contents, here are what all the\r
+subdirectories are for (these are just a sample as more are added from time to\r
+time):\r
+\r
+alinco,aor,icom,\r
+jrc,kachina,kenwood,\r
+pcr,tentec,uniden,\r
+winradio,\r
+yaesu,etc: rig backends\r
+easycomm,rotorez,\r
+sartek, etc: rotator backends\r
+dummy: virtual dummy rig and rotator, for developer's use.\r
+lib: library for functions missing on your system\r
+libltdl: wrapper for shared module loader\r
+bindings Perl, Python, Tcl, and Visual Basic bindings\r
+c++,kylix: C++ and Kylix bindings\r
+doc: documentation base and scripts to extract from src\r
+include/hamlib: exported header files go here\r
+include: non-distributed header files go there\r
+src: Hamlib frontend source directory\r
+tests: rigctl/rotctl and various C programs for testing\r
+\r
+\r
+Testing Hamlib:\r
+===============\r
+\r
+Don't attempt to test Hamlib from the source directory unless you're a\r
+developer and you understand the side effects of *not* installing freshly\r
+generated objects (basically having to mess with LD_LIBRARY_PATH and\r
+.libs). Do an 'sudo make install' to install the libraries in the system\r
+area. (You did run 'sudo ldconfig' after 'sudo make install', right?)\r
+\r
+So here we go. First of all, identify your rig model id. Make sure\r
+/usr/local/bin (or the path you set --prefix to above) is in your $PATH, as\r
+your shell has to be able to locate rigctl.\r
+\r
+Run 'rigctl -l' to get a list of rigs supported by Hamlib.\r
+\r
+If you cannot find your radio in the list, please report to the\r
+hamlib-developer mailing list. The protocol manual and rig specifications\r
+will help us a lot.\r
+\r
+You found your rig's ID? Good! You're almost ready to use rigctl.\r
+Have a quick look at its manual page:\r
+\r
+ man rigctl\r
+or:\r
+ man -M /usr/local/man rigctl\r
+\r
+or simply:\r
+ rigctl --help\r
+\r
+Let's say you own an Icom IC-756:\r
+\r
+ rigctl -vvvvv -r /dev/ttyS0 -m 326\r
+\r
+The -vvvvv is very important since this will increase verbosity, and give\r
+precious traces to developers if something goes wrong. At this level, the\r
+protocol data exchanged will also be dumped to the screen. Some backends\r
+produce a useful amount of data regarding function calls and critical\r
+variables with the -vvvv option without all the protocol data.\r
+\r
+Unless some problem shows up, you should be presented with a menu\r
+like "Rig command: ". Enter "?" followed by return to have the list\r
+of available commands. 'Q' or 'q' quits rigctl immediately.\r
+\r
+Most wanted functions to be tested are:\r
+'_' get misc information on the rig\r
+'f' get frequency\r
+'F' set frequency, in Hz\r
+'m' get mode\r
+'M' set mode (AM,FM,CW,USB,etc. and passband width in Hz)\r
+'v' get vfo\r
+'V' set vfo (VFOA, VFOB, etc.)\r
+\r
+f,F get_freq/set_freq try various (<1MHz, <30Mhz and >1GHz)\r
+v,V get_vfo/set_vfo VFOA, VFOB\r
+m,M get_mode/set_mode FM, USB, LSB, CW, WFM, etc.\r
+ passband is in Hz (pass 0 for default)\r
+G vfo_op UP, DOWN\r
+_ get_info should give remote Id and firmware vers\r
+\r
+NB: some functions may not be implemented in the backend or simply not\r
+available on this rig.\r
+\r
+When reporting to the hamlib-developer mailing list, please include traces\r
+and also comments to tell developers if the action performed correctly on\r
+the rig.\r
+\r
+Tip: Traces can be hard to cut and paste sometimes. In that case, there's a\r
+handy tool for you: script(1) (the (1) is not a part of the command, rather\r
+it is a Unix convention telling which section of the manual it is found, in\r
+this case section 1, user commands. e.g. 'man 1 script'). It will make a\r
+typescript of everything printed on your terminal and save it to the file\r
+you give it.\r
+\r
+ $ script my_rig_traces.txt\r
+ Script started, file is my_rig_traces.txt\r
+ $ rigctl -vvvvv -r /dev/ttyS0 -m 326\r
+ rig:rig_init called\r
+ rig: loading backend icom\r
+ icom: _init called\r
+ rig_register (309)\r
+ rig_register (326)\r
+ rig:rig_open called\r
+ Opened rig model 326, 'IC-756'\r
+\r
+ Rig command: q\r
+ rig:rig_close called\r
+ rig:rig_cleanup called\r
+ $ exit\r
+ exit\r
+ Script done, file is my_rig_traces.txt\r
+ $\r
+\r
+And then send my_rig_traces.txt to the hamlib-developer mailing list.\r
+\r
+\r
+Some models need S-meter calibration, because the rig only returns raw\r
+measurement. It's easy, it takes only 10mn. Here's how to proceed:\r
+\r
+ 1. Fire up the rigctl program released with the Hamlib package,\r
+ and pass along options as needed (serial speed, etc.).\r
+ 2. Tune to some frequency reporting S0 to the radio S-Meter.\r
+ 3. At rigctl prompt, issue "get_level" ('l' in short) of the level\r
+ RAWSTR.\r
+ 4. Write down the S-level read on radio front panel, and the RAWSTR\r
+ value retrieved.\r
+ 5. Repeat from step 2 with S9 and S9+60dB. Actually the more plots,\r
+ the better, otherwise Hamlib does interpolation.\r
+ 6. Send the table to the hamlib-developer mailing list and it will be\r
+ added in the next release of Hamlib.\r
+\r
+NB: It is well known the S-Meter of any given radio is far from being\r
+accurate. For owners with a fully equipped lab, you may want to make the\r
+above-mentioned measurements with a good signal generator and a set of\r
+calibrated attenuators. Greg W8WWV has an insightful page about S-Meter\r
+calibration:\r
+\r
+http://www.seed-solutions.com/gregordy/Amateur%20Radio/Experimentation/SMeterBlues.htm\r
+\r
+\r
+Okay folks, test as much as you can, in the weirdest situations if\r
+possible. There is a special prize for those who find 'Segmentation fault'\r
+and other nasty bugs.\r
+\r
+Needless to say, patches are also very welcome (see README.developer). :-)\r
+\r
+\r
+Stephane - F8CFE and The Hamlib Group\r
+\r
--- /dev/null
+Hamlib - (C) Frank Singleton 2000 (vk3fcs@ix.netcom.com)\r
+ (C) Stephane Fillod 2000-2011\r
+ (C) The Hamlib Group 2000-2011\r
+\r
+The purpose of this project is to provide stable, flexible, shared libraries\r
+that enable quicker development of Amateur Radio Equipment Control\r
+Applications.\r
+\r
+Many Amateur Radio Transceivers come with serial interfaces that allows\r
+software to control the radio. This project will endeavour to provide shared\r
+libraries that greatly simplify the application programmer's interaction\r
+with radio equipment and other controllable devices such as rotators,\r
+switches, etc.\r
+\r
+Supported Radios\r
+----------------\r
+\r
+The Hamlib Wiki page, Supported Radios, contains a snapshot of the supported\r
+radios at the time of the last Hamlib release. Go to http://www.hamlib.org\r
+to reach the Wiki.\r
+\r
+Hamlib Design\r
+-------------\r
+\r
+The shared libs will provide functions for both radio control,\r
+and data retrieval from the radio.\r
+\r
+The structure of the libraries will be as follows.\r
+\r
+(1) There will be 1 frontend library "libhamlib" that\r
+ provides the generic API for user applications.\r
+\r
+(2) There will be "n" backend libraries that "wrap"\r
+ rig specific communications inside frontend API.\r
+\r
+(3) Frontend lib will load (on demand) the appropriate\r
+ backend lib as required.\r
+\r
+Frontend Library\r
+----------------\r
+\r
+libhamlib.so - frontend lib that provides generic API\r
+ for all RIG types. This is what Application\r
+ programmers will "see".\r
+\r
+Backend Examples are:\r
+---------------------\r
+\r
+1.hamlib-yaesu.so will provide connectivity to Yaesu\r
+ FT 747GX Transceiver, FT 847 "Earth Station", etc. via a standard API.\r
+\r
+2. hamlib-xxxx.so will provide connectivity to the Wiz-bang\r
+ moon-melter 101A (yikes..)\r
+\r
+Hamlib will also enable developers to develop professional looking GUI's\r
+towards a standard control library API, and they would not have to worry\r
+about the underlying connection towards physical hardware.\r
+\r
+Initially serial (RS232) connectivity will be handled, but we expect that IP\r
+(and other) connectivity will follow afterwards. Connection via a USB port\r
+is accomplished via the Linux kernel support. USB to serial converters are\r
+well supported. Other such devices may be supported as long as they present\r
+a serial (RS-232) interface to Hamlib.\r
+\r
+Availability\r
+------------\r
+\r
+Most distributions have the latest Hamlib release in their testing or alpha\r
+versions of their distribution. Check your package manager for the Hamlib\r
+version included in your distribution.\r
+\r
+Developing with Hamlib API\r
+--------------------------\r
+\r
+C language API documentation is at:\r
+\r
+ http://www.hamlib.org/index.php?title=Documentation\r
+\r
+Take a look at tests/README for more info on simple programming examples and\r
+test programs.\r
+\r
+C++ programming is supported and language bindings are available for Perl,\r
+Python, and TCL. A network daemon utility is also available for any\r
+programming language that supports network sockets (even netcat!).\r
+\r
+\r
+Recompiling\r
+-----------\r
+\r
+Hamlib is entirely developed using GNU tools, under various Linux systems.\r
+The library may be recompiled by the familiar "three step":\r
+\r
+ ./configure\r
+ make\r
+ sudo make install\r
+\r
+See the INSTALL file for more information.\r
+\r
+Contributing\r
+------------\r
+\r
+Consult the README.betatester and README.developer files in this directory\r
+if you feel like testing or helping with Hamlib development.\r
+\r
+Contributions of rig specifications and protocol documentation are highly\r
+encouraged. Do keep in mind that in some cases the manufacturer may not\r
+provide complete control information or it is only available under a\r
+Non-Disclosure Agreement (NDA). Any documentation *must* be publicly\r
+available so we can legally write and distribute Free Software supporting a\r
+given device.\r
+\r
+The Hamlib team is very interested to hear from you, how Hamlib builds and\r
+works on your system, especially on non-Linux system or non-PC systems. We\r
+try to make Hamlib as portable as possible.\r
+\r
+Please report in case of problems at hamlib-developer@lists.sourceforge.net\r
+Git email formatted patches or in unified diff format are welcome!\r
+\r
+Also, take a look at http://sourceforge.net/projects/hamlib/ Here you will\r
+find a mail list, link to the Wiki, and the latest releases. Feedback,\r
+questions, etc. about Hamlib are very welcome at the mail list:\r
+\r
+ <hamlib-developer@lists.sourceforge.net>\r
+\r
+Hamlib Version Numbers\r
+----------------------\r
+\r
+Like other software projects, Hamlib uses a version numbering scheme to help\r
+program authors and users understand which releases are compatible and which\r
+are not. Hamlib releases now follow the format of:\r
+\r
+Major.minor.release.incremental\r
+\r
+Where\r
+\r
+Major: Equals 1 for this C language API implementation of rig\r
+control and won't change. Any successor that is a major code rewrite or\r
+differing implementation would have this number advanced (not too likely).\r
+\r
+Minor: Currently at 2, but can be advanced when changes to the API\r
+require client programs to be rewritten to continue to use Hamlib. This\r
+number has advanced a couple of times throughout the life of Hamlib.\r
+Advancement of the minor number is only for frontend API changes that\r
+require modification of client source. Also indicates ABI compatibility so\r
+that a program linked to an earlier 1.X.Y release will work with a later\r
+1.X.Y release without recompiling.\r
+\r
+Release: This number advances when either new backend(s) or new rig\r
+model(s) to existing backend(s) are added. Advancing this number informs\r
+client program authors (and users of those programs) that new model/backend\r
+support has been added. Will also include bug fixes since the last\r
+Incremental release.\r
+\r
+Incremental: May be undefined (e.g. Hamlib 1.2.14) and would advance to 1\r
+(e.g. Hamlib 1.2.14.1) for any bug fixes or feature additions to existing\r
+model(s) or backend(s), then to 2, etc. New rig models or backends are not\r
+included in Incremental. When Release is advanced, Incremental will reset\r
+to undefined and will not be included as part of the version number.\r
+\r
+Release schedule\r
+----------------\r
+\r
+Hamlib has in the past maintained a "ready when it's ready" philosophy.\r
+However, given that much of the Linux user base is now influenced by the\r
+Ubuntu distribution and its timed six month release schedule, Hamlib\r
+releases will be scheduled in advance of Ubuntu releases. Planned release\r
+dates for Hamlib are now 1 February and 1 August of each calendar year.\r
+Between those dates various Incremental releases will occur as development\r
+warrants.\r
+\r
+\r
+Have Fun / Frank S / Stephane F / The Hamlib Group\r
+\r
+ 73's de vk3fcs/km5ws / f8cfe\r
+\r
--- /dev/null
+What is it?\r
+===========\r
+\r
+This ZIP archive contains a build of Hamlib-3.0~git\r
+cross-compiled for Win32 using MinGW under Xubuntu Linux 10.10 (nice, heh!).\r
+\r
+The DLL has a cdecl interface for MS VC++.\r
+\r
+This software is copyrighted. The library license is LGPL, and the *.EXE\r
+files licenses are GPL. Hamlib comes WITHOUT ANY WARRANTY. See the\r
+LICENSE.txt, COPYING.txt, and COPYING.LIB.txt files.\r
+\r
+\r
+Installation and Configuration\r
+==============================\r
+\r
+Extract the ZIP archive into a convenient location, C:\Program Files is a\r
+reasonable choice.\r
+\r
+Make sure *all* the .DLL files are in your PATH (leave them in the bin\r
+directory and set the PATH). To set the PATH environment variable in\r
+Windows 2000 and Windows XP (need info on Vista and Win 7) do the following:\r
+\r
+ * Right-click on "My Computer"\r
+ * Select "Properties" from the pop-up menu\r
+ * Click the "Advanced" tab of the "System Properties" dialog\r
+ * Click the "Environment Variables" button\r
+ * Select "Path" in the "System variables" box of the "Environment Variables"\r
+ dialog\r
+ * Click the Edit button\r
+ * Now add the Hamlib path in the "Variable Value: edit box. Be sure to put\r
+ a semi-colon ';' after the last path before adding the Hamlib path (NB. The\r
+ entire path is highlighted and will be erased upon typing a character so\r
+ click in the box to unselect the text first. The PATH is important!!)\r
+ Append the Hamlib path, e.g. C:\Program Files\hamlib-win32-1.2.14~git\bin\r
+ * Click OK for all three dialog boxes to save your changes.\r
+\r
+\r
+Testing with the Hamlib Utilities\r
+=================================\r
+\r
+To continue, be sure you have read the README.betatester file, especially\r
+the "Testing Hamlib" section. The primary means of testing is by way of the\r
+rigctl utility for radios and rotctl utility for rotators. Each is a command\r
+line program that is interactive or can act on a single command and exit.\r
+\r
+Documentation for each utility can be found as a PDF in the pdf/ directory.\r
+\r
+In short, the command syntax is of the form:\r
+\r
+ rigctl -m 120 -r COM1 -vvvvv\r
+\r
+ -m -> Radio model 120, or Yaesu FT-817 (use -l for a list)\r
+ -r -> Radio device, in this case COM1\r
+ -v -> Verbosity level. For testing four or five v characters are required.\r
+ Five v's set a debug level of TRACE which generates a lot of screen\r
+ output showing communication to the radio and values of important\r
+ variables. These traces are vital information for Hamlib rig backend\r
+ development.\r
+\r
+To run rigctl or rotctl open a cmd window (Start|Run|enter 'cmd' in the dialog).\r
+If text scrolls off the screen, you can scroll back with the mouse. To copy\r
+output text into a mailer or editor (I recommend Notepad++, a free editor also\r
+licensed under the GPL), highlight the text as a rectangle in the cmd window,\r
+press <Enter> (or right-click the window icon in the upper left corner and\r
+select Edit, then Copy), and paste it into your editor with Ctl-V (or\r
+Edit|Paste from the typical GUI menu).\r
+\r
+All feedback is welcome to the mail address below.\r
+\r
+\r
+Information for Win32 Programmers\r
+=================================\r
+\r
+There's a .LIB import library for MS-VC++ in lib/msvc. Simply #include\r
+<hamlib/rig.h> (add directory to include path), include the .LIB in your\r
+project and you're done. Note: MS-VC++ cannot compile all the Hamlib code,\r
+but the API defined by rig.h has been made MSVC friendly :-)\r
+\r
+As the source code for the library DLLs is licensed under the LGPL, your\r
+program is not considered a "derivative work" when using the published\r
+Hamlib API and normal linking to the front-end library, and may be of a\r
+license of your choosing. The published Hamlib API may be found at:\r
+\r
+http://sourceforge.net/apps/mediawiki/hamlib/index.php?title=Documentation\r
+\r
+\r
+Thank You!\r
+==========\r
+\r
+Patches, feedback, and contributions are welcome.\r
+\r
+Please report problems or success to hamlib-developer@lists.sourceforge.net\r
+\r
+Cheers,\r
+Stephane Fillod - F8CFE\r
+Nate Bargmann - N0NB\r
+http://www.hamlib.org\r
+\r
--- /dev/null
+\r
+This file lists people who contributed indirectly to Hamlib, by generously\r
+making information available. Be they thanked for their openness.\r
+\r
+\r
+WiNRADiO backend\r
+----------------\r
+\r
+* Harish Pillay 9v1hp and Pascal Brisset and their excellent LiNRADiO project.\r
+ URL: http://linradio.sourceforge.net/\r
+\r
+Icom CI-V backend\r
+-----------------\r
+\r
+* Ekki Plicht DF4OR <ekki@plicht.de> and his excellent web site on\r
+ the CI-V interface.\r
+ URL: http://www.plicht.de/ekki/civ/\r
+\r
+* Karl Kramer DG8FZ <Karl_Kramer@bigfoot.com> for his V24/CI-V cable\r
+ and his CSMA/CD explanation of the bus.\r
+ URL: http://KarlKramer.de/ ... x71ci_v.htm\r
+\r
+* Simon Collings, RS-232 Interfacing for Receiver Control\r
+ URL: http://www.scnt01426.pwp.blueyonder.co.uk/Articles/RS-232/RS-232.htm\r
+\r
+* Kai Altenfelder <ka@suse.de> for supporting us and providing documentation\r
+\r
+Icom PCR backend\r
+----------------\r
+\r
+* Ghetto's team, PCR-1000 ICOM receiver\r
+ URL: http://www.philtered.net/icomlib.phtml\r
+\r
+Other Assistance\r
+----------------\r
+\r
+* Special thanks to Ed Hare, W1RFI, and the American Radio Relay League for technical support.\r
--- /dev/null
+/*\r
+ * Hamlib Interface - API header\r
+ * Copyright (c) 2000-2003 by Frank Singleton\r
+ * Copyright (c) 2000-2012 by Stephane Fillod\r
+ *\r
+ *\r
+ * This library is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU Lesser General Public\r
+ * License as published by the Free Software Foundation; either\r
+ * version 2.1 of the License, or (at your option) any later version.\r
+ *\r
+ * This library is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
+ * Lesser General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU Lesser General Public\r
+ * License along with this library; if not, write to the Free Software\r
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r
+ *\r
+ */\r
+\r
+\r
+#ifndef _RIG_H\r
+#define _RIG_H 1\r
+\r
+#include <stdio.h>\r
+#include <stdarg.h>\r
+\r
+#include <hamlib/riglist.h> /* list in another file to not mess up w/ this one */\r
+\r
+/**\r
+ * \addtogroup rig\r
+ * @{\r
+ */\r
+\r
+/*! \file rig.h\r
+ * \brief Hamlib rig data structures.\r
+ *\r
+ * This file contains the data structures and definitions for the Hamlib rig API.\r
+ * see the rig.c file for more details on the rig API.\r
+ */\r
+\r
+\r
+/* __BEGIN_DECLS should be used at the beginning of your declarations,\r
+ * so that C++ compilers don't mangle their names. Use __END_DECLS at\r
+ * the end of C declarations. */\r
+#undef __BEGIN_DECLS\r
+#undef __END_DECLS\r
+#ifdef __cplusplus\r
+# define __BEGIN_DECLS extern "C" {\r
+# define __END_DECLS }\r
+#else\r
+# define __BEGIN_DECLS /* empty */\r
+# define __END_DECLS /* empty */\r
+#endif\r
+\r
+/* HAMLIB_PARAMS is a macro used to wrap function prototypes, so that compilers\r
+ * that don't understand ANSI C prototypes still work, and ANSI C\r
+ * compilers can issue warnings about type mismatches. */\r
+#undef HAMLIB_PARAMS\r
+#if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(__CYGWIN__) || defined(_WIN32) || defined(__cplusplus)\r
+# define HAMLIB_PARAMS(protos) protos\r
+# define rig_ptr_t void*\r
+#else\r
+# define HAMLIB_PARAMS(protos) ()\r
+# define rig_ptr_t char*\r
+#endif\r
+\r
+#include <hamlib/rig_dll.h>\r
+\r
+\r
+__BEGIN_DECLS\r
+\r
+extern HAMLIB_EXPORT_VAR(const char) hamlib_version[];\r
+extern HAMLIB_EXPORT_VAR(const char) hamlib_copyright[];\r
+\r
+/**\r
+ * \brief Hamlib error codes\r
+ * Error code definition that can be returned by the Hamlib functions.\r
+ * Unless stated otherwise, Hamlib functions return the negative value\r
+ * of rig_errcode_e definitions in case of error, or 0 when successful.\r
+ */\r
+enum rig_errcode_e {\r
+ RIG_OK=0, /*!< No error, operation completed sucessfully */\r
+ RIG_EINVAL, /*!< invalid parameter */\r
+ RIG_ECONF, /*!< invalid configuration (serial,..) */\r
+ RIG_ENOMEM, /*!< memory shortage */\r
+ RIG_ENIMPL, /*!< function not implemented, but will be */\r
+ RIG_ETIMEOUT, /*!< communication timed out */\r
+ RIG_EIO, /*!< IO error, including open failed */\r
+ RIG_EINTERNAL, /*!< Internal Hamlib error, huh! */\r
+ RIG_EPROTO, /*!< Protocol error */\r
+ RIG_ERJCTED, /*!< Command rejected by the rig */\r
+ RIG_ETRUNC, /*!< Command performed, but arg truncated */\r
+ RIG_ENAVAIL, /*!< function not available */\r
+ RIG_ENTARGET, /*!< VFO not targetable */\r
+ RIG_BUSERROR, /*!< Error talking on the bus */\r
+ RIG_BUSBUSY, /*!< Collision on the bus */\r
+ RIG_EARG, /*!< NULL RIG handle or any invalid pointer parameter in get arg */\r
+ RIG_EVFO, /*!< Invalid VFO */\r
+ RIG_EDOM /*!< Argument out of domain of func */\r
+};\r
+\r
+/** \brief Token in the netrigctl protocol for returning error code */\r
+#define NETRIGCTL_RET "RPRT "\r
+\r
+/**\r
+ *\brief Hamlib debug levels\r
+ *\r
+ * REM: Numeric order matters for debug level\r
+ *\r
+ * \sa rig_set_debug\r
+ */\r
+enum rig_debug_level_e {\r
+ RIG_DEBUG_NONE = 0, /*!< no bug reporting */\r
+ RIG_DEBUG_BUG, /*!< serious bug */\r
+ RIG_DEBUG_ERR, /*!< error case (e.g. protocol, memory allocation) */\r
+ RIG_DEBUG_WARN, /*!< warning */\r
+ RIG_DEBUG_VERBOSE, /*!< verbose */\r
+ RIG_DEBUG_TRACE /*!< tracing */\r
+};\r
+\r
+/* --------------- Rig capabilities -----------------*/\r
+\r
+/* Forward struct references */\r
+\r
+struct rig;\r
+struct rig_state;\r
+\r
+/*!\r
+ * \brief Rig structure definition (see rig for details).\r
+ */\r
+typedef struct rig RIG;\r
+\r
+#define RIGNAMSIZ 30\r
+#define RIGVERSIZ 8\r
+#define FILPATHLEN 100\r
+#define FRQRANGESIZ 30\r
+#define MAXCHANDESC 30 /* describe channel eg: "WWV 5Mhz" */\r
+#define TSLSTSIZ 20 /* max tuning step list size, zero ended */\r
+#define FLTLSTSIZ 42 /* max mode/filter list size, zero ended */\r
+#define MAXDBLSTSIZ 8 /* max preamp/att levels supported, zero ended */\r
+#define CHANLSTSIZ 16 /* max mem_list size, zero ended */\r
+#define MAX_CAL_LENGTH 32 /* max calibration plots in cal_table_t */\r
+\r
+\r
+/**\r
+ * \brief CTCSS and DCS type definition.\r
+ *\r
+ * Continuous Tone Controlled Squelch System (CTCSS)\r
+ * sub-audible tone frequency are expressed in \em tenth of Hz.\r
+ * For example, the subaudible tone of 88.5 Hz is represented within\r
+ * Hamlib by 885.\r
+ *\r
+ * Digitally-Coded Squelch codes are simple direct integers.\r
+ */\r
+typedef unsigned int tone_t;\r
+\r
+/**\r
+ * \brief Port type\r
+ */\r
+typedef enum rig_port_e {\r
+ RIG_PORT_NONE = 0, /*!< No port */\r
+ RIG_PORT_SERIAL, /*!< Serial */\r
+ RIG_PORT_NETWORK, /*!< Network socket type */\r
+ RIG_PORT_DEVICE, /*!< Device driver, like the WiNRADiO */\r
+ RIG_PORT_PACKET, /*!< AX.25 network type, e.g. SV8CS protocol */\r
+ RIG_PORT_DTMF, /*!< DTMF protocol bridge via another rig, eg. Kenwood Sky Cmd System */\r
+ RIG_PORT_ULTRA, /*!< IrDA Ultra protocol! */\r
+ RIG_PORT_RPC, /*!< RPC wrapper */\r
+ RIG_PORT_PARALLEL, /*!< Parallel port */\r
+ RIG_PORT_USB, /*!< USB port */\r
+ RIG_PORT_UDP_NETWORK, /*!< UDP Network socket type */\r
+ RIG_PORT_CM108 /*!< CM108 GPIO */\r
+} rig_port_t;\r
+\r
+/**\r
+ * \brief Serial parity\r
+ */\r
+enum serial_parity_e {\r
+ RIG_PARITY_NONE = 0, /*!< No parity */\r
+ RIG_PARITY_ODD, /*!< Odd */\r
+ RIG_PARITY_EVEN, /*!< Even */\r
+ RIG_PARITY_MARK, /*!< Mark */\r
+ RIG_PARITY_SPACE /*!< Space */\r
+};\r
+\r
+/**\r
+ * \brief Serial handshake\r
+ */\r
+enum serial_handshake_e {\r
+ RIG_HANDSHAKE_NONE = 0, /*!< No handshake */\r
+ RIG_HANDSHAKE_XONXOFF, /*!< Software XON/XOFF */\r
+ RIG_HANDSHAKE_HARDWARE /*!< Hardware CTS/RTS */\r
+};\r
+\r
+\r
+/**\r
+ * \brief Serial control state\r
+ */\r
+enum serial_control_state_e {\r
+ RIG_SIGNAL_UNSET = 0, /*!< Unset or tri-state */\r
+ RIG_SIGNAL_ON, /*!< ON */\r
+ RIG_SIGNAL_OFF /*!< OFF */\r
+};\r
+\r
+/** \brief Rig type flags */\r
+typedef enum {\r
+ RIG_FLAG_RECEIVER = (1<<1), /*!< Receiver */\r
+ RIG_FLAG_TRANSMITTER = (1<<2), /*!< Transmitter */\r
+ RIG_FLAG_SCANNER = (1<<3), /*!< Scanner */\r
+\r
+ RIG_FLAG_MOBILE = (1<<4), /*!< mobile sized */\r
+ RIG_FLAG_HANDHELD = (1<<5), /*!< handheld sized */\r
+ RIG_FLAG_COMPUTER = (1<<6), /*!< "Computer" rig */\r
+ RIG_FLAG_TRUNKING = (1<<7), /*!< has trunking */\r
+ RIG_FLAG_APRS = (1<<8), /*!< has APRS */\r
+ RIG_FLAG_TNC = (1<<9), /*!< has TNC */\r
+ RIG_FLAG_DXCLUSTER = (1<<10), /*!< has DXCluster */\r
+ RIG_FLAG_TUNER = (1<<11) /*!< dumb tuner */\r
+} rig_type_t;\r
+\r
+#define RIG_FLAG_TRANSCEIVER (RIG_FLAG_RECEIVER|RIG_FLAG_TRANSMITTER)\r
+#define RIG_TYPE_MASK (RIG_FLAG_TRANSCEIVER|RIG_FLAG_SCANNER|RIG_FLAG_MOBILE|RIG_FLAG_HANDHELD|RIG_FLAG_COMPUTER|RIG_FLAG_TRUNKING|RIG_FLAG_TUNER)\r
+\r
+#define RIG_TYPE_OTHER 0\r
+#define RIG_TYPE_TRANSCEIVER RIG_FLAG_TRANSCEIVER\r
+#define RIG_TYPE_HANDHELD (RIG_FLAG_TRANSCEIVER|RIG_FLAG_HANDHELD)\r
+#define RIG_TYPE_MOBILE (RIG_FLAG_TRANSCEIVER|RIG_FLAG_MOBILE)\r
+#define RIG_TYPE_RECEIVER RIG_FLAG_RECEIVER\r
+#define RIG_TYPE_PCRECEIVER (RIG_FLAG_COMPUTER|RIG_FLAG_RECEIVER)\r
+#define RIG_TYPE_SCANNER (RIG_FLAG_SCANNER|RIG_FLAG_RECEIVER)\r
+#define RIG_TYPE_TRUNKSCANNER (RIG_TYPE_SCANNER|RIG_FLAG_TRUNKING)\r
+#define RIG_TYPE_COMPUTER (RIG_FLAG_TRANSCEIVER|RIG_FLAG_COMPUTER)\r
+#define RIG_TYPE_TUNER RIG_FLAG_TUNER\r
+\r
+\r
+/**\r
+ * \brief Development status of the backend\r
+ */\r
+enum rig_status_e {\r
+ RIG_STATUS_ALPHA = 0, /*!< Alpha quality, i.e. development */\r
+ RIG_STATUS_UNTESTED, /*!< Written from available specs, rig unavailable for test, feedback wanted! */\r
+ RIG_STATUS_BETA, /*!< Beta quality */\r
+ RIG_STATUS_STABLE, /*!< Stable */\r
+ RIG_STATUS_BUGGY /*!< Was stable, but something broke it! */\r
+/* RIG_STATUS_NEW * *!< Initial release of code\r
+ * !! Use of RIG_STATUS_NEW is deprecated. Do not use it anymore */\r
+};\r
+\r
+/** \brief Map all deprecated RIG_STATUS_NEW references to RIG_STATUS_UNTESTED for backward compatibility */\r
+#define RIG_STATUS_NEW RIG_STATUS_UNTESTED\r
+\r
+/**\r
+ * \brief Repeater shift type\r
+ */\r
+typedef enum {\r
+ RIG_RPT_SHIFT_NONE = 0, /*!< No repeater shift */\r
+ RIG_RPT_SHIFT_MINUS, /*!< "-" shift */\r
+ RIG_RPT_SHIFT_PLUS /*!< "+" shift */\r
+} rptr_shift_t;\r
+\r
+/**\r
+ * \brief Split mode\r
+ */\r
+typedef enum {\r
+ RIG_SPLIT_OFF = 0, /*!< Split mode disabled */\r
+ RIG_SPLIT_ON /*!< Split mode enabled */\r
+} split_t;\r
+\r
+/**\r
+ * \brief Frequency type,\r
+ * Frequency type unit in Hz, able to hold SHF frequencies.\r
+ */\r
+typedef double freq_t;\r
+/** \brief printf(3) format to be used for freq_t type */\r
+#define PRIfreq "f"\r
+/** \brief scanf(3) format to be used for freq_t type */\r
+#define SCNfreq "lf"\r
+#define FREQFMT SCNfreq\r
+\r
+/**\r
+ * \brief Short frequency type\r
+ * Frequency in Hz restricted to 31bits, suitable for offsets, shifts, etc..\r
+ */\r
+typedef signed long shortfreq_t;\r
+\r
+#define Hz(f) ((freq_t)(f))\r
+#define kHz(f) ((freq_t)((f)*(freq_t)1000))\r
+#define MHz(f) ((freq_t)((f)*(freq_t)1000000))\r
+#define GHz(f) ((freq_t)((f)*(freq_t)1000000000))\r
+\r
+#define s_Hz(f) ((shortfreq_t)(f))\r
+#define s_kHz(f) ((shortfreq_t)((f)*(shortfreq_t)1000))\r
+#define s_MHz(f) ((shortfreq_t)((f)*(shortfreq_t)1000000))\r
+#define s_GHz(f) ((shortfreq_t)((f)*(shortfreq_t)1000000000))\r
+\r
+#define RIG_FREQ_NONE Hz(0)\r
+\r
+\r
+/**\r
+ * \brief VFO definition\r
+ *\r
+ * There are several ways of using a vfo_t. For most cases, using RIG_VFO_A,\r
+ * RIG_VFO_B, RIG_VFO_CURR, etc., as opaque macros should suffice.\r
+ *\r
+ * Strictly speaking a VFO is Variable Frequency Oscillator.\r
+ * Here, it is referred as a tunable channel, from the radio operator's\r
+ * point of view. The channel can be designated individually by its real\r
+ * number, or by using an alias.\r
+ *\r
+ * Aliases may or may not be honored by a backend and are defined using\r
+ * high significant bits, i.e. RIG_VFO_MEM, RIG_VFO_MAIN, etc.\r
+ *\r
+ */\r
+typedef int vfo_t;\r
+\r
+/** \brief '' -- used in caps */\r
+#define RIG_VFO_NONE 0\r
+\r
+#define RIG_VFO_TX_FLAG (1<<30)\r
+\r
+/** \brief \c currVFO -- current "tunable channel"/VFO */\r
+#define RIG_VFO_CURR (1<<29)\r
+\r
+/** \brief \c MEM -- means Memory mode, to be used with set_vfo */\r
+#define RIG_VFO_MEM (1<<28)\r
+\r
+/** \brief \c VFO -- means (last or any)VFO mode, with set_vfo */\r
+#define RIG_VFO_VFO (1<<27)\r
+\r
+#define RIG_VFO_TX_VFO(v) ((v)|RIG_VFO_TX_FLAG)\r
+\r
+/** \brief \c TX -- alias for split tx or uplink, of VFO_CURR */\r
+#define RIG_VFO_TX RIG_VFO_TX_VFO(RIG_VFO_CURR)\r
+\r
+/** \brief \c RX -- alias for split rx or downlink */\r
+#define RIG_VFO_RX RIG_VFO_CURR\r
+\r
+/** \brief \c Main -- alias for MAIN */\r
+#define RIG_VFO_MAIN (1<<26)\r
+/** \brief \c Sub -- alias for SUB */\r
+#define RIG_VFO_SUB (1<<25)\r
+\r
+#define RIG_VFO_N(n) (1<<(n))\r
+\r
+/** \brief \c VFOA -- VFO A */\r
+#define RIG_VFO_A RIG_VFO_N(0)\r
+/** \brief \c VFOB -- VFO B */\r
+#define RIG_VFO_B RIG_VFO_N(1)\r
+/** \brief \c VFOC -- VFO C */\r
+#define RIG_VFO_C RIG_VFO_N(2)\r
+\r
+\r
+/*\r
+ * targetable bitfields, for internal use.\r
+ * RIG_TARGETABLE_PURE means a pure targetable radio on every command\r
+ */\r
+#define RIG_TARGETABLE_NONE 0\r
+#define RIG_TARGETABLE_FREQ (1<<0)\r
+#define RIG_TARGETABLE_MODE (1<<1)\r
+#define RIG_TARGETABLE_PURE (1<<2)\r
+#define RIG_TARGETABLE_TONE (1<<3)\r
+#define RIG_TARGETABLE_FUNC (1<<4)\r
+#define RIG_TARGETABLE_ALL 0x7fffffff\r
+\r
+\r
+#define RIG_PASSBAND_NORMAL s_Hz(0)\r
+/**\r
+ * \brief Passband width, in Hz\r
+ * \sa rig_passband_normal, rig_passband_narrow, rig_passband_wide\r
+ */\r
+typedef shortfreq_t pbwidth_t;\r
+\r
+\r
+/**\r
+ * \brief DCD status\r
+ */\r
+typedef enum dcd_e {\r
+ RIG_DCD_OFF = 0, /*!< Squelch closed */\r
+ RIG_DCD_ON /*!< Squelch open */\r
+} dcd_t;\r
+\r
+/**\r
+ * \brief DCD type\r
+ * \sa rig_get_dcd\r
+ */\r
+typedef enum {\r
+ RIG_DCD_NONE = 0, /*!< No DCD available */\r
+ RIG_DCD_RIG, /*!< Rig has DCD status support, i.e. rig has get_dcd cap */\r
+ RIG_DCD_SERIAL_DSR, /*!< DCD status from serial DSR signal */\r
+ RIG_DCD_SERIAL_CTS, /*!< DCD status from serial CTS signal */\r
+ RIG_DCD_SERIAL_CAR, /*!< DCD status from serial CD signal */\r
+ RIG_DCD_PARALLEL, /*!< DCD status from parallel port pin */\r
+ RIG_DCD_CM108 /*!< DCD status from CM108 vol dn pin */\r
+} dcd_type_t;\r
+\r
+\r
+/**\r
+ * \brief PTT status\r
+ */\r
+typedef enum {\r
+ RIG_PTT_OFF = 0, /*!< PTT desactivated */\r
+ RIG_PTT_ON, /*!< PTT activated */\r
+ RIG_PTT_ON_MIC, /*!< PTT Mic only, fallbacks on RIG_PTT_ON if unavailable */\r
+ RIG_PTT_ON_DATA /*!< PTT Data (Mic-muted), fallbacks on RIG_PTT_ON if unavailable */\r
+} ptt_t;\r
+\r
+/**\r
+ * \brief PTT type\r
+ * \sa rig_get_ptt\r
+ */\r
+typedef enum {\r
+ RIG_PTT_NONE = 0, /*!< No PTT available */\r
+ RIG_PTT_RIG, /*!< Legacy PTT */\r
+ RIG_PTT_SERIAL_DTR, /*!< PTT control through serial DTR signal */\r
+ RIG_PTT_SERIAL_RTS, /*!< PTT control through serial RTS signal */\r
+ RIG_PTT_PARALLEL, /*!< PTT control through parallel port */\r
+ RIG_PTT_RIG_MICDATA, /*!< Legacy PTT, supports RIG_PTT_ON_MIC/RIG_PTT_ON_DATA */\r
+ RIG_PTT_CM108 /*!< PTT control through CM108 GPIO pin */\r
+} ptt_type_t;\r
+\r
+/**\r
+ * \brief Radio power state\r
+ */\r
+typedef enum {\r
+ RIG_POWER_OFF = 0, /*!< Power off */\r
+ RIG_POWER_ON = (1<<0), /*!< Power on */\r
+ RIG_POWER_STANDBY = (1<<1) /*!< Standby */\r
+} powerstat_t;\r
+\r
+/**\r
+ * \brief Reset operation\r
+ */\r
+typedef enum {\r
+ RIG_RESET_NONE = 0, /*!< No reset */\r
+ RIG_RESET_SOFT = (1<<0), /*!< Software reset */\r
+ RIG_RESET_VFO = (1<<1), /*!< VFO reset */\r
+ RIG_RESET_MCALL = (1<<2), /*!< Memory clear */\r
+ RIG_RESET_MASTER = (1<<3) /*!< Master reset */\r
+} reset_t;\r
+\r
+\r
+/**\r
+ * \brief VFO operation\r
+ *\r
+ * A VFO operation is an action on a VFO (or tunable memory).\r
+ * The difference with a function is that an action has no on/off\r
+ * status, it is performed at once.\r
+ *\r
+ * Note: the vfo argument for some vfo operation may be irrelevant,\r
+ * and thus will be ignored.\r
+ *\r
+ * The VFO/MEM "mode" is set by rig_set_vfo.\n\r
+ * \c STRING used in rigctl\r
+ *\r
+ * \sa rig_parse_vfo_op() rig_strvfop()\r
+ */\r
+typedef enum {\r
+ RIG_OP_NONE = 0, /*!< '' No VFO_OP */\r
+ RIG_OP_CPY = (1<<0), /*!< \c CPY -- VFO A = VFO B */\r
+ RIG_OP_XCHG = (1<<1), /*!< \c XCHG -- Exchange VFO A/B */\r
+ RIG_OP_FROM_VFO = (1<<2), /*!< \c FROM_VFO -- VFO->MEM */\r
+ RIG_OP_TO_VFO = (1<<3), /*!< \c TO_VFO -- MEM->VFO */\r
+ RIG_OP_MCL = (1<<4), /*!< \c MCL -- Memory clear */\r
+ RIG_OP_UP = (1<<5), /*!< \c UP -- UP increment VFO freq by tuning step*/\r
+ RIG_OP_DOWN = (1<<6), /*!< \c DOWN -- DOWN decrement VFO freq by tuning step*/\r
+ RIG_OP_BAND_UP = (1<<7), /*!< \c BAND_UP -- Band UP */\r
+ RIG_OP_BAND_DOWN = (1<<8), /*!< \c BAND_DOWN -- Band DOWN */\r
+ RIG_OP_LEFT = (1<<9), /*!< \c LEFT -- LEFT */\r
+ RIG_OP_RIGHT = (1<<10),/*!< \c RIGHT -- RIGHT */\r
+ RIG_OP_TUNE = (1<<11),/*!< \c TUNE -- Start tune */\r
+ RIG_OP_TOGGLE = (1<<12) /*!< \c TOGGLE -- Toggle VFOA and VFOB */\r
+} vfo_op_t;\r
+\r
+\r
+/**\r
+ * \brief Rig Scan operation\r
+ *\r
+ * Various scan operations supported by a rig.\n\r
+ * \c STRING used in rigctl\r
+ *\r
+ * \sa rig_parse_scan() rig_strscan()\r
+ */\r
+typedef enum {\r
+ RIG_SCAN_NONE = 0, /*!< '' No Scan */\r
+ RIG_SCAN_STOP = RIG_SCAN_NONE, /*!< \c STOP -- Stop scanning */\r
+ RIG_SCAN_MEM = (1<<0), /*!< \c MEM -- Scan all memory channels */\r
+ RIG_SCAN_SLCT = (1<<1), /*!< \c SLCT -- Scan all selected memory channels */\r
+ RIG_SCAN_PRIO = (1<<2), /*!< \c PRIO -- Priority watch (mem or call channel) */\r
+ RIG_SCAN_PROG = (1<<3), /*!< \c PROG -- Programmed(edge) scan */\r
+ RIG_SCAN_DELTA = (1<<4), /*!< \c DELTA -- delta-f scan */\r
+ RIG_SCAN_VFO = (1<<5), /*!< \c VFO -- most basic scan */\r
+ RIG_SCAN_PLT = (1<<6) /*!< \c PLT -- Scan using pipelined tuning */\r
+} scan_t;\r
+\r
+/**\r
+ * \brief configuration token\r
+ */\r
+typedef long token_t;\r
+\r
+#define RIG_CONF_END 0\r
+\r
+/**\r
+ * \brief parameter types\r
+ *\r
+ * Used with configuration, parameter and extra-parm tables.\r
+ *\r
+ * Current internal implementation\r
+ * NUMERIC: val.f or val.i\r
+ * COMBO: val.i, starting from 0. Points to a table of strings or asci stored values.\r
+ * STRING: val.s or val.cs\r
+ * CHECKBUTTON: val.i 0/1\r
+ */\r
+\r
+/* strongly inspired from soundmodem. Thanks Thomas! */\r
+\r
+enum rig_conf_e {\r
+ RIG_CONF_STRING, /*!< String type */\r
+ RIG_CONF_COMBO, /*!< Combo type */\r
+ RIG_CONF_NUMERIC, /*!< Numeric type integer or real */\r
+ RIG_CONF_CHECKBUTTON, /*!< on/off type */\r
+ RIG_CONF_BUTTON /*!< Button type */\r
+};\r
+\r
+#define RIG_COMBO_MAX 8\r
+\r
+/**\r
+ * \brief Configuration parameter structure.\r
+ */\r
+struct confparams {\r
+ token_t token; /*!< Conf param token ID */\r
+ const char *name; /*!< Param name, no spaces allowed */\r
+ const char *label; /*!< Human readable label */\r
+ const char *tooltip; /*!< Hint on the parameter */\r
+ const char *dflt; /*!< Default value */\r
+ enum rig_conf_e type; /*!< Type of the parameter */\r
+ union { /*!< */\r
+ struct { /*!< */\r
+ float min; /*!< Minimum value */\r
+ float max; /*!< Maximum value */\r
+ float step; /*!< Step */\r
+ } n; /*!< Numeric type */\r
+ struct { /*!< */\r
+ const char *combostr[RIG_COMBO_MAX]; /*!< Combo list */\r
+ } c; /*!< Combo type */\r
+ } u; /*!< Type union */\r
+};\r
+\r
+/** \brief Announce\r
+ *\r
+ * Designate optional speech synthesizer.\r
+ */\r
+typedef enum {\r
+ RIG_ANN_NONE = 0, /*!< None */\r
+ RIG_ANN_OFF = RIG_ANN_NONE, /*!< disable announces */\r
+ RIG_ANN_FREQ = (1<<0), /*!< Announce frequency */\r
+ RIG_ANN_RXMODE = (1<<1), /*!< Announce receive mode */\r
+ RIG_ANN_CW = (1<<2), /*!< CW */\r
+ RIG_ANN_ENG = (1<<3), /*!< English */\r
+ RIG_ANN_JAP = (1<<4) /*!< Japan */\r
+} ann_t;\r
+\r
+\r
+/**\r
+ * \brief Antenna number\r
+ */\r
+typedef int ant_t;\r
+\r
+#define RIG_ANT_NONE 0\r
+#define RIG_ANT_N(n) ((ant_t)1<<(n))\r
+#define RIG_ANT_1 RIG_ANT_N(0)\r
+#define RIG_ANT_2 RIG_ANT_N(1)\r
+#define RIG_ANT_3 RIG_ANT_N(2)\r
+#define RIG_ANT_4 RIG_ANT_N(3)\r
+#define RIG_ANT_5 RIG_ANT_N(4)\r
+\r
+/**\r
+ * \brief AGC delay settings\r
+ */\r
+/* TODO: kill me, and replace by real AGC delay */\r
+enum agc_level_e {\r
+ RIG_AGC_OFF = 0,\r
+ RIG_AGC_SUPERFAST,\r
+ RIG_AGC_FAST,\r
+ RIG_AGC_SLOW,\r
+ RIG_AGC_USER, /*!< user selectable */\r
+ RIG_AGC_MEDIUM,\r
+ RIG_AGC_AUTO\r
+};\r
+\r
+/**\r
+ * \brief Level display meters\r
+ */\r
+enum meter_level_e {\r
+ RIG_METER_NONE = 0, /*< No display meter */\r
+ RIG_METER_SWR = (1<<0), /*< Stationary Wave Ratio */\r
+ RIG_METER_COMP = (1<<1), /*< Compression level */\r
+ RIG_METER_ALC = (1<<2), /*< ALC */\r
+ RIG_METER_IC = (1<<3), /*< IC */\r
+ RIG_METER_DB = (1<<4), /*< DB */\r
+ RIG_METER_PO = (1<<5), /*< Power Out */\r
+ RIG_METER_VDD = (1<<6) /*< Final Amp Voltage */\r
+};\r
+\r
+/**\r
+ * \brief Universal approach for passing values\r
+ * \sa rig_set_level, rig_get_level, rig_set_parm, rig_get_parm\r
+ */\r
+typedef union {\r
+ signed int i; /*!< Signed integer */\r
+ float f; /*!< Single precision float */\r
+ char *s; /*!< Pointer to char string */\r
+ const char *cs; /*!< Pointer to constant char string */\r
+} value_t;\r
+\r
+/** \brief Rig Level Settings\r
+ *\r
+ * Various operating levels supported by a rig.\n\r
+ * \c STRING used in rigctl\r
+ *\r
+ * \sa rig_parse_level() rig_strlevel()\r
+ */\r
+\r
+enum rig_level_e {\r
+ RIG_LEVEL_NONE = 0, /*!< '' -- No Level */\r
+ RIG_LEVEL_PREAMP = (1<<0), /*!< \c PREAMP -- Preamp, arg int (dB) */\r
+ RIG_LEVEL_ATT = (1<<1), /*!< \c ATT -- Attenuator, arg int (dB) */\r
+ RIG_LEVEL_VOX = (1<<2), /*!< \c VOX -- VOX delay, arg int (tenth of seconds) */\r
+ RIG_LEVEL_AF = (1<<3), /*!< \c AF -- Volume, arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_RF = (1<<4), /*!< \c RF -- RF gain (not TX power), arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_SQL = (1<<5), /*!< \c SQL -- Squelch, arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_IF = (1<<6), /*!< \c IF -- IF, arg int (Hz) */\r
+ RIG_LEVEL_APF = (1<<7), /*!< \c APF -- Audio Peak Filter, arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_NR = (1<<8), /*!< \c NR -- Noise Reduction, arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_PBT_IN = (1<<9), /*!< \c PBT_IN -- Twin PBT (inside), arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_PBT_OUT = (1<<10),/*!< \c PBT_OUT -- Twin PBT (outside), arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_CWPITCH = (1<<11),/*!< \c CWPITCH -- CW pitch, arg int (Hz) */\r
+ RIG_LEVEL_RFPOWER = (1<<12),/*!< \c RFPOWER -- RF Power, arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_MICGAIN = (1<<13),/*!< \c MICGAIN -- MIC Gain, arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_KEYSPD = (1<<14),/*!< \c KEYSPD -- Key Speed, arg int (WPM) */\r
+ RIG_LEVEL_NOTCHF = (1<<15),/*!< \c NOTCHF -- Notch Freq., arg int (Hz) */\r
+ RIG_LEVEL_COMP = (1<<16),/*!< \c COMP -- Compressor, arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_AGC = (1<<17),/*!< \c AGC -- AGC, arg int (see enum agc_level_e) */\r
+ RIG_LEVEL_BKINDL = (1<<18),/*!< \c BKINDL -- BKin Delay, arg int (tenth of dots) */\r
+ RIG_LEVEL_BALANCE = (1<<19),/*!< \c BAL -- Balance (Dual Watch), arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_METER = (1<<20),/*!< \c METER -- Display meter, arg int (see enum meter_level_e) */\r
+\r
+ RIG_LEVEL_VOXGAIN = (1<<21),/*!< \c VOXGAIN -- VOX gain level, arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_VOXDELAY = RIG_LEVEL_VOX, /*!< Synonym of RIG_LEVEL_VOX */\r
+ RIG_LEVEL_ANTIVOX = (1<<22),/*!< \c ANTIVOX -- anti-VOX level, arg float [0.0 ... 1.0] */\r
+ RIG_LEVEL_SLOPE_LOW = (1<<23),/*!< \c SLOPE_LOW -- Slope tune, low frequency cut, */\r
+ RIG_LEVEL_SLOPE_HIGH = (1<<24),/*!< \c SLOPE_HIGH -- Slope tune, high frequency cut, */\r
+ RIG_LEVEL_BKIN_DLYMS = (1<<25),/*!< \c BKIN_DLYMS -- BKin Delay, arg int Milliseconds */\r
+\r
+ /*!< These ones are not settable */\r
+ RIG_LEVEL_RAWSTR = (1<<26),/*!< \c RAWSTR -- Raw (A/D) value for signal strength, specific to each rig, arg int */\r
+ RIG_LEVEL_SQLSTAT = (1<<27),/*!< \c SQLSTAT -- SQL status, arg int (open=1/closed=0). Deprecated, use get_dcd instead */\r
+ RIG_LEVEL_SWR = (1<<28),/*!< \c SWR -- SWR, arg float [0.0 ... infinite] */\r
+ RIG_LEVEL_ALC = (1<<29),/*!< \c ALC -- ALC, arg float */\r
+ RIG_LEVEL_STRENGTH =(1<<30) /*!< \c STRENGTH -- Effective (calibrated) signal strength relative to S9, arg int (dB) */\r
+ /*RIG_LEVEL_BWC = (1<<31)*/ /*!< Bandwidth Control, arg int (Hz) */\r
+};\r
+\r
+#define RIG_LEVEL_FLOAT_LIST (RIG_LEVEL_AF|RIG_LEVEL_RF|RIG_LEVEL_SQL|RIG_LEVEL_APF|RIG_LEVEL_NR|RIG_LEVEL_PBT_IN|RIG_LEVEL_PBT_OUT|RIG_LEVEL_RFPOWER|RIG_LEVEL_MICGAIN|RIG_LEVEL_COMP|RIG_LEVEL_BALANCE|RIG_LEVEL_SWR|RIG_LEVEL_ALC|RIG_LEVEL_VOXGAIN|RIG_LEVEL_ANTIVOX)\r
+\r
+#define RIG_LEVEL_READONLY_LIST (RIG_LEVEL_SQLSTAT|RIG_LEVEL_SWR|RIG_LEVEL_ALC|RIG_LEVEL_STRENGTH|RIG_LEVEL_RAWSTR)\r
+\r
+#define RIG_LEVEL_IS_FLOAT(l) ((l)&RIG_LEVEL_FLOAT_LIST)\r
+#define RIG_LEVEL_SET(l) ((l)&~RIG_LEVEL_READONLY_LIST)\r
+\r
+\r
+/**\r
+ * \brief Rig Parameters\r
+ *\r
+ * Parameters are settings that are not VFO specific.\n\r
+ * \c STRING used in rigctl\r
+ *\r
+ * \sa rig_parse_parm() rig_strparm()\r
+ */\r
+enum rig_parm_e {\r
+ RIG_PARM_NONE = 0, /*!< '' -- No Parm */\r
+ RIG_PARM_ANN = (1<<0), /*!< \c ANN -- "Announce" level, see ann_t */\r
+ RIG_PARM_APO = (1<<1), /*!< \c APO -- Auto power off, int in minute */\r
+ RIG_PARM_BACKLIGHT = (1<<2), /*!< \c BACKLIGHT -- LCD light, float [0.0 ... 1.0] */\r
+ RIG_PARM_BEEP = (1<<4), /*!< \c BEEP -- Beep on keypressed, int (0,1) */\r
+ RIG_PARM_TIME = (1<<5), /*!< \c TIME -- hh:mm:ss, int in seconds from 00:00:00 */\r
+ RIG_PARM_BAT = (1<<6), /*!< \c BAT -- battery level, float [0.0 ... 1.0] */\r
+ RIG_PARM_KEYLIGHT = (1<<7) /*!< \c KEYLIGHT -- Button backlight, on/off */\r
+};\r
+\r
+#define RIG_PARM_FLOAT_LIST (RIG_PARM_BACKLIGHT|RIG_PARM_BAT)\r
+#define RIG_PARM_READONLY_LIST (RIG_PARM_BAT)\r
+\r
+#define RIG_PARM_IS_FLOAT(l) ((l)&RIG_PARM_FLOAT_LIST)\r
+#define RIG_PARM_SET(l) ((l)&~RIG_PARM_READONLY_LIST)\r
+\r
+#define RIG_SETTING_MAX 32\r
+/**\r
+ * \brief Setting\r
+ *\r
+ * This can be a func, a level or a parm.\r
+ * Each bit designates one of them.\r
+ */\r
+typedef unsigned long setting_t;\r
+\r
+/*\r
+ * tranceive mode, ie. the rig notify the host of any event,\r
+ * like freq changed, mode changed, etc.\r
+ */\r
+#define RIG_TRN_OFF 0\r
+#define RIG_TRN_RIG 1\r
+#define RIG_TRN_POLL 2\r
+\r
+\r
+/**\r
+ * \brief Rig Function Settings\r
+ *\r
+ * Various operating functions supported by a rig.\n\r
+ * \c STRING used in rigctl\r
+ *\r
+ * \sa rig_parse_func() rig_strfunc()\r
+ */\r
+enum rig_func_e {\r
+ RIG_FUNC_NONE = 0, /*!< '' -- No Function */\r
+ RIG_FUNC_FAGC = (1<<0), /*!< \c FAGC -- Fast AGC */\r
+ RIG_FUNC_NB = (1<<1), /*!< \c NB -- Noise Blanker */\r
+ RIG_FUNC_COMP = (1<<2), /*!< \c COMP -- Speech Compression */\r
+ RIG_FUNC_VOX = (1<<3), /*!< \c VOX -- Voice Operated Relay */\r
+ RIG_FUNC_TONE = (1<<4), /*!< \c TONE -- CTCSS Tone */\r
+ RIG_FUNC_TSQL = (1<<5), /*!< \c TSQL -- CTCSS Activate/De-activate */\r
+ RIG_FUNC_SBKIN = (1<<6), /*!< \c SBKIN -- Semi Break-in (CW mode) */\r
+ RIG_FUNC_FBKIN = (1<<7), /*!< \c FBKIN -- Full Break-in (CW mode) */\r
+ RIG_FUNC_ANF = (1<<8), /*!< \c ANF -- Automatic Notch Filter (DSP) */\r
+ RIG_FUNC_NR = (1<<9), /*!< \c NR -- Noise Reduction (DSP) */\r
+ RIG_FUNC_AIP = (1<<10),/*!< \c AIP -- RF pre-amp (AIP on Kenwood, IPO on Yaesu, etc.) */\r
+ RIG_FUNC_APF = (1<<11),/*!< \c APF -- Auto Passband/Audio Peak Filter */\r
+ RIG_FUNC_MON = (1<<12),/*!< \c MON -- Monitor transmitted signal */\r
+ RIG_FUNC_MN = (1<<13),/*!< \c MN -- Manual Notch */\r
+ RIG_FUNC_RF = (1<<14),/*!< \c RF -- RTTY Filter */\r
+ RIG_FUNC_ARO = (1<<15),/*!< \c ARO -- Auto Repeater Offset */\r
+ RIG_FUNC_LOCK = (1<<16),/*!< \c LOCK -- Lock */\r
+ RIG_FUNC_MUTE = (1<<17),/*!< \c MUTE -- Mute */\r
+ RIG_FUNC_VSC = (1<<18),/*!< \c VSC -- Voice Scan Control */\r
+ RIG_FUNC_REV = (1<<19),/*!< \c REV -- Reverse transmit and receive frequencies */\r
+ RIG_FUNC_SQL = (1<<20),/*!< \c SQL -- Turn Squelch Monitor on/off */\r
+ RIG_FUNC_ABM = (1<<21),/*!< \c ABM -- Auto Band Mode */\r
+ RIG_FUNC_BC = (1<<22),/*!< \c BC -- Beat Canceller */\r
+ RIG_FUNC_MBC = (1<<23),/*!< \c MBC -- Manual Beat Canceller */\r
+ /* (1<<24), used to be RIG_FUNC_LMP, see RIG_PARM_BACKLIGHT instead) */\r
+ RIG_FUNC_AFC = (1<<25),/*!< \c AFC -- Auto Frequency Control ON/OFF */\r
+ RIG_FUNC_SATMODE = (1<<26),/*!< \c SATMODE -- Satellite mode ON/OFF */\r
+ RIG_FUNC_SCOPE = (1<<27),/*!< \c SCOPE -- Simple bandscope ON/OFF */\r
+ RIG_FUNC_RESUME = (1<<28),/*!< \c RESUME -- Scan auto-resume */\r
+ RIG_FUNC_TBURST = (1<<29),/*!< \c TBURST -- 1750 Hz tone burst */\r
+ RIG_FUNC_TUNER = (1<<30) /*!< \c TUNER -- Enable automatic tuner */\r
+};\r
+\r
+/*\r
+ * power unit macros, converts to mW\r
+ * This is limited to 2MW on 32 bits systems.\r
+ */\r
+#define mW(p) ((int)(p))\r
+#define Watts(p) ((int)((p)*1000))\r
+#define W(p) Watts(p)\r
+#define kW(p) ((int)((p)*1000000L))\r
+\r
+/**\r
+ * \brief Radio mode\r
+ *\r
+ * Various modes supported by a rig.\n\r
+ * \c STRING used in rigctl\r
+ *\r
+ * \sa rig_parse_mode() rig_strrmode()\r
+ */\r
+typedef enum {\r
+ RIG_MODE_NONE = 0, /*!< '' -- None */\r
+ RIG_MODE_AM = (1<<0), /*!< \c AM -- Amplitude Modulation */\r
+ RIG_MODE_CW = (1<<1), /*!< \c CW -- CW "normal" sideband */\r
+ RIG_MODE_USB = (1<<2), /*!< \c USB -- Upper Side Band */\r
+ RIG_MODE_LSB = (1<<3), /*!< \c LSB -- Lower Side Band */\r
+ RIG_MODE_RTTY = (1<<4), /*!< \c RTTY -- Radio Teletype */\r
+ RIG_MODE_FM = (1<<5), /*!< \c FM -- "narrow" band FM */\r
+ RIG_MODE_WFM = (1<<6), /*!< \c WFM -- broadcast wide FM */\r
+ RIG_MODE_CWR = (1<<7), /*!< \c CWR -- CW "reverse" sideband */\r
+ RIG_MODE_RTTYR = (1<<8), /*!< \c RTTYR -- RTTY "reverse" sideband */\r
+ RIG_MODE_AMS = (1<<9), /*!< \c AMS -- Amplitude Modulation Synchronous */\r
+ RIG_MODE_PKTLSB = (1<<10),/*!< \c PKTLSB -- Packet/Digital LSB mode (dedicated port) */\r
+ RIG_MODE_PKTUSB = (1<<11),/*!< \c PKTUSB -- Packet/Digital USB mode (dedicated port) */\r
+ RIG_MODE_PKTFM = (1<<12),/*!< \c PKTFM -- Packet/Digital FM mode (dedicated port) */\r
+ RIG_MODE_ECSSUSB = (1<<13),/*!< \c ECSSUSB -- Exalted Carrier Single Sideband USB */\r
+ RIG_MODE_ECSSLSB = (1<<14),/*!< \c ECSSLSB -- Exalted Carrier Single Sideband LSB */\r
+ RIG_MODE_FAX = (1<<15),/*!< \c FAX -- Facsimile Mode */\r
+ RIG_MODE_SAM = (1<<16),/*!< \c SAM -- Synchronous AM double sideband */\r
+ RIG_MODE_SAL = (1<<17),/*!< \c SAL -- Synchronous AM lower sideband */\r
+ RIG_MODE_SAH = (1<<18),/*!< \c SAH -- Synchronous AM upper (higher) sideband */\r
+ RIG_MODE_DSB = (1<<19), /*!< \c DSB -- Double sideband suppressed carrier */\r
+ RIG_MODE_TESTS_MAX /*!< \c MUST ALWAYS BE LAST, Max Count for dumpcaps.c */\r
+} rmode_t;\r
+\r
+\r
+/** \brief macro for backends, not to be used by rig_set_mode et al. */\r
+#define RIG_MODE_SSB (RIG_MODE_USB|RIG_MODE_LSB)\r
+\r
+/** \brief macro for backends, not to be used by rig_set_mode et al. */\r
+#define RIG_MODE_ECSS (RIG_MODE_ECSSUSB|RIG_MODE_ECSSLSB)\r
+\r
+\r
+#define RIG_DBLST_END 0 /* end marker in a preamp/att level list */\r
+#define RIG_IS_DBLST_END(d) ((d)==0)\r
+\r
+/**\r
+ * \brief Frequency range\r
+ *\r
+ * Put together a group of this struct in an array to define\r
+ * what frequencies your rig has access to.\r
+ */\r
+typedef struct freq_range_list {\r
+ freq_t start; /*!< Start frequency */\r
+ freq_t end; /*!< End frequency */\r
+ rmode_t modes; /*!< Bit field of RIG_MODE's */\r
+ int low_power; /*!< Lower RF power in mW, -1 for no power (ie. rx list) */\r
+ int high_power; /*!< Higher RF power in mW, -1 for no power (ie. rx list) */\r
+ vfo_t vfo; /*!< VFO list equipped with this range */\r
+ ant_t ant; /*!< Antenna list equipped with this range, 0 means all */\r
+} freq_range_t;\r
+\r
+#define RIG_FRNG_END {Hz(0),Hz(0),RIG_MODE_NONE,0,0,RIG_VFO_NONE}\r
+#define RIG_IS_FRNG_END(r) ((r).start == Hz(0) && (r).end == Hz(0))\r
+\r
+#define RIG_ITU_REGION1 1\r
+#define RIG_ITU_REGION2 2\r
+#define RIG_ITU_REGION3 3\r
+\r
+/**\r
+ * \brief Tuning step definition\r
+ *\r
+ * Lists the tuning steps available for each mode.\r
+ *\r
+ * If a ts field in the list has RIG_TS_ANY value,\r
+ * this means the rig allows its tuning step to be\r
+ * set to any value ranging from the lowest to the\r
+ * highest (if any) value in the list for that mode.\r
+ * The tuning step must be sorted in the ascending\r
+ * order, and the RIG_TS_ANY value, if present, must\r
+ * be the last one in the list.\r
+ *\r
+ * Note also that the minimum frequency resolution\r
+ * of the rig is determined by the lowest value\r
+ * in the Tuning step list.\r
+ *\r
+ * \sa rig_set_ts, rig_get_resolution\r
+ */\r
+struct tuning_step_list {\r
+ rmode_t modes; /*!< Bit field of RIG_MODE's */\r
+ shortfreq_t ts; /*!< Tuning step in Hz */\r
+};\r
+\r
+#define RIG_TS_ANY 0\r
+#define RIG_TS_END {RIG_MODE_NONE,0}\r
+#define RIG_IS_TS_END(t) ((t).modes == RIG_MODE_NONE && (t).ts == 0)\r
+\r
+/**\r
+ * \brief Filter definition\r
+ *\r
+ * Lists the filters available for each mode.\r
+ *\r
+ * If more than one filter is available for a given mode,\r
+ * the first entry in the array will be the default\r
+ * filter to use for the normal passband of this mode.\r
+ * The first entry in the array below the default normal passband\r
+ * is the default narrow passband and the first entry in the array\r
+ * above the default normal passband is the default wide passband.\r
+ * Note: if there's no lower width or upper width, then narrow or\r
+ * respectively wide passband is equal to the default normal passband.\r
+ *\r
+ * If a width field in the list has RIG_FLT_ANY value,\r
+ * this means the rig allows its passband width to be\r
+ * set to any value ranging from the lowest to the\r
+ * highest value (if any) in the list for that mode.\r
+ * The RIG_FLT_ANY value, if present, must\r
+ * be the last one in the list.\r
+ *\r
+ * The width field is the narrowest passband in a transmit/receive chain\r
+ * with regard to different IF.\r
+ *\r
+ * \sa rig_set_mode, rig_passband_normal, rig_passband_narrow, rig_passband_wide\r
+ */\r
+struct filter_list {\r
+ rmode_t modes; /*!< Bit field of RIG_MODE's */\r
+ pbwidth_t width; /*!< Passband width in Hz */\r
+};\r
+\r
+#define RIG_FLT_ANY 0\r
+#define RIG_FLT_END {RIG_MODE_NONE,0}\r
+#define RIG_IS_FLT_END(f) ((f).modes == RIG_MODE_NONE)\r
+\r
+\r
+/** \brief Empty channel_t.flags field */\r
+#define RIG_CHFLAG_NONE 0\r
+/** \brief skip memory channel during scan (lock out), channel_t.flags */\r
+#define RIG_CHFLAG_SKIP (1<<0)\r
+/** \brief DATA port mode flag */\r
+#define RIG_CHFLAG_DATA (1<<1)\r
+\r
+/**\r
+ * \brief Extension attribute definition\r
+ *\r
+ */\r
+struct ext_list {\r
+ token_t token; /*!< Token ID */\r
+ value_t val; /*!< Value */\r
+};\r
+\r
+#define RIG_EXT_END {0, {.i=0}}\r
+#define RIG_IS_EXT_END(x) ((x).token == 0)\r
+\r
+/**\r
+ * \brief Channel structure\r
+ *\r
+ * The channel struct stores all the attributes peculiar to a VFO.\r
+ *\r
+ * \sa rig_set_channel, rig_get_channel\r
+ */\r
+struct channel {\r
+ int channel_num; /*!< Channel number */\r
+ int bank_num; /*!< Bank number */\r
+ vfo_t vfo; /*!< VFO */\r
+ int ant; /*!< Selected antenna */\r
+ freq_t freq; /*!< Receive frequency */\r
+ rmode_t mode; /*!< Receive mode */\r
+ pbwidth_t width; /*!< Receive passband width associated with mode */\r
+\r
+ freq_t tx_freq; /*!< Transmit frequency */\r
+ rmode_t tx_mode; /*!< Transmit mode */\r
+ pbwidth_t tx_width; /*!< Transmit passband width associated with mode */\r
+\r
+ split_t split; /*!< Split mode */\r
+ vfo_t tx_vfo; /*!< Split transmit VFO */\r
+\r
+ rptr_shift_t rptr_shift; /*!< Repeater shift */\r
+ shortfreq_t rptr_offs; /*!< Repeater offset */\r
+ shortfreq_t tuning_step; /*!< Tuning step */\r
+ shortfreq_t rit; /*!< RIT */\r
+ shortfreq_t xit; /*!< XIT */\r
+ setting_t funcs; /*!< Function status */\r
+ value_t levels[RIG_SETTING_MAX]; /*!< Level values */\r
+ tone_t ctcss_tone; /*!< CTCSS tone */\r
+ tone_t ctcss_sql; /*!< CTCSS squelch tone */\r
+ tone_t dcs_code; /*!< DCS code */\r
+ tone_t dcs_sql; /*!< DCS squelch code */\r
+ int scan_group; /*!< Scan group */\r
+ int flags; /*!< Channel flags, see RIG_CHFLAG's */\r
+ char channel_desc[MAXCHANDESC]; /*!< Name */\r
+ struct ext_list *ext_levels; /*!< Extension level value list, NULL ended. ext_levels can be NULL */\r
+};\r
+/** \brief Channel structure typedef */\r
+typedef struct channel channel_t;\r
+\r
+/**\r
+ * \brief Channel capability definition\r
+ *\r
+ * Definition of the attributes that can be stored/retrieved in/from memory\r
+ */\r
+struct channel_cap {\r
+ unsigned bank_num:1; /*!< Bank number */\r
+ unsigned vfo:1; /*!< VFO */\r
+ unsigned ant:1; /*!< Selected antenna */\r
+ unsigned freq:1; /*!< Receive frequency */\r
+ unsigned mode:1; /*!< Receive mode */\r
+ unsigned width:1; /*!< Receive passband width associated with mode */\r
+\r
+ unsigned tx_freq:1; /*!< Transmit frequency */\r
+ unsigned tx_mode:1; /*!< Transmit mode */\r
+ unsigned tx_width:1; /*!< Transmit passband width associated with mode */\r
+\r
+ unsigned split:1; /*!< Split mode */\r
+ unsigned tx_vfo:1; /*!< Split transmit VFO */\r
+ unsigned rptr_shift:1; /*!< Repeater shift */\r
+ unsigned rptr_offs:1; /*!< Repeater offset */\r
+ unsigned tuning_step:1; /*!< Tuning step */\r
+ unsigned rit:1; /*!< RIT */\r
+ unsigned xit:1; /*!< XIT */\r
+ setting_t funcs; /*!< Function status */\r
+ setting_t levels; /*!< Level values */\r
+ unsigned ctcss_tone:1; /*!< CTCSS tone */\r
+ unsigned ctcss_sql:1; /*!< CTCSS squelch tone */\r
+ unsigned dcs_code:1; /*!< DCS code */\r
+ unsigned dcs_sql:1; /*!< DCS squelch code */\r
+ unsigned scan_group:1; /*!< Scan group */\r
+ unsigned flags:1; /*!< Channel flags */\r
+ unsigned channel_desc:1; /*!< Name */\r
+ unsigned ext_levels:1; /*!< Extension level value list */\r
+};\r
+\r
+/** \brief Channel cap */\r
+typedef struct channel_cap channel_cap_t;\r
+\r
+\r
+/**\r
+ * \brief Memory channel type definition\r
+ *\r
+ * Definition of memory types. Depending on the type, the content\r
+ * of the memory channel has to be interpreted accordingly.\r
+ * For instance, a RIG_MTYPE_EDGE channel_t will hold only a start\r
+ * or stop frequency.\r
+ *\r
+ * \sa chan_list\r
+ */\r
+typedef enum {\r
+ RIG_MTYPE_NONE=0, /*!< None */\r
+ RIG_MTYPE_MEM, /*!< Regular */\r
+ RIG_MTYPE_EDGE, /*!< Scan edge */\r
+ RIG_MTYPE_CALL, /*!< Call channel */\r
+ RIG_MTYPE_MEMOPAD, /*!< Memory pad */\r
+ RIG_MTYPE_SAT, /*!< Satellite */\r
+ RIG_MTYPE_BAND, /*!< VFO/Band channel */\r
+ RIG_MTYPE_PRIO /*!< Priority channel */\r
+} chan_type_t;\r
+\r
+/**\r
+ * \brief Memory channel list definition\r
+ *\r
+ * Example for the Ic706MkIIG (99 memory channels, 2 scan edges, 2 call chans):\r
+\code\r
+ chan_t chan_list[] = {\r
+ { 1, 99, RIG_MTYPE_MEM },\r
+ { 100, 103, RIG_MTYPE_EDGE },\r
+ { 104, 105, RIG_MTYPE_CALL },\r
+ RIG_CHAN_END\r
+ }\r
+\endcode\r
+ */\r
+struct chan_list {\r
+ int start; /*!< Starting memory channel \b number */\r
+ int end; /*!< Ending memory channel \b number */\r
+ chan_type_t type; /*!< Memory type. see chan_type_t */\r
+ channel_cap_t mem_caps; /*!< Definition of attributes that can be stored/retrieved */\r
+};\r
+\r
+#define RIG_CHAN_END {0,0,RIG_MTYPE_NONE}\r
+#define RIG_IS_CHAN_END(c) ((c).type == RIG_MTYPE_NONE)\r
+/** \brief Special memory channel value to tell rig_lookup_mem_caps() to retrieve all the ranges */\r
+#define RIG_MEM_CAPS_ALL -1\r
+\r
+/** \brief chan_t type */\r
+typedef struct chan_list chan_t;\r
+\r
+/**\r
+ * \brief level/parm granularity definition\r
+ *\r
+ * The granularity is undefined if min=0, max=0, and step=0.\r
+ *\r
+ * For float settings, if min.f=0 and max.f=0 (and step.f!=0),\r
+ * max.f is assumed to be actually equal to 1.0.\r
+ *\r
+ * If step=0 (and min and/or max are not null), then this means step\r
+ * can have maximum resolution, depending on type (int or float).\r
+ */\r
+struct gran {\r
+ value_t min; /*!< Minimum value */\r
+ value_t max; /*!< Maximum value */\r
+ value_t step; /*!< Step */\r
+};\r
+\r
+/** \brief gran_t type */\r
+typedef struct gran gran_t;\r
+\r
+\r
+/** \brief Calibration table struct */\r
+struct cal_table {\r
+ int size; /*!< number of plots in the table */\r
+ struct {\r
+ int raw; /*!< raw (A/D) value, as returned by \a RIG_LEVEL_RAWSTR */\r
+ int val; /*!< associated value, basically the measured dB value */\r
+ } table[MAX_CAL_LENGTH]; /*!< table of plots */\r
+};\r
+\r
+/**\r
+ * \brief calibration table type\r
+ *\r
+ * cal_table_t is a data type suited to hold linear calibration.\r
+ * cal_table_t.size tells the number of plots cal_table_t.table contains.\r
+ *\r
+ * If a value is below or equal to cal_table_t.table[0].raw,\r
+ * rig_raw2val() will return cal_table_t.table[0].val.\r
+ *\r
+ * If a value is greater or equal to cal_table_t.table[cal_table_t.size-1].raw,\r
+ * rig_raw2val() will return cal_table_t.table[cal_table_t.size-1].val.\r
+ */\r
+typedef struct cal_table cal_table_t;\r
+\r
+#define EMPTY_STR_CAL { 0, { { 0, 0 }, } }\r
+\r
+\r
+typedef int (*chan_cb_t) (RIG *, channel_t**, int, const chan_t*, rig_ptr_t);\r
+typedef int (*confval_cb_t) (RIG *, const struct confparams *, value_t *, rig_ptr_t);\r
+\r
+/**\r
+ * \brief Rig data structure.\r
+ *\r
+ * Basic rig type, can store some useful info about different radios.\r
+ * Each lib must be able to populate this structure, so we can make\r
+ * useful inquiries about capabilities.\r
+ *\r
+ * The main idea of this struct is that it will be defined by the backend\r
+ * rig driver, and will remain readonly for the application.\r
+ * Fields that need to be modifiable by the application are\r
+ * copied into the struct rig_state, which is a kind of private\r
+ * of the RIG instance.\r
+ * This way, you can have several rigs running within the same application,\r
+ * sharing the struct rig_caps of the backend, while keeping their own\r
+ * customized data.\r
+ * NB: don't move fields around, as backend depends on it when initializing\r
+ * their caps.\r
+ */\r
+struct rig_caps {\r
+ rig_model_t rig_model; /*!< Rig model. */\r
+ const char *model_name; /*!< Model name. */\r
+ const char *mfg_name; /*!< Manufacturer. */\r
+ const char *version; /*!< Driver version. */\r
+ const char *copyright; /*!< Copyright info. */\r
+ enum rig_status_e status; /*!< Driver status. */\r
+\r
+ int rig_type; /*!< Rig type. */\r
+ ptt_type_t ptt_type; /*!< Type of the PTT port. */\r
+ dcd_type_t dcd_type; /*!< Type of the DCD port. */\r
+ rig_port_t port_type; /*!< Type of communication port. */\r
+\r
+ int serial_rate_min; /*!< Minimum serial speed. */\r
+ int serial_rate_max; /*!< Maximum serial speed. */\r
+ int serial_data_bits; /*!< Number of data bits. */\r
+ int serial_stop_bits; /*!< Number of stop bits. */\r
+ enum serial_parity_e serial_parity; /*!< Parity. */\r
+ enum serial_handshake_e serial_handshake; /*!< Handshake. */\r
+\r
+ int write_delay; /*!< Delay between each byte sent out, in mS */\r
+ int post_write_delay; /*!< Delay between each commands send out, in mS */\r
+ int timeout; /*!< Timeout, in mS */\r
+ int retry; /*!< Maximum number of retries if command fails, 0 to disable */\r
+\r
+ setting_t has_get_func; /*!< List of get functions */\r
+ setting_t has_set_func; /*!< List of set functions */\r
+ setting_t has_get_level; /*!< List of get level */\r
+ setting_t has_set_level; /*!< List of set level */\r
+ setting_t has_get_parm; /*!< List of get parm */\r
+ setting_t has_set_parm; /*!< List of set parm */\r
+\r
+ gran_t level_gran[RIG_SETTING_MAX]; /*!< level granularity (i.e. steps) */\r
+ gran_t parm_gran[RIG_SETTING_MAX]; /*!< parm granularity (i.e. steps) */\r
+\r
+ const struct confparams *extparms; /*!< Extension parm list, \sa ext.c */\r
+ const struct confparams *extlevels; /*!< Extension level list, \sa ext.c */\r
+\r
+ const tone_t *ctcss_list; /*!< CTCSS tones list, zero ended */\r
+ const tone_t *dcs_list; /*!< DCS code list, zero ended */\r
+\r
+ int preamp[MAXDBLSTSIZ]; /*!< Preamp list in dB, 0 terminated */\r
+ int attenuator[MAXDBLSTSIZ]; /*!< Preamp list in dB, 0 terminated */\r
+ shortfreq_t max_rit; /*!< max absolute RIT */\r
+ shortfreq_t max_xit; /*!< max absolute XIT */\r
+ shortfreq_t max_ifshift; /*!< max absolute IF-SHIFT */\r
+\r
+ ann_t announces; /*!< Announces bit field list */\r
+\r
+ vfo_op_t vfo_ops; /*!< VFO op bit field list */\r
+ scan_t scan_ops; /*!< Scan bit field list */\r
+ int targetable_vfo; /*!< Bit field list of direct VFO access commands */\r
+ int transceive; /*!< Supported transceive mode */\r
+\r
+ int bank_qty; /*!< Number of banks */\r
+ int chan_desc_sz; /*!< Max length of memory channel name */\r
+\r
+ chan_t chan_list[CHANLSTSIZ]; /*!< Channel list, zero ended */\r
+\r
+ freq_range_t rx_range_list1[FRQRANGESIZ]; /*!< Receive frequency range list for ITU region 1 */\r
+ freq_range_t tx_range_list1[FRQRANGESIZ]; /*!< Transmit frequency range list for ITU region 1 */\r
+ freq_range_t rx_range_list2[FRQRANGESIZ]; /*!< Receive frequency range list for ITU region 2 */\r
+ freq_range_t tx_range_list2[FRQRANGESIZ]; /*!< Transmit frequency range list for ITU region 2 */\r
+\r
+ struct tuning_step_list tuning_steps[TSLSTSIZ]; /*!< Tuning step list */\r
+ struct filter_list filters[FLTLSTSIZ]; /*!< mode/filter table, at -6dB */\r
+\r
+ cal_table_t str_cal; /*!< S-meter calibration table */\r
+\r
+ const struct confparams *cfgparams; /*!< Configuration parametres. */\r
+ const rig_ptr_t priv; /*!< Private data. */\r
+\r
+ /*\r
+ * Rig API\r
+ *\r
+ */\r
+\r
+ int (*rig_init) (RIG * rig);\r
+ int (*rig_cleanup) (RIG * rig);\r
+ int (*rig_open) (RIG * rig);\r
+ int (*rig_close) (RIG * rig);\r
+\r
+ /*\r
+ * General API commands, from most primitive to least.. :()\r
+ * List Set/Get functions pairs\r
+ */\r
+\r
+ int (*set_freq) (RIG * rig, vfo_t vfo, freq_t freq);\r
+ int (*get_freq) (RIG * rig, vfo_t vfo, freq_t * freq);\r
+\r
+ int (*set_mode) (RIG * rig, vfo_t vfo, rmode_t mode,\r
+ pbwidth_t width);\r
+ int (*get_mode) (RIG * rig, vfo_t vfo, rmode_t * mode,\r
+ pbwidth_t * width);\r
+\r
+ int (*set_vfo) (RIG * rig, vfo_t vfo);\r
+ int (*get_vfo) (RIG * rig, vfo_t * vfo);\r
+\r
+ int (*set_ptt) (RIG * rig, vfo_t vfo, ptt_t ptt);\r
+ int (*get_ptt) (RIG * rig, vfo_t vfo, ptt_t * ptt);\r
+ int (*get_dcd) (RIG * rig, vfo_t vfo, dcd_t * dcd);\r
+\r
+ int (*set_rptr_shift) (RIG * rig, vfo_t vfo,\r
+ rptr_shift_t rptr_shift);\r
+ int (*get_rptr_shift) (RIG * rig, vfo_t vfo,\r
+ rptr_shift_t * rptr_shift);\r
+\r
+ int (*set_rptr_offs) (RIG * rig, vfo_t vfo, shortfreq_t offs);\r
+ int (*get_rptr_offs) (RIG * rig, vfo_t vfo, shortfreq_t * offs);\r
+\r
+ int (*set_split_freq) (RIG * rig, vfo_t vfo, freq_t tx_freq);\r
+ int (*get_split_freq) (RIG * rig, vfo_t vfo, freq_t * tx_freq);\r
+ int (*set_split_mode) (RIG * rig, vfo_t vfo, rmode_t tx_mode,\r
+ pbwidth_t tx_width);\r
+ int (*get_split_mode) (RIG * rig, vfo_t vfo, rmode_t * tx_mode,\r
+ pbwidth_t * tx_width);\r
+\r
+ int (*set_split_vfo) (RIG * rig, vfo_t vfo, split_t split, vfo_t tx_vfo);\r
+ int (*get_split_vfo) (RIG * rig, vfo_t vfo, split_t * split, vfo_t *tx_vfo);\r
+\r
+ int (*set_rit) (RIG * rig, vfo_t vfo, shortfreq_t rit);\r
+ int (*get_rit) (RIG * rig, vfo_t vfo, shortfreq_t * rit);\r
+ int (*set_xit) (RIG * rig, vfo_t vfo, shortfreq_t xit);\r
+ int (*get_xit) (RIG * rig, vfo_t vfo, shortfreq_t * xit);\r
+\r
+ int (*set_ts) (RIG * rig, vfo_t vfo, shortfreq_t ts);\r
+ int (*get_ts) (RIG * rig, vfo_t vfo, shortfreq_t * ts);\r
+\r
+ int (*set_dcs_code) (RIG * rig, vfo_t vfo, tone_t code);\r
+ int (*get_dcs_code) (RIG * rig, vfo_t vfo, tone_t * code);\r
+ int (*set_tone) (RIG * rig, vfo_t vfo, tone_t tone);\r
+ int (*get_tone) (RIG * rig, vfo_t vfo, tone_t * tone);\r
+ int (*set_ctcss_tone) (RIG * rig, vfo_t vfo, tone_t tone);\r
+ int (*get_ctcss_tone) (RIG * rig, vfo_t vfo, tone_t * tone);\r
+\r
+ int (*set_dcs_sql) (RIG * rig, vfo_t vfo, tone_t code);\r
+ int (*get_dcs_sql) (RIG * rig, vfo_t vfo, tone_t * code);\r
+ int (*set_tone_sql) (RIG * rig, vfo_t vfo, tone_t tone);\r
+ int (*get_tone_sql) (RIG * rig, vfo_t vfo, tone_t * tone);\r
+ int (*set_ctcss_sql) (RIG * rig, vfo_t vfo, tone_t tone);\r
+ int (*get_ctcss_sql) (RIG * rig, vfo_t vfo, tone_t * tone);\r
+\r
+ int (*power2mW) (RIG * rig, unsigned int *mwpower, float power,\r
+ freq_t freq, rmode_t mode);\r
+ int (*mW2power) (RIG * rig, float *power, unsigned int mwpower,\r
+ freq_t freq, rmode_t mode);\r
+\r
+ int (*set_powerstat) (RIG * rig, powerstat_t status);\r
+ int (*get_powerstat) (RIG * rig, powerstat_t * status);\r
+ int (*reset) (RIG * rig, reset_t reset);\r
+\r
+ int (*set_ant) (RIG * rig, vfo_t vfo, ant_t ant);\r
+ int (*get_ant) (RIG * rig, vfo_t vfo, ant_t * ant);\r
+\r
+ int (*set_level) (RIG * rig, vfo_t vfo, setting_t level,\r
+ value_t val);\r
+ int (*get_level) (RIG * rig, vfo_t vfo, setting_t level,\r
+ value_t * val);\r
+\r
+ int (*set_func) (RIG * rig, vfo_t vfo, setting_t func, int status);\r
+ int (*get_func) (RIG * rig, vfo_t vfo, setting_t func,\r
+ int *status);\r
+\r
+ int (*set_parm) (RIG * rig, setting_t parm, value_t val);\r
+ int (*get_parm) (RIG * rig, setting_t parm, value_t * val);\r
+\r
+ int (*set_ext_level)(RIG *rig, vfo_t vfo, token_t token, value_t val);\r
+ int (*get_ext_level)(RIG *rig, vfo_t vfo, token_t token, value_t *val);\r
+\r
+ int (*set_ext_parm)(RIG *rig, token_t token, value_t val);\r
+ int (*get_ext_parm)(RIG *rig, token_t token, value_t *val);\r
+\r
+ int (*set_conf) (RIG * rig, token_t token, const char *val);\r
+ int (*get_conf) (RIG * rig, token_t token, char *val);\r
+\r
+ int (*send_dtmf) (RIG * rig, vfo_t vfo, const char *digits);\r
+ int (*recv_dtmf) (RIG * rig, vfo_t vfo, char *digits, int *length);\r
+ int (*send_morse) (RIG * rig, vfo_t vfo, const char *msg);\r
+\r
+ int (*set_bank) (RIG * rig, vfo_t vfo, int bank);\r
+ int (*set_mem) (RIG * rig, vfo_t vfo, int ch);\r
+ int (*get_mem) (RIG * rig, vfo_t vfo, int *ch);\r
+ int (*vfo_op) (RIG * rig, vfo_t vfo, vfo_op_t op);\r
+ int (*scan) (RIG * rig, vfo_t vfo, scan_t scan, int ch);\r
+\r
+ int (*set_trn) (RIG * rig, int trn);\r
+ int (*get_trn) (RIG * rig, int *trn);\r
+\r
+ int (*decode_event) (RIG * rig);\r
+\r
+ int (*set_channel) (RIG * rig, const channel_t * chan);\r
+ int (*get_channel) (RIG * rig, channel_t * chan);\r
+\r
+ const char *(*get_info) (RIG * rig);\r
+\r
+ int (*set_chan_all_cb) (RIG * rig, chan_cb_t chan_cb, rig_ptr_t);\r
+ int (*get_chan_all_cb) (RIG * rig, chan_cb_t chan_cb, rig_ptr_t);\r
+\r
+ int (*set_mem_all_cb) (RIG * rig, chan_cb_t chan_cb, confval_cb_t parm_cb, rig_ptr_t);\r
+ int (*get_mem_all_cb) (RIG * rig, chan_cb_t chan_cb, confval_cb_t parm_cb, rig_ptr_t);\r
+\r
+ const char *clone_combo_set; /*!< String describing key combination to enter load cloning mode */\r
+ const char *clone_combo_get; /*!< String describing key combination to enter save cloning mode */\r
+};\r
+\r
+/**\r
+ * \brief Port definition\r
+ *\r
+ * Of course, looks like OO painstakingly programmed in C, sigh.\r
+ */\r
+typedef struct {\r
+ union {\r
+ rig_port_t rig; /*!< Communication port type */\r
+ ptt_type_t ptt; /*!< PTT port type */\r
+ dcd_type_t dcd; /*!< DCD port type */\r
+ } type;\r
+ int fd; /*!< File descriptor */\r
+ void* handle; /*!< handle for USB */\r
+\r
+ int write_delay; /*!< Delay between each byte sent out, in mS */\r
+ int post_write_delay; /*!< Delay between each commands send out, in mS */\r
+ struct { int tv_sec,tv_usec; } post_write_date; /*!< hamlib internal use */\r
+ int timeout; /*!< Timeout, in mS */\r
+ int retry; /*!< Maximum number of retries, 0 to disable */\r
+\r
+ char pathname[FILPATHLEN]; /*!< Port pathname */\r
+ union {\r
+ struct {\r
+ int rate; /*!< Serial baud rate */\r
+ int data_bits; /*!< Number of data bits */\r
+ int stop_bits; /*!< Number of stop bits */\r
+ enum serial_parity_e parity; /*!< Serial parity */\r
+ enum serial_handshake_e handshake; /*!< Serial handshake */\r
+ enum serial_control_state_e rts_state; /*!< RTS set state */\r
+ enum serial_control_state_e dtr_state; /*!< DTR set state */\r
+ } serial; /*!< serial attributes */\r
+ struct {\r
+ int pin; /*!< Parallel port pin number */\r
+ } parallel; /*!< parallel attributes */\r
+ struct {\r
+ int ptt_bitnum; /*< Bit number for CM108 GPIO PTT */\r
+ } cm108; /*!< CM108 attributes */\r
+ struct {\r
+ int vid; /*!< Vendor ID */\r
+ int pid; /*!< Product ID */\r
+ int conf; /*!< Configuration */\r
+ int iface; /*!< interface */\r
+ int alt; /*!< alternate */\r
+ char *vendor_name; /*!< Vendor name (opt.) */\r
+ char *product; /*!< Product (opt.) */\r
+ } usb; /*!< USB attributes */\r
+ } parm; /*!< Port parameter union */\r
+} hamlib_port_t;\r
+\r
+#if !defined(__APPLE__) || !defined(__cplusplus)\r
+typedef hamlib_port_t port_t;\r
+#endif\r
+\r
+\r
+/**\r
+ * \brief Rig state containing live data and customized fields.\r
+ *\r
+ * This struct contains live data, as well as a copy of capability fields\r
+ * that may be updated (ie. customized)\r
+ *\r
+ * It is fine to move fields around, as this kind of struct should\r
+ * not be initialized like caps are.\r
+ */\r
+struct rig_state {\r
+ /*\r
+ * overridable fields\r
+ */\r
+ hamlib_port_t rigport; /*!< Rig port (internal use). */\r
+ hamlib_port_t pttport; /*!< PTT port (internal use). */\r
+ hamlib_port_t dcdport; /*!< DCD port (internal use). */\r
+\r
+ double vfo_comp; /*!< VFO compensation in PPM, 0.0 to disable */\r
+\r
+ int itu_region; /*!< ITU region to select among freq_range_t */\r
+ freq_range_t rx_range_list[FRQRANGESIZ]; /*!< Receive frequency range list */\r
+ freq_range_t tx_range_list[FRQRANGESIZ]; /*!< Transmit frequency range list */\r
+\r
+ struct tuning_step_list tuning_steps[TSLSTSIZ]; /*!< Tuning step list */\r
+\r
+ struct filter_list filters[FLTLSTSIZ]; /*!< Mode/filter table, at -6dB */\r
+\r
+ cal_table_t str_cal; /*!< S-meter calibration table */\r
+\r
+ chan_t chan_list[CHANLSTSIZ]; /*!< Channel list, zero ended */\r
+\r
+ shortfreq_t max_rit; /*!< max absolute RIT */\r
+ shortfreq_t max_xit; /*!< max absolute XIT */\r
+ shortfreq_t max_ifshift; /*!< max absolute IF-SHIFT */\r
+\r
+ ann_t announces; /*!< Announces bit field list */\r
+\r
+ int preamp[MAXDBLSTSIZ]; /*!< Preamp list in dB, 0 terminated */\r
+ int attenuator[MAXDBLSTSIZ]; /*!< Preamp list in dB, 0 terminated */\r
+\r
+ setting_t has_get_func; /*!< List of get functions */\r
+ setting_t has_set_func; /*!< List of set functions */\r
+ setting_t has_get_level; /*!< List of get level */\r
+ setting_t has_set_level; /*!< List of set level */\r
+ setting_t has_get_parm; /*!< List of get parm */\r
+ setting_t has_set_parm; /*!< List of set parm */\r
+\r
+ gran_t level_gran[RIG_SETTING_MAX]; /*!< level granularity */\r
+ gran_t parm_gran[RIG_SETTING_MAX]; /*!< parm granularity */\r
+\r
+\r
+ /*\r
+ * non overridable fields, internal use\r
+ */\r
+\r
+ int hold_decode; /*!< set to 1 to hold the event decoder (async) otherwise 0 */\r
+ vfo_t current_vfo; /*!< VFO currently set */\r
+ int vfo_list; /*!< Complete list of VFO for this rig */\r
+ int comm_state; /*!< Comm port state, opened/closed. */\r
+ rig_ptr_t priv; /*!< Pointer to private rig state data. */\r
+ rig_ptr_t obj; /*!< Internal use by hamlib++ for event handling. */\r
+\r
+ int transceive; /*!< Whether the transceive mode is on */\r
+ int poll_interval; /*!< Event notification polling period in milliseconds */\r
+ freq_t current_freq; /*!< Frequency currently set */\r
+ rmode_t current_mode; /*!< Mode currently set */\r
+ pbwidth_t current_width; /*!< Passband width currently set */\r
+ vfo_t tx_vfo; /*!< Tx VFO currently set */\r
+ int mode_list; /*!< Complete list of modes for this rig */\r
+\r
+};\r
+\r
+\r
+typedef int (*vprintf_cb_t) (enum rig_debug_level_e, rig_ptr_t, const char *, va_list);\r
+\r
+typedef int (*freq_cb_t) (RIG *, vfo_t, freq_t, rig_ptr_t);\r
+typedef int (*mode_cb_t) (RIG *, vfo_t, rmode_t, pbwidth_t, rig_ptr_t);\r
+typedef int (*vfo_cb_t) (RIG *, vfo_t, rig_ptr_t);\r
+typedef int (*ptt_cb_t) (RIG *, vfo_t, ptt_t, rig_ptr_t);\r
+typedef int (*dcd_cb_t) (RIG *, vfo_t, dcd_t, rig_ptr_t);\r
+typedef int (*pltune_cb_t) (RIG *, vfo_t, freq_t *, rmode_t *, pbwidth_t *, rig_ptr_t);\r
+\r
+/**\r
+ * \brief Callback functions and args for rig event.\r
+ *\r
+ * Some rigs are able to notify the host computer the operator changed\r
+ * the freq/mode from the front panel, depressed a button, etc.\r
+ *\r
+ * Events from the rig are received through async io,\r
+ * so callback functions will be called from the SIGIO sighandler context.\r
+ *\r
+ * Don't set these fields directly, use rig_set_freq_callback et. al. instead.\r
+ *\r
+ * Callbacks suit event based programming very well,\r
+ * really appropriate in a GUI.\r
+ *\r
+ * \sa rig_set_freq_callback, rig_set_mode_callback, rig_set_vfo_callback,\r
+ * rig_set_ptt_callback, rig_set_dcd_callback\r
+ */\r
+struct rig_callbacks {\r
+ freq_cb_t freq_event; /*!< Frequency change event */\r
+ rig_ptr_t freq_arg; /*!< Frequency change argument */\r
+ mode_cb_t mode_event; /*!< Mode change event */\r
+ rig_ptr_t mode_arg; /*!< Mode change argument */\r
+ vfo_cb_t vfo_event; /*!< VFO change event */\r
+ rig_ptr_t vfo_arg; /*!< VFO change argument */\r
+ ptt_cb_t ptt_event; /*!< PTT change event */\r
+ rig_ptr_t ptt_arg; /*!< PTT change argument */\r
+ dcd_cb_t dcd_event; /*!< DCD change event */\r
+ rig_ptr_t dcd_arg; /*!< DCD change argument */\r
+ pltune_cb_t pltune; /*!< Pipeline tuning module freq/mode/width callback */\r
+ rig_ptr_t pltune_arg; /*!< Pipeline tuning argument */\r
+ /* etc.. */\r
+};\r
+\r
+/**\r
+ * \brief The Rig structure\r
+ *\r
+ * This is the master data structure, acting as a handle for the controlled\r
+ * rig. A pointer to this structure is returned by the rig_init() API\r
+ * function and is passed as a parameter to every rig specific API call.\r
+ *\r
+ * \sa rig_init(), rig_caps, rig_state\r
+ */\r
+struct rig {\r
+ struct rig_caps *caps; /*!< Pointer to rig capabilities (read only) */\r
+ struct rig_state state; /*!< Rig state */\r
+ struct rig_callbacks callbacks; /*!< registered event callbacks */\r
+};\r
+\r
+\r
+\r
+/* --------------- API function prototypes -----------------*/\r
+\r
+extern HAMLIB_EXPORT(RIG *) rig_init HAMLIB_PARAMS((rig_model_t rig_model));\r
+extern HAMLIB_EXPORT(int) rig_open HAMLIB_PARAMS((RIG *rig));\r
+\r
+ /*\r
+ * General API commands, from most primitive to least.. :()\r
+ * List Set/Get functions pairs\r
+ */\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_freq HAMLIB_PARAMS((RIG *rig, vfo_t vfo, freq_t freq));\r
+extern HAMLIB_EXPORT(int) rig_get_freq HAMLIB_PARAMS((RIG *rig, vfo_t vfo, freq_t *freq));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_mode HAMLIB_PARAMS((RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width));\r
+extern HAMLIB_EXPORT(int) rig_get_mode HAMLIB_PARAMS((RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_vfo HAMLIB_PARAMS((RIG *rig, vfo_t vfo));\r
+extern HAMLIB_EXPORT(int) rig_get_vfo HAMLIB_PARAMS((RIG *rig, vfo_t *vfo));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_ptt HAMLIB_PARAMS((RIG *rig, vfo_t vfo, ptt_t ptt));\r
+extern HAMLIB_EXPORT(int) rig_get_ptt HAMLIB_PARAMS((RIG *rig, vfo_t vfo, ptt_t *ptt));\r
+\r
+extern HAMLIB_EXPORT(int) rig_get_dcd HAMLIB_PARAMS((RIG *rig, vfo_t vfo, dcd_t *dcd));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_rptr_shift HAMLIB_PARAMS((RIG *rig, vfo_t vfo, rptr_shift_t rptr_shift));\r
+extern HAMLIB_EXPORT(int) rig_get_rptr_shift HAMLIB_PARAMS((RIG *rig, vfo_t vfo, rptr_shift_t *rptr_shift));\r
+extern HAMLIB_EXPORT(int) rig_set_rptr_offs HAMLIB_PARAMS((RIG *rig, vfo_t vfo, shortfreq_t rptr_offs));\r
+extern HAMLIB_EXPORT(int) rig_get_rptr_offs HAMLIB_PARAMS((RIG *rig, vfo_t vfo, shortfreq_t *rptr_offs));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_ctcss_tone HAMLIB_PARAMS((RIG *rig, vfo_t vfo, tone_t tone));\r
+extern HAMLIB_EXPORT(int) rig_get_ctcss_tone HAMLIB_PARAMS((RIG *rig, vfo_t vfo, tone_t *tone));\r
+extern HAMLIB_EXPORT(int) rig_set_dcs_code HAMLIB_PARAMS((RIG *rig, vfo_t vfo, tone_t code));\r
+extern HAMLIB_EXPORT(int) rig_get_dcs_code HAMLIB_PARAMS((RIG *rig, vfo_t vfo, tone_t *code));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_ctcss_sql HAMLIB_PARAMS((RIG *rig, vfo_t vfo, tone_t tone));\r
+extern HAMLIB_EXPORT(int) rig_get_ctcss_sql HAMLIB_PARAMS((RIG *rig, vfo_t vfo, tone_t *tone));\r
+extern HAMLIB_EXPORT(int) rig_set_dcs_sql HAMLIB_PARAMS((RIG *rig, vfo_t vfo, tone_t code));\r
+extern HAMLIB_EXPORT(int) rig_get_dcs_sql HAMLIB_PARAMS((RIG *rig, vfo_t vfo, tone_t *code));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_split_freq HAMLIB_PARAMS((RIG *rig, vfo_t vfo, freq_t tx_freq));\r
+extern HAMLIB_EXPORT(int) rig_get_split_freq HAMLIB_PARAMS((RIG *rig, vfo_t vfo, freq_t *tx_freq));\r
+extern HAMLIB_EXPORT(int) rig_set_split_mode HAMLIB_PARAMS((RIG *rig, vfo_t vfo, rmode_t tx_mode, pbwidth_t tx_width));\r
+extern HAMLIB_EXPORT(int) rig_get_split_mode HAMLIB_PARAMS((RIG *rig, vfo_t vfo, rmode_t *tx_mode, pbwidth_t *tx_width));\r
+extern HAMLIB_EXPORT(int) rig_set_split_vfo HAMLIB_PARAMS((RIG*, vfo_t rx_vfo, split_t split, vfo_t tx_vfo));\r
+extern HAMLIB_EXPORT(int) rig_get_split_vfo HAMLIB_PARAMS((RIG*, vfo_t rx_vfo, split_t *split, vfo_t *tx_vfo));\r
+#define rig_set_split(r,v,s) rig_set_split_vfo((r),(v),(s),RIG_VFO_CURR)\r
+#define rig_get_split(r,v,s) ({ vfo_t _tx_vfo; rig_get_split_vfo((r),(v),(s),&_tx_vfo); })\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_rit HAMLIB_PARAMS((RIG *rig, vfo_t vfo, shortfreq_t rit));\r
+extern HAMLIB_EXPORT(int) rig_get_rit HAMLIB_PARAMS((RIG *rig, vfo_t vfo, shortfreq_t *rit));\r
+extern HAMLIB_EXPORT(int) rig_set_xit HAMLIB_PARAMS((RIG *rig, vfo_t vfo, shortfreq_t xit));\r
+extern HAMLIB_EXPORT(int) rig_get_xit HAMLIB_PARAMS((RIG *rig, vfo_t vfo, shortfreq_t *xit));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_ts HAMLIB_PARAMS((RIG *rig, vfo_t vfo, shortfreq_t ts));\r
+extern HAMLIB_EXPORT(int) rig_get_ts HAMLIB_PARAMS((RIG *rig, vfo_t vfo, shortfreq_t *ts));\r
+\r
+extern HAMLIB_EXPORT(int) rig_power2mW HAMLIB_PARAMS((RIG *rig, unsigned int *mwpower, float power, freq_t freq, rmode_t mode));\r
+extern HAMLIB_EXPORT(int) rig_mW2power HAMLIB_PARAMS((RIG *rig, float *power, unsigned int mwpower, freq_t freq, rmode_t mode));\r
+\r
+extern HAMLIB_EXPORT(shortfreq_t) rig_get_resolution HAMLIB_PARAMS((RIG *rig, rmode_t mode));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_level HAMLIB_PARAMS((RIG *rig, vfo_t vfo, setting_t level, value_t val));\r
+extern HAMLIB_EXPORT(int) rig_get_level HAMLIB_PARAMS((RIG *rig, vfo_t vfo, setting_t level, value_t *val));\r
+\r
+#define rig_get_strength(r,v,s) rig_get_level((r),(v),RIG_LEVEL_STRENGTH, (value_t*)(s))\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_parm HAMLIB_PARAMS((RIG *rig, setting_t parm, value_t val));\r
+extern HAMLIB_EXPORT(int) rig_get_parm HAMLIB_PARAMS((RIG *rig, setting_t parm, value_t *val));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_conf HAMLIB_PARAMS((RIG *rig, token_t token, const char *val));\r
+extern HAMLIB_EXPORT(int) rig_get_conf HAMLIB_PARAMS((RIG *rig, token_t token, char *val));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_powerstat HAMLIB_PARAMS((RIG *rig, powerstat_t status));\r
+extern HAMLIB_EXPORT(int) rig_get_powerstat HAMLIB_PARAMS((RIG *rig, powerstat_t *status));\r
+\r
+extern HAMLIB_EXPORT(int) rig_reset HAMLIB_PARAMS((RIG *rig, reset_t reset)); /* dangerous! */\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_ext_level HAMLIB_PARAMS((RIG *rig, vfo_t vfo,\r
+ token_t token, value_t val));\r
+extern HAMLIB_EXPORT(int) rig_get_ext_level HAMLIB_PARAMS((RIG *rig, vfo_t vfo,\r
+ token_t token, value_t *val));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_ext_parm HAMLIB_PARAMS((RIG *rig, token_t token, value_t val));\r
+extern HAMLIB_EXPORT(int) rig_get_ext_parm HAMLIB_PARAMS((RIG *rig, token_t token, value_t *val));\r
+\r
+extern HAMLIB_EXPORT(int) rig_ext_level_foreach HAMLIB_PARAMS((RIG *rig, int (*cfunc)(RIG*, const struct confparams *, rig_ptr_t), rig_ptr_t data));\r
+extern HAMLIB_EXPORT(int) rig_ext_parm_foreach HAMLIB_PARAMS((RIG *rig, int (*cfunc)(RIG*, const struct confparams *, rig_ptr_t), rig_ptr_t data));\r
+extern HAMLIB_EXPORT(const struct confparams*) rig_ext_lookup HAMLIB_PARAMS((RIG *rig, const char *name));\r
+extern HAMLIB_EXPORT(const struct confparams *) rig_ext_lookup_tok HAMLIB_PARAMS((RIG *rig, token_t token));\r
+extern HAMLIB_EXPORT(token_t) rig_ext_token_lookup HAMLIB_PARAMS((RIG *rig, const char *name));\r
+\r
+\r
+extern HAMLIB_EXPORT(int) rig_token_foreach HAMLIB_PARAMS((RIG *rig, int (*cfunc)(const struct confparams *, rig_ptr_t), rig_ptr_t data));\r
+extern HAMLIB_EXPORT(const struct confparams*) rig_confparam_lookup HAMLIB_PARAMS((RIG *rig, const char *name));\r
+extern HAMLIB_EXPORT(token_t) rig_token_lookup HAMLIB_PARAMS((RIG *rig, const char *name));\r
+\r
+extern HAMLIB_EXPORT(int) rig_close HAMLIB_PARAMS((RIG *rig));\r
+extern HAMLIB_EXPORT(int) rig_cleanup HAMLIB_PARAMS((RIG *rig));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_ant HAMLIB_PARAMS((RIG *rig, vfo_t vfo, ant_t ant)); /* antenna */\r
+extern HAMLIB_EXPORT(int) rig_get_ant HAMLIB_PARAMS((RIG *rig, vfo_t vfo, ant_t *ant));\r
+\r
+extern HAMLIB_EXPORT(setting_t) rig_has_get_level HAMLIB_PARAMS((RIG *rig, setting_t level));\r
+extern HAMLIB_EXPORT(setting_t) rig_has_set_level HAMLIB_PARAMS((RIG *rig, setting_t level));\r
+\r
+extern HAMLIB_EXPORT(setting_t) rig_has_get_parm HAMLIB_PARAMS((RIG *rig, setting_t parm));\r
+extern HAMLIB_EXPORT(setting_t) rig_has_set_parm HAMLIB_PARAMS((RIG *rig, setting_t parm));\r
+\r
+extern HAMLIB_EXPORT(setting_t) rig_has_get_func HAMLIB_PARAMS((RIG *rig, setting_t func));\r
+extern HAMLIB_EXPORT(setting_t) rig_has_set_func HAMLIB_PARAMS((RIG *rig, setting_t func));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_func HAMLIB_PARAMS((RIG *rig, vfo_t vfo, setting_t func, int status));\r
+extern HAMLIB_EXPORT(int) rig_get_func HAMLIB_PARAMS((RIG *rig, vfo_t vfo, setting_t func, int *status));\r
+\r
+extern HAMLIB_EXPORT(int) rig_send_dtmf HAMLIB_PARAMS((RIG *rig, vfo_t vfo, const char *digits));\r
+extern HAMLIB_EXPORT(int) rig_recv_dtmf HAMLIB_PARAMS((RIG *rig, vfo_t vfo, char *digits, int *length));\r
+extern HAMLIB_EXPORT(int) rig_send_morse HAMLIB_PARAMS((RIG *rig, vfo_t vfo, const char *msg));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_bank HAMLIB_PARAMS((RIG *rig, vfo_t vfo, int bank));\r
+extern HAMLIB_EXPORT(int) rig_set_mem HAMLIB_PARAMS((RIG *rig, vfo_t vfo, int ch));\r
+extern HAMLIB_EXPORT(int) rig_get_mem HAMLIB_PARAMS((RIG *rig, vfo_t vfo, int *ch));\r
+extern HAMLIB_EXPORT(int) rig_vfo_op HAMLIB_PARAMS((RIG *rig, vfo_t vfo, vfo_op_t op));\r
+extern HAMLIB_EXPORT(vfo_op_t) rig_has_vfo_op HAMLIB_PARAMS((RIG *rig, vfo_op_t op));\r
+extern HAMLIB_EXPORT(int) rig_scan HAMLIB_PARAMS((RIG *rig, vfo_t vfo, scan_t scan, int ch));\r
+extern HAMLIB_EXPORT(scan_t) rig_has_scan HAMLIB_PARAMS((RIG *rig, scan_t scan));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_channel HAMLIB_PARAMS((RIG *rig, const channel_t *chan)); /* mem */\r
+extern HAMLIB_EXPORT(int) rig_get_channel HAMLIB_PARAMS((RIG *rig, channel_t *chan));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_chan_all HAMLIB_PARAMS((RIG *rig, const channel_t chans[]));\r
+extern HAMLIB_EXPORT(int) rig_get_chan_all HAMLIB_PARAMS((RIG *rig, channel_t chans[]));\r
+extern HAMLIB_EXPORT(int) rig_set_chan_all_cb HAMLIB_PARAMS((RIG *rig, chan_cb_t chan_cb, rig_ptr_t));\r
+extern HAMLIB_EXPORT(int) rig_get_chan_all_cb HAMLIB_PARAMS((RIG *rig, chan_cb_t chan_cb, rig_ptr_t));\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_mem_all_cb HAMLIB_PARAMS((RIG *rig, chan_cb_t chan_cb, confval_cb_t parm_cb, rig_ptr_t));\r
+extern HAMLIB_EXPORT(int) rig_get_mem_all_cb HAMLIB_PARAMS((RIG *rig, chan_cb_t chan_cb, confval_cb_t parm_cb, rig_ptr_t));\r
+extern HAMLIB_EXPORT(int) rig_set_mem_all HAMLIB_PARAMS((RIG *rig, const channel_t *chan, const struct confparams *, const value_t *));\r
+extern HAMLIB_EXPORT(int) rig_get_mem_all HAMLIB_PARAMS((RIG *rig, channel_t *chan, const struct confparams *, value_t *));\r
+extern HAMLIB_EXPORT(const chan_t *) rig_lookup_mem_caps HAMLIB_PARAMS((RIG *rig, int ch));\r
+extern HAMLIB_EXPORT(int) rig_mem_count HAMLIB_PARAMS((RIG *rig));\r
+\r
+\r
+extern HAMLIB_EXPORT(int) rig_set_trn HAMLIB_PARAMS((RIG *rig, int trn));\r
+extern HAMLIB_EXPORT(int) rig_get_trn HAMLIB_PARAMS((RIG *rig, int *trn));\r
+extern HAMLIB_EXPORT(int) rig_set_freq_callback HAMLIB_PARAMS((RIG *, freq_cb_t, rig_ptr_t));\r
+extern HAMLIB_EXPORT(int) rig_set_mode_callback HAMLIB_PARAMS((RIG *, mode_cb_t, rig_ptr_t));\r
+extern HAMLIB_EXPORT(int) rig_set_vfo_callback HAMLIB_PARAMS((RIG *, vfo_cb_t, rig_ptr_t));\r
+extern HAMLIB_EXPORT(int) rig_set_ptt_callback HAMLIB_PARAMS((RIG *, ptt_cb_t, rig_ptr_t));\r
+extern HAMLIB_EXPORT(int) rig_set_dcd_callback HAMLIB_PARAMS((RIG *, dcd_cb_t, rig_ptr_t));\r
+extern HAMLIB_EXPORT(int) rig_set_pltune_callback HAMLIB_PARAMS((RIG *, pltune_cb_t, rig_ptr_t));\r
+\r
+extern HAMLIB_EXPORT(const char *) rig_get_info HAMLIB_PARAMS((RIG *rig));\r
+\r
+extern HAMLIB_EXPORT(const struct rig_caps *) rig_get_caps HAMLIB_PARAMS((rig_model_t rig_model));\r
+extern HAMLIB_EXPORT(const freq_range_t *) rig_get_range HAMLIB_PARAMS((const freq_range_t range_list[], freq_t freq, rmode_t mode));\r
+\r
+extern HAMLIB_EXPORT(pbwidth_t) rig_passband_normal HAMLIB_PARAMS((RIG *rig, rmode_t mode));\r
+extern HAMLIB_EXPORT(pbwidth_t) rig_passband_narrow HAMLIB_PARAMS((RIG *rig, rmode_t mode));\r
+extern HAMLIB_EXPORT(pbwidth_t) rig_passband_wide HAMLIB_PARAMS((RIG *rig, rmode_t mode));\r
+\r
+extern HAMLIB_EXPORT(const char *) rigerror HAMLIB_PARAMS((int errnum));\r
+\r
+extern HAMLIB_EXPORT(int) rig_setting2idx HAMLIB_PARAMS((setting_t s));\r
+#define rig_idx2setting(i) (1UL<<(i))\r
+\r
+/*\r
+ * Even if these functions are prefixed with "rig_", they are not rig specific\r
+ * Maybe "hamlib_" would have been better. Let me know. --SF\r
+ */\r
+extern HAMLIB_EXPORT(void) rig_set_debug HAMLIB_PARAMS((enum rig_debug_level_e debug_level));\r
+#define rig_set_debug_level(level) rig_set_debug(level)\r
+extern HAMLIB_EXPORT(int) rig_need_debug HAMLIB_PARAMS((enum rig_debug_level_e debug_level));\r
+extern HAMLIB_EXPORT(void) rig_debug HAMLIB_PARAMS((enum rig_debug_level_e debug_level, const char *fmt, ...));\r
+extern HAMLIB_EXPORT(vprintf_cb_t) rig_set_debug_callback HAMLIB_PARAMS((vprintf_cb_t cb, rig_ptr_t arg));\r
+extern HAMLIB_EXPORT(FILE*) rig_set_debug_file HAMLIB_PARAMS((FILE *stream));\r
+\r
+extern HAMLIB_EXPORT(int) rig_register HAMLIB_PARAMS((const struct rig_caps *caps));\r
+extern HAMLIB_EXPORT(int) rig_unregister HAMLIB_PARAMS((rig_model_t rig_model));\r
+extern HAMLIB_EXPORT(int) rig_list_foreach HAMLIB_PARAMS((int (*cfunc)(const struct rig_caps*, rig_ptr_t), rig_ptr_t data));\r
+extern HAMLIB_EXPORT(int) rig_load_backend HAMLIB_PARAMS((const char *be_name));\r
+extern HAMLIB_EXPORT(int) rig_check_backend HAMLIB_PARAMS((rig_model_t rig_model));\r
+extern HAMLIB_EXPORT(int) rig_load_all_backends HAMLIB_PARAMS((void));\r
+\r
+typedef int (*rig_probe_func_t)(const hamlib_port_t *, rig_model_t, rig_ptr_t);\r
+extern HAMLIB_EXPORT(int) rig_probe_all HAMLIB_PARAMS((hamlib_port_t *p, rig_probe_func_t, rig_ptr_t));\r
+extern HAMLIB_EXPORT(rig_model_t) rig_probe HAMLIB_PARAMS((hamlib_port_t *p));\r
+\r
+\r
+/* Misc calls */\r
+extern HAMLIB_EXPORT(const char *) rig_strrmode(rmode_t mode);\r
+extern HAMLIB_EXPORT(const char *) rig_strvfo(vfo_t vfo);\r
+extern HAMLIB_EXPORT(const char *) rig_strfunc(setting_t);\r
+extern HAMLIB_EXPORT(const char *) rig_strlevel(setting_t);\r
+extern HAMLIB_EXPORT(const char *) rig_strparm(setting_t);\r
+extern HAMLIB_EXPORT(const char *) rig_strptrshift(rptr_shift_t);\r
+extern HAMLIB_EXPORT(const char *) rig_strvfop(vfo_op_t op);\r
+extern HAMLIB_EXPORT(const char *) rig_strscan(scan_t scan);\r
+extern HAMLIB_EXPORT(const char *) rig_strstatus(enum rig_status_e status);\r
+extern HAMLIB_EXPORT(const char *) rig_strmtype(chan_type_t mtype);\r
+\r
+extern HAMLIB_EXPORT(rmode_t) rig_parse_mode(const char *s);\r
+extern HAMLIB_EXPORT(vfo_t) rig_parse_vfo(const char *s);\r
+extern HAMLIB_EXPORT(setting_t) rig_parse_func(const char *s);\r
+extern HAMLIB_EXPORT(setting_t) rig_parse_level(const char *s);\r
+extern HAMLIB_EXPORT(setting_t) rig_parse_parm(const char *s);\r
+extern HAMLIB_EXPORT(vfo_op_t) rig_parse_vfo_op(const char *s);\r
+extern HAMLIB_EXPORT(scan_t) rig_parse_scan(const char *s);\r
+extern HAMLIB_EXPORT(rptr_shift_t) rig_parse_rptr_shift(const char *s);\r
+extern HAMLIB_EXPORT(chan_type_t) rig_parse_mtype(const char *s);\r
+\r
+\r
+__END_DECLS\r
+\r
+#endif /* _RIG_H */\r
+\r
+/*! @} */\r
--- /dev/null
+/*\r
+ * Hamlib Win32 DLL build definitions\r
+ * Copyright (c) 2001-2009 by Stephane Fillod\r
+ *\r
+ *\r
+ * This library is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU Lesser General Public\r
+ * License as published by the Free Software Foundation; either\r
+ * version 2.1 of the License, or (at your option) any later version.\r
+ *\r
+ * This library is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
+ * Lesser General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU Lesser General Public\r
+ * License along with this library; if not, write to the Free Software\r
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r
+ *\r
+ */\r
+\r
+/*\r
+ * Provide definitions to compile in Windows\r
+ * using C-friendly options, e.g.\r
+ *\r
+ * HAMLIB_API -> __cdecl\r
+ * HAMLIB_EXPORT, HAMLIB_EXPORT_VAR -> __declspec(dllexport)\r
+ * BACKEND_EXPORT, BACKEND_EXPORT_VAR -> __declspec(dllexport)\r
+ *\r
+ * No effect in non-Windows environments.\r
+ */\r
+\r
+#if defined(_WIN32) && !defined(__CYGWIN__)\r
+# undef HAMLIB_IMPEXP\r
+# undef BACKEND_IMPEXP\r
+# undef HAMLIB_API\r
+# undef HAMLIB_EXPORT\r
+# undef HAMLIB_EXPORT_VAR\r
+# undef BACKEND_EXPORT\r
+# undef BACKEND_EXPORT_VAR\r
+# undef HAMLIB_DLL_IMPORT\r
+# undef HAMLIB_DLL_EXPORT\r
+\r
+# if defined (__BORLANDC__)\r
+# define HAMLIB_DLL_IMPORT __import\r
+# define HAMLIB_DLL_EXPORT __export\r
+# else\r
+# define HAMLIB_DLL_IMPORT __declspec(dllimport)\r
+# define HAMLIB_DLL_EXPORT __declspec(dllexport)\r
+# endif\r
+\r
+# ifdef DLL_EXPORT\r
+ /* HAMLIB_API may be set to __stdcall for VB, .. */\r
+# define HAMLIB_API __cdecl\r
+# ifdef IN_HAMLIB\r
+# define BACKEND_IMPEXP HAMLIB_DLL_EXPORT\r
+# define HAMLIB_IMPEXP HAMLIB_DLL_EXPORT\r
+# else\r
+# define BACKEND_IMPEXP HAMLIB_DLL_EXPORT\r
+# define HAMLIB_IMPEXP HAMLIB_DLL_IMPORT\r
+# endif\r
+# else\r
+ /* static build, only export the backend entry points for lt_dlsym */\r
+# define BACKEND_IMPEXP HAMLIB_DLL_EXPORT\r
+# endif\r
+#endif\r
+\r
+\r
+/* Take care of non-cygwin platforms */\r
+#if !defined(HAMLIB_IMPEXP)\r
+# define HAMLIB_IMPEXP\r
+#endif\r
+#if !defined(BACKEND_IMPEXP)\r
+# define BACKEND_IMPEXP\r
+#endif\r
+#if !defined(HAMLIB_API)\r
+# define HAMLIB_API\r
+#endif\r
+#if !defined(HAMLIB_EXPORT)\r
+# define HAMLIB_EXPORT(type) HAMLIB_IMPEXP type HAMLIB_API\r
+#endif\r
+#if !defined(HAMLIB_EXPORT_VAR)\r
+# define HAMLIB_EXPORT_VAR(type) HAMLIB_IMPEXP type\r
+#endif\r
+#if !defined(BACKEND_EXPORT)\r
+# define BACKEND_EXPORT(type) BACKEND_IMPEXP type HAMLIB_API\r
+#endif\r
+#if !defined(BACKEND_EXPORT_VAR)\r
+# define BACKEND_EXPORT_VAR(type) BACKEND_IMPEXP type\r
+#endif\r
+\r
+\r
--- /dev/null
+/*\r
+ * Hamlib Interface - list of known rigs\r
+ * Copyright (c) 2000-2003 by Frank Singleton\r
+ * Copyright (c) 2000-2012 by Stephane Fillod\r
+ *\r
+ *\r
+ * This library is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU Lesser General Public\r
+ * License as published by the Free Software Foundation; either\r
+ * version 2.1 of the License, or (at your option) any later version.\r
+ *\r
+ * This library is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
+ * Lesser General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU Lesser General Public\r
+ * License along with this library; if not, write to the Free Software\r
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r
+ *\r
+ */\r
+\r
+#ifndef _RIGLIST_H\r
+#define _RIGLIST_H 1\r
+\r
+#define RIG_MAKE_MODEL(a,b) ((a)*100+(b))\r
+#define RIG_BACKEND_NUM(a) ((a)/100)\r
+\r
+/*! \file riglist.h\r
+ * \brief Hamlib rig(radio) model definitions.\r
+ *\r
+ * This file contains rig model definitions for the Hamlib rig API.\r
+ * Each distinct rig type has a unique model number (ID) and is used\r
+ * by hamlib to identify and distinguish between the different hardware drivers.\r
+ * The exact model numbers can be acquired using the macros in this\r
+ * file. To obtain a list of supported rig branches, one can use the statically\r
+ * defined RIG_BACKEND_LIST macro. To obtain a full list of supported rig (including\r
+ * each model in every branch), the foreach_opened_rig() API function can be used.\r
+ *\r
+ * The model number, or ID, is used to tell hamlib, which rig the client whishes to\r
+ * use. It is done with the rig_init() API call.\r
+ */\r
+\r
+#define RIG_MODEL_NONE 0\r
+\r
+/*! \def RIG_MODEL_DUMMY\r
+ * \brief A macro that returns the model number for the dummy backend.\r
+ *\r
+ * The dummy backend, as the name suggests, is a backend which performs\r
+ * no hardware operations and always behaves as one would expect. It can\r
+ * be thought of as a hardware simulator and is very usefull for testing\r
+ * client applications.\r
+ */\r
+#define RIG_DUMMY 0\r
+#define RIG_BACKEND_DUMMY "dummy"\r
+#define RIG_MODEL_DUMMY RIG_MAKE_MODEL(RIG_DUMMY, 1)\r
+#define RIG_MODEL_NETRIGCTL RIG_MAKE_MODEL(RIG_DUMMY, 2)\r
+#define RIG_MODEL_ARMSTRONG RIG_MAKE_MODEL(RIG_DUMMY, 3)\r
+\r
+ /*\r
+ * Yaesu\r
+ */\r
+#define RIG_YAESU 1\r
+#define RIG_BACKEND_YAESU "yaesu"\r
+#define RIG_MODEL_FT847 RIG_MAKE_MODEL(RIG_YAESU, 1)\r
+#define RIG_MODEL_FT1000 RIG_MAKE_MODEL(RIG_YAESU, 2)\r
+#define RIG_MODEL_FT1000D RIG_MAKE_MODEL(RIG_YAESU, 3)\r
+#define RIG_MODEL_FT1000MPMKV RIG_MAKE_MODEL(RIG_YAESU, 4)\r
+#define RIG_MODEL_FT747 RIG_MAKE_MODEL(RIG_YAESU, 5)\r
+#define RIG_MODEL_FT757 RIG_MAKE_MODEL(RIG_YAESU, 6)\r
+#define RIG_MODEL_FT757GXII RIG_MAKE_MODEL(RIG_YAESU, 7)\r
+#define RIG_MODEL_FT575 RIG_MAKE_MODEL(RIG_YAESU, 8)\r
+#define RIG_MODEL_FT767 RIG_MAKE_MODEL(RIG_YAESU, 9)\r
+#define RIG_MODEL_FT736R RIG_MAKE_MODEL(RIG_YAESU, 10)\r
+#define RIG_MODEL_FT840 RIG_MAKE_MODEL(RIG_YAESU, 11)\r
+#define RIG_MODEL_FT820 RIG_MAKE_MODEL(RIG_YAESU, 12)\r
+#define RIG_MODEL_FT900 RIG_MAKE_MODEL(RIG_YAESU, 13)\r
+#define RIG_MODEL_FT920 RIG_MAKE_MODEL(RIG_YAESU, 14)\r
+#define RIG_MODEL_FT890 RIG_MAKE_MODEL(RIG_YAESU, 15)\r
+#define RIG_MODEL_FT990 RIG_MAKE_MODEL(RIG_YAESU, 16)\r
+#define RIG_MODEL_FRG100 RIG_MAKE_MODEL(RIG_YAESU, 17)\r
+#define RIG_MODEL_FRG9600 RIG_MAKE_MODEL(RIG_YAESU, 18)\r
+#define RIG_MODEL_FRG8800 RIG_MAKE_MODEL(RIG_YAESU, 19)\r
+#define RIG_MODEL_FT817 RIG_MAKE_MODEL(RIG_YAESU, 20)\r
+#define RIG_MODEL_FT100 RIG_MAKE_MODEL(RIG_YAESU, 21)\r
+#define RIG_MODEL_FT857 RIG_MAKE_MODEL(RIG_YAESU, 22)\r
+#define RIG_MODEL_FT897 RIG_MAKE_MODEL(RIG_YAESU, 23)\r
+#define RIG_MODEL_FT1000MP RIG_MAKE_MODEL(RIG_YAESU, 24)\r
+#define RIG_MODEL_FT1000MPMKVFLD RIG_MAKE_MODEL(RIG_YAESU, 25)\r
+#define RIG_MODEL_VR5000 RIG_MAKE_MODEL(RIG_YAESU, 26)\r
+#define RIG_MODEL_FT450 RIG_MAKE_MODEL(RIG_YAESU, 27)\r
+#define RIG_MODEL_FT950 RIG_MAKE_MODEL(RIG_YAESU, 28)\r
+#define RIG_MODEL_FT2000 RIG_MAKE_MODEL(RIG_YAESU, 29)\r
+#define RIG_MODEL_FT9000 RIG_MAKE_MODEL(RIG_YAESU, 30)\r
+#define RIG_MODEL_FT980 RIG_MAKE_MODEL(RIG_YAESU, 31)\r
+#define RIG_MODEL_FTDX5000 RIG_MAKE_MODEL(RIG_YAESU, 32)\r
+#define RIG_MODEL_VX1700 RIG_MAKE_MODEL(RIG_YAESU, 33)\r
+\r
+ /*\r
+ * Kenwood\r
+ */\r
+#define RIG_KENWOOD 2\r
+#define RIG_BACKEND_KENWOOD "kenwood"\r
+#define RIG_MODEL_TS50 RIG_MAKE_MODEL(RIG_KENWOOD, 1)\r
+#define RIG_MODEL_TS440 RIG_MAKE_MODEL(RIG_KENWOOD, 2)\r
+#define RIG_MODEL_TS450S RIG_MAKE_MODEL(RIG_KENWOOD, 3)\r
+#define RIG_MODEL_TS570D RIG_MAKE_MODEL(RIG_KENWOOD, 4)\r
+#define RIG_MODEL_TS690S RIG_MAKE_MODEL(RIG_KENWOOD, 5)\r
+#define RIG_MODEL_TS711 RIG_MAKE_MODEL(RIG_KENWOOD, 6)\r
+#define RIG_MODEL_TS790 RIG_MAKE_MODEL(RIG_KENWOOD, 7)\r
+#define RIG_MODEL_TS811 RIG_MAKE_MODEL(RIG_KENWOOD, 8)\r
+#define RIG_MODEL_TS850 RIG_MAKE_MODEL(RIG_KENWOOD, 9)\r
+#define RIG_MODEL_TS870S RIG_MAKE_MODEL(RIG_KENWOOD, 10)\r
+#define RIG_MODEL_TS940 RIG_MAKE_MODEL(RIG_KENWOOD, 11)\r
+#define RIG_MODEL_TS950 RIG_MAKE_MODEL(RIG_KENWOOD, 12)\r
+#define RIG_MODEL_TS950SDX RIG_MAKE_MODEL(RIG_KENWOOD, 13)\r
+#define RIG_MODEL_TS2000 RIG_MAKE_MODEL(RIG_KENWOOD, 14)\r
+#define RIG_MODEL_R5000 RIG_MAKE_MODEL(RIG_KENWOOD, 15)\r
+#define RIG_MODEL_TS570S RIG_MAKE_MODEL(RIG_KENWOOD, 16)\r
+#define RIG_MODEL_THD7A RIG_MAKE_MODEL(RIG_KENWOOD, 17)\r
+#define RIG_MODEL_THD7AG RIG_MAKE_MODEL(RIG_KENWOOD, 18)\r
+#define RIG_MODEL_THF6A RIG_MAKE_MODEL(RIG_KENWOOD, 19)\r
+#define RIG_MODEL_THF7E RIG_MAKE_MODEL(RIG_KENWOOD, 20)\r
+#define RIG_MODEL_K2 RIG_MAKE_MODEL(RIG_KENWOOD, 21)\r
+#define RIG_MODEL_TS930 RIG_MAKE_MODEL(RIG_KENWOOD, 22)\r
+#define RIG_MODEL_THG71 RIG_MAKE_MODEL(RIG_KENWOOD, 23)\r
+#define RIG_MODEL_TS680S RIG_MAKE_MODEL(RIG_KENWOOD, 24)\r
+#define RIG_MODEL_TS140S RIG_MAKE_MODEL(RIG_KENWOOD, 25)\r
+#define RIG_MODEL_TMD700 RIG_MAKE_MODEL(RIG_KENWOOD, 26)\r
+#define RIG_MODEL_TMV7 RIG_MAKE_MODEL(RIG_KENWOOD, 27)\r
+#define RIG_MODEL_TS480 RIG_MAKE_MODEL(RIG_KENWOOD, 28)\r
+#define RIG_MODEL_K3 RIG_MAKE_MODEL(RIG_KENWOOD, 29)\r
+#define RIG_MODEL_TRC80 RIG_MAKE_MODEL(RIG_KENWOOD, 30)\r
+#define RIG_MODEL_TS590S RIG_MAKE_MODEL(RIG_KENWOOD, 31)\r
+#define RIG_MODEL_TRANSFOX RIG_MAKE_MODEL(RIG_KENWOOD, 32) /* SigFox Transfox */\r
+#define RIG_MODEL_THD72A RIG_MAKE_MODEL(RIG_KENWOOD, 33)\r
+#define RIG_MODEL_TMD710 RIG_MAKE_MODEL(RIG_KENWOOD, 34)\r
+#define RIG_MODEL_TMV71 RIG_MAKE_MODEL(RIG_KENWOOD, 35)\r
+\r
+ /*\r
+ * Icom\r
+ */\r
+#define RIG_ICOM 3\r
+#define RIG_BACKEND_ICOM "icom"\r
+#define RIG_MODEL_IC1271 RIG_MAKE_MODEL(RIG_ICOM, 1)\r
+#define RIG_MODEL_IC1275 RIG_MAKE_MODEL(RIG_ICOM, 2)\r
+#define RIG_MODEL_IC271 RIG_MAKE_MODEL(RIG_ICOM, 3)\r
+#define RIG_MODEL_IC275 RIG_MAKE_MODEL(RIG_ICOM, 4)\r
+#define RIG_MODEL_IC375 RIG_MAKE_MODEL(RIG_ICOM, 5)\r
+#define RIG_MODEL_IC471 RIG_MAKE_MODEL(RIG_ICOM, 6)\r
+#define RIG_MODEL_IC475 RIG_MAKE_MODEL(RIG_ICOM, 7)\r
+#define RIG_MODEL_IC575 RIG_MAKE_MODEL(RIG_ICOM, 8)\r
+#define RIG_MODEL_IC706 RIG_MAKE_MODEL(RIG_ICOM, 9)\r
+#define RIG_MODEL_IC706MKII RIG_MAKE_MODEL(RIG_ICOM, 10)\r
+#define RIG_MODEL_IC706MKIIG RIG_MAKE_MODEL(RIG_ICOM, 11)\r
+#define RIG_MODEL_IC707 RIG_MAKE_MODEL(RIG_ICOM, 12)\r
+#define RIG_MODEL_IC718 RIG_MAKE_MODEL(RIG_ICOM, 13)\r
+#define RIG_MODEL_IC725 RIG_MAKE_MODEL(RIG_ICOM, 14)\r
+#define RIG_MODEL_IC726 RIG_MAKE_MODEL(RIG_ICOM, 15)\r
+#define RIG_MODEL_IC728 RIG_MAKE_MODEL(RIG_ICOM, 16)\r
+#define RIG_MODEL_IC729 RIG_MAKE_MODEL(RIG_ICOM, 17)\r
+#define RIG_MODEL_IC731 RIG_MAKE_MODEL(RIG_ICOM, 18)\r
+#define RIG_MODEL_IC735 RIG_MAKE_MODEL(RIG_ICOM, 19)\r
+#define RIG_MODEL_IC736 RIG_MAKE_MODEL(RIG_ICOM, 20)\r
+#define RIG_MODEL_IC737 RIG_MAKE_MODEL(RIG_ICOM, 21)\r
+#define RIG_MODEL_IC738 RIG_MAKE_MODEL(RIG_ICOM, 22)\r
+#define RIG_MODEL_IC746 RIG_MAKE_MODEL(RIG_ICOM, 23)\r
+#define RIG_MODEL_IC751 RIG_MAKE_MODEL(RIG_ICOM, 24)\r
+#define RIG_MODEL_IC751A RIG_MAKE_MODEL(RIG_ICOM, 25)\r
+#define RIG_MODEL_IC756 RIG_MAKE_MODEL(RIG_ICOM, 26)\r
+#define RIG_MODEL_IC756PRO RIG_MAKE_MODEL(RIG_ICOM, 27)\r
+#define RIG_MODEL_IC761 RIG_MAKE_MODEL(RIG_ICOM, 28)\r
+#define RIG_MODEL_IC765 RIG_MAKE_MODEL(RIG_ICOM, 29)\r
+#define RIG_MODEL_IC775 RIG_MAKE_MODEL(RIG_ICOM, 30)\r
+#define RIG_MODEL_IC781 RIG_MAKE_MODEL(RIG_ICOM, 31)\r
+#define RIG_MODEL_IC820 RIG_MAKE_MODEL(RIG_ICOM, 32)\r
+#define RIG_MODEL_IC821 RIG_MAKE_MODEL(RIG_ICOM, 33)\r
+#define RIG_MODEL_IC821H RIG_MAKE_MODEL(RIG_ICOM, 34)\r
+#define RIG_MODEL_IC970 RIG_MAKE_MODEL(RIG_ICOM, 35)\r
+#define RIG_MODEL_ICR10 RIG_MAKE_MODEL(RIG_ICOM, 36)\r
+#define RIG_MODEL_ICR71 RIG_MAKE_MODEL(RIG_ICOM, 37)\r
+#define RIG_MODEL_ICR72 RIG_MAKE_MODEL(RIG_ICOM, 38)\r
+#define RIG_MODEL_ICR75 RIG_MAKE_MODEL(RIG_ICOM, 39)\r
+#define RIG_MODEL_ICR7000 RIG_MAKE_MODEL(RIG_ICOM, 40)\r
+#define RIG_MODEL_ICR7100 RIG_MAKE_MODEL(RIG_ICOM, 41)\r
+#define RIG_MODEL_ICR8500 RIG_MAKE_MODEL(RIG_ICOM, 42)\r
+#define RIG_MODEL_ICR9000 RIG_MAKE_MODEL(RIG_ICOM, 43)\r
+#define RIG_MODEL_IC910 RIG_MAKE_MODEL(RIG_ICOM, 44)\r
+#define RIG_MODEL_IC78 RIG_MAKE_MODEL(RIG_ICOM, 45)\r
+#define RIG_MODEL_IC746PRO RIG_MAKE_MODEL(RIG_ICOM, 46)\r
+#define RIG_MODEL_IC756PROII RIG_MAKE_MODEL(RIG_ICOM, 47)\r
+#define RIG_MODEL_ICID1 RIG_MAKE_MODEL(RIG_ICOM, 54)\r
+#define RIG_MODEL_IC703 RIG_MAKE_MODEL(RIG_ICOM, 55)\r
+#define RIG_MODEL_IC7800 RIG_MAKE_MODEL(RIG_ICOM, 56)\r
+#define RIG_MODEL_IC756PROIII RIG_MAKE_MODEL(RIG_ICOM, 57)\r
+#define RIG_MODEL_ICR20 RIG_MAKE_MODEL(RIG_ICOM, 58)\r
+#define RIG_MODEL_IC7000 RIG_MAKE_MODEL(RIG_ICOM, 60)\r
+#define RIG_MODEL_IC7200 RIG_MAKE_MODEL(RIG_ICOM, 61)\r
+#define RIG_MODEL_IC7700 RIG_MAKE_MODEL(RIG_ICOM, 62)\r
+#define RIG_MODEL_IC7600 RIG_MAKE_MODEL(RIG_ICOM, 63)\r
+#define RIG_MODEL_IC92D RIG_MAKE_MODEL(RIG_ICOM, 65)\r
+#define RIG_MODEL_ICR9500 RIG_MAKE_MODEL(RIG_ICOM, 66)\r
+#define RIG_MODEL_IC7410 RIG_MAKE_MODEL(RIG_ICOM, 67)\r
+#define RIG_MODEL_IC9100 RIG_MAKE_MODEL(RIG_ICOM, 68)\r
+#define RIG_MODEL_ICRX7 RIG_MAKE_MODEL(RIG_ICOM, 69)\r
+/* next one is 70 */\r
+\r
+ /*\r
+ * Optoelectronics (CI-V)\r
+ */\r
+#define RIG_MODEL_MINISCOUT RIG_MAKE_MODEL(RIG_ICOM, 48)\r
+#define RIG_MODEL_XPLORER RIG_MAKE_MODEL(RIG_ICOM, 49)\r
+#define RIG_MODEL_OS535 RIG_MAKE_MODEL(RIG_ICOM, 52)\r
+#define RIG_MODEL_OS456 RIG_MAKE_MODEL(RIG_ICOM, 53)\r
+\r
+ /*\r
+ * TenTec (CI-V)\r
+ */\r
+#define RIG_MODEL_OMNIVI RIG_MAKE_MODEL(RIG_ICOM, 50)\r
+#define RIG_MODEL_OMNIVIP RIG_MAKE_MODEL(RIG_ICOM, 51) /* OMNI-VI+ */\r
+#define RIG_MODEL_PARAGON2 RIG_MAKE_MODEL(RIG_ICOM, 59)\r
+#define RIG_MODEL_DELTAII RIG_MAKE_MODEL(RIG_ICOM, 64)\r
+\r
+ /*\r
+ * Icom PCR\r
+ */\r
+#define RIG_PCR 4\r
+#define RIG_BACKEND_PCR "pcr"\r
+#define RIG_MODEL_PCR1000 RIG_MAKE_MODEL(RIG_PCR, 1)\r
+#define RIG_MODEL_PCR100 RIG_MAKE_MODEL(RIG_PCR, 2)\r
+#define RIG_MODEL_PCR1500 RIG_MAKE_MODEL(RIG_PCR, 3)\r
+#define RIG_MODEL_PCR2500 RIG_MAKE_MODEL(RIG_PCR, 4)\r
+\r
+ /*\r
+ * AOR\r
+ */\r
+#define RIG_AOR 5\r
+#define RIG_BACKEND_AOR "aor"\r
+#define RIG_MODEL_AR8200 RIG_MAKE_MODEL(RIG_AOR, 1)\r
+#define RIG_MODEL_AR8000 RIG_MAKE_MODEL(RIG_AOR, 2)\r
+#define RIG_MODEL_AR7030 RIG_MAKE_MODEL(RIG_AOR, 3)\r
+#define RIG_MODEL_AR5000 RIG_MAKE_MODEL(RIG_AOR, 4)\r
+#define RIG_MODEL_AR3030 RIG_MAKE_MODEL(RIG_AOR, 5)\r
+#define RIG_MODEL_AR3000A RIG_MAKE_MODEL(RIG_AOR, 6)\r
+#define RIG_MODEL_AR3000 RIG_MAKE_MODEL(RIG_AOR, 7)\r
+#define RIG_MODEL_AR2700 RIG_MAKE_MODEL(RIG_AOR, 8)\r
+#define RIG_MODEL_AR2500 RIG_MAKE_MODEL(RIG_AOR, 9)\r
+#define RIG_MODEL_AR16 RIG_MAKE_MODEL(RIG_AOR, 10)\r
+#define RIG_MODEL_SDU5500 RIG_MAKE_MODEL(RIG_AOR, 11)\r
+#define RIG_MODEL_SDU5000 RIG_MAKE_MODEL(RIG_AOR, 12)\r
+#define RIG_MODEL_AR8600 RIG_MAKE_MODEL(RIG_AOR, 13)\r
+#define RIG_MODEL_AR5000A RIG_MAKE_MODEL(RIG_AOR, 14)\r
+#define RIG_MODEL_AR7030P RIG_MAKE_MODEL(RIG_AOR, 15)\r
+#define RIG_MODEL_SR2200 RIG_MAKE_MODEL(RIG_AOR, 16)\r
+\r
+ /*\r
+ * JRC\r
+ */\r
+#define RIG_JRC 6\r
+#define RIG_BACKEND_JRC "jrc"\r
+#define RIG_MODEL_JST145 RIG_MAKE_MODEL(RIG_JRC, 1)\r
+#define RIG_MODEL_JST245 RIG_MAKE_MODEL(RIG_JRC, 2)\r
+#define RIG_MODEL_CMH530 RIG_MAKE_MODEL(RIG_JRC, 3)\r
+#define RIG_MODEL_NRD345 RIG_MAKE_MODEL(RIG_JRC, 4)\r
+#define RIG_MODEL_NRD525 RIG_MAKE_MODEL(RIG_JRC, 5)\r
+#define RIG_MODEL_NRD535 RIG_MAKE_MODEL(RIG_JRC, 6)\r
+#define RIG_MODEL_NRD545 RIG_MAKE_MODEL(RIG_JRC, 7)\r
+\r
+ /*\r
+ * Radio Shack\r
+ * Actualy, they might be either Icom or Uniden. TBC --SF\r
+ */\r
+#define RIG_RADIOSHACK 7\r
+#define RIG_BACKEND_RADIOSHACK "radioshack"\r
+#define RIG_MODEL_RS64 RIG_MAKE_MODEL(RIG_RADIOSHACK, 1) /* PRO-64 */\r
+#define RIG_MODEL_RS2005 RIG_MAKE_MODEL(RIG_RADIOSHACK, 2) /* w/ OptoElectronics OS456 Board */\r
+#define RIG_MODEL_RS2006 RIG_MAKE_MODEL(RIG_RADIOSHACK, 3) /* w/ OptoElectronics OS456 Board */\r
+#define RIG_MODEL_RS2035 RIG_MAKE_MODEL(RIG_RADIOSHACK, 4) /* w/ OptoElectronics OS435 Board */\r
+#define RIG_MODEL_RS2042 RIG_MAKE_MODEL(RIG_RADIOSHACK, 5) /* w/ OptoElectronics OS435 Board */\r
+#define RIG_MODEL_RS2041 RIG_MAKE_MODEL(RIG_RADIOSHACK, 6) /* PRO-2041 */\r
+\r
+ /*\r
+ * Uniden\r
+ */\r
+#define RIG_UNIDEN 8\r
+#define RIG_BACKEND_UNIDEN "uniden"\r
+#define RIG_MODEL_BC780 RIG_MAKE_MODEL(RIG_UNIDEN, 1) /* Uniden BC780 - Trunk Tracker "Desktop Radio" */\r
+#define RIG_MODEL_BC245 RIG_MAKE_MODEL(RIG_UNIDEN, 2)\r
+#define RIG_MODEL_BC895 RIG_MAKE_MODEL(RIG_UNIDEN, 3)\r
+#define RIG_MODEL_PRO2052 RIG_MAKE_MODEL(RIG_UNIDEN, 4) /* Radio Shack PRO-2052 */\r
+#define RIG_MODEL_BC235 RIG_MAKE_MODEL(RIG_UNIDEN, 5)\r
+#define RIG_MODEL_BC250 RIG_MAKE_MODEL(RIG_UNIDEN, 6)\r
+#define RIG_MODEL_BC785 RIG_MAKE_MODEL(RIG_UNIDEN, 7)\r
+#define RIG_MODEL_BC786 RIG_MAKE_MODEL(RIG_UNIDEN, 8)\r
+#define RIG_MODEL_BCT8 RIG_MAKE_MODEL(RIG_UNIDEN, 9)\r
+#define RIG_MODEL_BCD396T RIG_MAKE_MODEL(RIG_UNIDEN, 10)\r
+#define RIG_MODEL_BCD996T RIG_MAKE_MODEL(RIG_UNIDEN, 11)\r
+#define RIG_MODEL_BC898 RIG_MAKE_MODEL(RIG_UNIDEN, 12)\r
+\r
+ /*\r
+ * Drake\r
+ */\r
+#define RIG_DRAKE 9\r
+#define RIG_BACKEND_DRAKE "drake"\r
+#define RIG_MODEL_DKR8 RIG_MAKE_MODEL(RIG_DRAKE, 1)\r
+#define RIG_MODEL_DKR8A RIG_MAKE_MODEL(RIG_DRAKE, 2)\r
+#define RIG_MODEL_DKR8B RIG_MAKE_MODEL(RIG_DRAKE, 3)\r
+\r
+ /*\r
+ * Lowe\r
+ */\r
+#define RIG_LOWE 10\r
+#define RIG_BACKEND_LOWE "lowe"\r
+#define RIG_MODEL_HF150 RIG_MAKE_MODEL(RIG_LOWE, 1)\r
+#define RIG_MODEL_HF225 RIG_MAKE_MODEL(RIG_LOWE, 2)\r
+#define RIG_MODEL_HF250 RIG_MAKE_MODEL(RIG_LOWE, 3)\r
+#define RIG_MODEL_HF235 RIG_MAKE_MODEL(RIG_LOWE, 4)\r
+\r
+ /*\r
+ * Racal\r
+ */\r
+#define RIG_RACAL 11\r
+#define RIG_BACKEND_RACAL "racal"\r
+#define RIG_MODEL_RA3790 RIG_MAKE_MODEL(RIG_RACAL, 1)\r
+#define RIG_MODEL_RA3720 RIG_MAKE_MODEL(RIG_RACAL, 2)\r
+#define RIG_MODEL_RA6790 RIG_MAKE_MODEL(RIG_RACAL, 3)\r
+#define RIG_MODEL_RA3710 RIG_MAKE_MODEL(RIG_RACAL, 4)\r
+#define RIG_MODEL_RA3702 RIG_MAKE_MODEL(RIG_RACAL, 5)\r
+\r
+ /*\r
+ * Watkins-Johnson\r
+ */\r
+#define RIG_WJ 12\r
+#define RIG_BACKEND_WJ "wj"\r
+#define RIG_MODEL_HF1000 RIG_MAKE_MODEL(RIG_WJ, 1)\r
+#define RIG_MODEL_HF1000A RIG_MAKE_MODEL(RIG_WJ, 2)\r
+#define RIG_MODEL_WJ8711 RIG_MAKE_MODEL(RIG_WJ, 3)\r
+#define RIG_MODEL_WJ8888 RIG_MAKE_MODEL(RIG_WJ, 4)\r
+\r
+ /*\r
+ * Rohde & Schwarz\r
+ */\r
+#define RIG_EK 13\r
+#define RIG_BACKEND_EK "ek"\r
+#define RIG_MODEL_ESM500 RIG_MAKE_MODEL(RIG_EK, 1)\r
+#define RIG_MODEL_EK890 RIG_MAKE_MODEL(RIG_EK, 2)\r
+#define RIG_MODEL_EK891 RIG_MAKE_MODEL(RIG_EK, 3)\r
+#define RIG_MODEL_EK895 RIG_MAKE_MODEL(RIG_EK, 4)\r
+#define RIG_MODEL_EK070 RIG_MAKE_MODEL(RIG_EK, 5)\r
+\r
+ /*\r
+ * Skanti\r
+ */\r
+#define RIG_SKANTI 14\r
+#define RIG_BACKEND_SKANTI "skanti"\r
+#define RIG_MODEL_TRP7000 RIG_MAKE_MODEL(RIG_SKANTI, 1)\r
+#define RIG_MODEL_TRP8000 RIG_MAKE_MODEL(RIG_SKANTI, 2)\r
+#define RIG_MODEL_TRP9000 RIG_MAKE_MODEL(RIG_SKANTI, 3)\r
+#define RIG_MODEL_TRP8255 RIG_MAKE_MODEL(RIG_SKANTI, 4)\r
+\r
+ /*\r
+ * WiNRADiO/LinRADiO\r
+ */\r
+#define RIG_WINRADIO 15\r
+#define RIG_BACKEND_WINRADIO "winradio"\r
+#define RIG_MODEL_WR1000 RIG_MAKE_MODEL(RIG_WINRADIO, 1)\r
+#define RIG_MODEL_WR1500 RIG_MAKE_MODEL(RIG_WINRADIO, 2)\r
+#define RIG_MODEL_WR1550 RIG_MAKE_MODEL(RIG_WINRADIO, 3)\r
+#define RIG_MODEL_WR3100 RIG_MAKE_MODEL(RIG_WINRADIO, 4)\r
+#define RIG_MODEL_WR3150 RIG_MAKE_MODEL(RIG_WINRADIO, 5)\r
+#define RIG_MODEL_WR3500 RIG_MAKE_MODEL(RIG_WINRADIO, 6)\r
+#define RIG_MODEL_WR3700 RIG_MAKE_MODEL(RIG_WINRADIO, 7)\r
+#define RIG_MODEL_G303 RIG_MAKE_MODEL(RIG_WINRADIO, 8)\r
+#define RIG_MODEL_G313 RIG_MAKE_MODEL(RIG_WINRADIO, 9)\r
+#define RIG_MODEL_G305 RIG_MAKE_MODEL(RIG_WINRADIO, 10)\r
+#define RIG_MODEL_G315 RIG_MAKE_MODEL(RIG_WINRADIO, 11)\r
+\r
+ /*\r
+ * Ten Tec\r
+ */\r
+#define RIG_TENTEC 16\r
+#define RIG_BACKEND_TENTEC "tentec"\r
+#define RIG_MODEL_TT550 RIG_MAKE_MODEL(RIG_TENTEC, 1) /* Pegasus */\r
+#define RIG_MODEL_TT538 RIG_MAKE_MODEL(RIG_TENTEC, 2) /* Jupiter */\r
+#define RIG_MODEL_RX320 RIG_MAKE_MODEL(RIG_TENTEC, 3)\r
+#define RIG_MODEL_RX340 RIG_MAKE_MODEL(RIG_TENTEC, 4)\r
+#define RIG_MODEL_RX350 RIG_MAKE_MODEL(RIG_TENTEC, 5)\r
+#define RIG_MODEL_TT526 RIG_MAKE_MODEL(RIG_TENTEC, 6) /* 6N2 */\r
+#define RIG_MODEL_TT516 RIG_MAKE_MODEL(RIG_TENTEC, 7) /* Argonaut V */\r
+#define RIG_MODEL_TT565 RIG_MAKE_MODEL(RIG_TENTEC, 8) /* Orion */\r
+#define RIG_MODEL_TT585 RIG_MAKE_MODEL(RIG_TENTEC, 9) /* Paragon */\r
+#define RIG_MODEL_TT588 RIG_MAKE_MODEL(RIG_TENTEC, 11) /* Omni-VII */\r
+#define RIG_MODEL_RX331 RIG_MAKE_MODEL(RIG_TENTEC, 12)\r
+#define RIG_MODEL_TT599 RIG_MAKE_MODEL(RIG_TENTEC, 13) /* Eagle */\r
+\r
+ /*\r
+ * Alinco\r
+ */\r
+#define RIG_ALINCO 17\r
+#define RIG_BACKEND_ALINCO "alinco"\r
+#define RIG_MODEL_DX77 RIG_MAKE_MODEL(RIG_ALINCO, 1)\r
+\r
+ /*\r
+ * Kachina\r
+ */\r
+#define RIG_KACHINA 18\r
+#define RIG_BACKEND_KACHINA "kachina"\r
+#define RIG_MODEL_505DSP RIG_MAKE_MODEL(RIG_KACHINA, 1)\r
+\r
+\r
+ /*\r
+ * Gnuradio backend\r
+ */\r
+#define RIG_GNURADIO 20\r
+#define RIG_BACKEND_GNURADIO "gnuradio"\r
+#define RIG_MODEL_GNURADIO RIG_MAKE_MODEL(RIG_GNURADIO, 1) /* dev model, Chirp source */\r
+#define RIG_MODEL_MC4020 RIG_MAKE_MODEL(RIG_GNURADIO, 2) /* MC4020 */\r
+#define RIG_MODEL_GRAUDIO RIG_MAKE_MODEL(RIG_GNURADIO, 3) /* Sound card source */\r
+#define RIG_MODEL_GRAUDIOIQ RIG_MAKE_MODEL(RIG_GNURADIO, 4) /* I&Q stereo sound card source */\r
+#define RIG_MODEL_USRP_G RIG_MAKE_MODEL(RIG_GNURADIO, 5) /* Universal Software Radio Peripheral */\r
+\r
+ /*\r
+ * Microtune tuners\r
+ */\r
+#define RIG_MICROTUNE 21\r
+#define RIG_BACKEND_MICROTUNE "microtune"\r
+#define RIG_MODEL_MICROTUNE_4937 RIG_MAKE_MODEL(RIG_MICROTUNE, 1) /* eval board */\r
+#define RIG_MODEL_MICROTUNE_4702 RIG_MAKE_MODEL(RIG_MICROTUNE, 2) /* Alan's */\r
+#define RIG_MODEL_MICROTUNE_4707 RIG_MAKE_MODEL(RIG_MICROTUNE, 3)\r
+\r
+ /*\r
+ * TAPR\r
+ */\r
+#define RIG_TAPR 22\r
+#define RIG_BACKEND_TAPR "tapr"\r
+#define RIG_MODEL_DSP10 RIG_MAKE_MODEL(RIG_TAPR, 1)\r
+\r
+ /*\r
+ * Flex-radio\r
+ */\r
+#define RIG_FLEXRADIO 23\r
+#define RIG_BACKEND_FLEXRADIO "flexradio"\r
+#define RIG_MODEL_SDR1000 RIG_MAKE_MODEL(RIG_FLEXRADIO, 1)\r
+#define RIG_MODEL_SDR1000RFE RIG_MAKE_MODEL(RIG_FLEXRADIO, 2)\r
+#define RIG_MODEL_DTTSP RIG_MAKE_MODEL(RIG_FLEXRADIO, 3)\r
+#define RIG_MODEL_DTTSP_UDP RIG_MAKE_MODEL(RIG_FLEXRADIO, 4)\r
+\r
+\r
+ /*\r
+ * VEB Funkwerk Köpenick RFT\r
+ */\r
+#define RIG_RFT 24\r
+#define RIG_BACKEND_RFT "rft"\r
+#define RIG_MODEL_EKD500 RIG_MAKE_MODEL(RIG_RFT, 1)\r
+\r
+ /*\r
+ * Various kits\r
+ */\r
+#define RIG_KIT 25\r
+#define RIG_BACKEND_KIT "kit"\r
+#define RIG_MODEL_ELEKTOR304 RIG_MAKE_MODEL(RIG_KIT, 1)\r
+#define RIG_MODEL_DRT1 RIG_MAKE_MODEL(RIG_KIT, 2)\r
+#define RIG_MODEL_DWT RIG_MAKE_MODEL(RIG_KIT, 3)\r
+#define RIG_MODEL_USRP0 RIG_MAKE_MODEL(RIG_KIT, 4) /* prototype */\r
+#define RIG_MODEL_USRP RIG_MAKE_MODEL(RIG_KIT, 5)\r
+#define RIG_MODEL_DDS60 RIG_MAKE_MODEL(RIG_KIT, 6)\r
+#define RIG_MODEL_ELEKTOR507 RIG_MAKE_MODEL(RIG_KIT, 7) /* Elektor SDR USB */\r
+#define RIG_MODEL_MINIVNA RIG_MAKE_MODEL(RIG_KIT, 8)\r
+#define RIG_MODEL_SI570AVRUSB RIG_MAKE_MODEL(RIG_KIT, 9) /* SoftRock Si570 AVR */\r
+#define RIG_MODEL_PMSDR RIG_MAKE_MODEL(RIG_KIT, 10)\r
+#define RIG_MODEL_SI570PICUSB RIG_MAKE_MODEL(RIG_KIT, 11) /* SoftRock Si570 PIC */\r
+#define RIG_MODEL_FIFISDR RIG_MAKE_MODEL(RIG_KIT, 12) /* FiFi-SDR USB */\r
+#define RIG_MODEL_FUNCUBEDONGLE RIG_MAKE_MODEL(RIG_KIT, 13) /* FunCUBE Dongle */\r
+#define RIG_MODEL_HIQSDR RIG_MAKE_MODEL(RIG_KIT, 14) /* HiQSDR */\r
+\r
+ /*\r
+ * SW/FM/TV tuner cards supported by Video4Linux,*BSD, ..\r
+ */\r
+#define RIG_TUNER 26\r
+#define RIG_BACKEND_TUNER "tuner"\r
+#define RIG_MODEL_V4L RIG_MAKE_MODEL(RIG_TUNER, 1)\r
+#define RIG_MODEL_V4L2 RIG_MAKE_MODEL(RIG_TUNER, 2)\r
+\r
+ /*\r
+ * Rohde&Schwarz\r
+ */\r
+#define RIG_RS 27\r
+#define RIG_BACKEND_RS "rs"\r
+#define RIG_MODEL_ESMC RIG_MAKE_MODEL(RIG_RS, 1)\r
+#define RIG_MODEL_EB200 RIG_MAKE_MODEL(RIG_RS, 2)\r
+\r
+ /*\r
+ * Phillips/Simoco PRM80\r
+ */\r
+#define RIG_PRM80 28\r
+#define RIG_BACKEND_PRM80 "prm80"\r
+#define RIG_MODEL_PRM8060 RIG_MAKE_MODEL(RIG_PRM80, 1)\r
+#define RIG_MODEL_PRM8070 RIG_MAKE_MODEL(RIG_PRM80, 2)\r
+\r
+ /*\r
+ * ADAT by HB9CBU\r
+ *\r
+ * ADDED: frgo (DG1SBG), 2012-01-01\r
+ */\r
+#define RIG_ADAT 29\r
+#define RIG_BACKEND_ADAT "adat"\r
+#define RIG_MODEL_ADT_200A RIG_MAKE_MODEL(RIG_ADAT, 1)\r
+\r
+ /*\r
+ * TODO:\r
+ RIG_MODEL_KWZ30, KNEISNER +DOERING\r
+ RIG_MODEL_E1800, DASA-Telefunken\r
+ etc.\r
+ */\r
+\r
+/*! \typedef typedef int rig_model_t\r
+ \brief Convenience type definition for rig model.\r
+*/\r
+typedef int rig_model_t;\r
+\r
+\r
+/*! \def RIG_BACKEND_LIST\r
+ * \brief Static list of rig models.\r
+ *\r
+ * This is a NULL terminated list of available rig backends. Each entry\r
+ * in the list consists of two fields: The branch number, which is an integer,\r
+ * and the branch name, which is a character string.\r
+ */\r
+#define RIG_BACKEND_LIST { \\r
+ { RIG_DUMMY, RIG_BACKEND_DUMMY }, \\r
+ { RIG_YAESU, RIG_BACKEND_YAESU }, \\r
+ { RIG_KENWOOD, RIG_BACKEND_KENWOOD }, \\r
+ { RIG_ICOM, RIG_BACKEND_ICOM }, \\r
+ { RIG_PCR, RIG_BACKEND_PCR }, \\r
+ { RIG_AOR, RIG_BACKEND_AOR }, \\r
+ { RIG_JRC, RIG_BACKEND_JRC }, \\r
+ { RIG_UNIDEN, RIG_BACKEND_UNIDEN }, \\r
+ { RIG_DRAKE, RIG_BACKEND_DRAKE }, \\r
+ { RIG_LOWE, RIG_BACKEND_LOWE }, \\r
+ { RIG_RACAL, RIG_BACKEND_RACAL }, \\r
+ { RIG_WJ, RIG_BACKEND_WJ }, \\r
+ { RIG_SKANTI, RIG_BACKEND_SKANTI }, \\r
+ { RIG_WINRADIO, RIG_BACKEND_WINRADIO }, \\r
+ { RIG_TENTEC, RIG_BACKEND_TENTEC }, \\r
+ { RIG_ALINCO, RIG_BACKEND_ALINCO }, \\r
+ { RIG_KACHINA, RIG_BACKEND_KACHINA }, \\r
+ /* { RIG_RPC, RIG_BACKEND_RPC }, */ \\r
+ { RIG_TAPR, RIG_BACKEND_TAPR }, \\r
+ { RIG_FLEXRADIO, RIG_BACKEND_FLEXRADIO }, \\r
+ { RIG_RFT, RIG_BACKEND_RFT }, \\r
+ { RIG_KIT, RIG_BACKEND_KIT }, \\r
+ { RIG_TUNER, RIG_BACKEND_TUNER }, \\r
+ { RIG_RS, RIG_BACKEND_RS }, \\r
+ { RIG_PRM80, RIG_BACKEND_PRM80 }, \\r
+ { RIG_ADAT, RIG_BACKEND_ADAT }, \\r
+ { 0, NULL }, /* end */ \\r
+}\r
+\r
+/*\r
+ * struct rig_backend_list {\r
+ * rig_model_t model;\r
+ * const char *backend;\r
+ * } rig_backend_list[] = RIG_LIST;\r
+ *\r
+ * TODO:\r
+ *\r
+ { RIG_RADIOSHACK, RIG_BACKEND_RADIOSHACK }, \\r
+ */\r
+\r
+#endif /* _RIGLIST_H */\r
--- /dev/null
+/*\r
+ * Hamlib Interface - Rotator API header\r
+ * Copyright (c) 2000-2005 by Stephane Fillod\r
+ *\r
+ *\r
+ * This library is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU Lesser General Public\r
+ * License as published by the Free Software Foundation; either\r
+ * version 2.1 of the License, or (at your option) any later version.\r
+ *\r
+ * This library is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
+ * Lesser General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU Lesser General Public\r
+ * License along with this library; if not, write to the Free Software\r
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r
+ *\r
+ */\r
+\r
+#ifndef _ROTATOR_H\r
+#define _ROTATOR_H 1\r
+\r
+#include <hamlib/rig.h>\r
+#include <hamlib/rotlist.h>\r
+\r
+/**\r
+ * \addtogroup rotator\r
+ * @{\r
+ */\r
+\r
+/*! \file rotator.h\r
+ * \brief Hamlib rotator data structures.\r
+ *\r
+ * This file contains the data structures and definitions for the Hamlib rotator API.\r
+ * see the rotator.c file for more details on the rotator API.\r
+ */\r
+\r
+\r
+\r
+__BEGIN_DECLS\r
+\r
+/* Forward struct references */\r
+\r
+struct rot;\r
+struct rot_state;\r
+\r
+/*! \typedef typedef struct rot ROT\r
+ * \brief Rotator structure definition (see rot for details).\r
+ */\r
+typedef struct rot ROT;\r
+\r
+\r
+/*! \typedef typedef float elevation_t\r
+ * \brief Type definition for elevation.\r
+ *\r
+ * The elevation_t type is used as parameter for the\r
+ * rot_set_position() and rot_get_position() functions.\r
+ *\r
+ * Unless specified otherwise, the unit of elevation_t is decimal degrees.\r
+ */\r
+/*! \typedef typedef float azimuth_t\r
+ * \brief Type definition for azimuth.\r
+ *\r
+ * The azimuth_t type is used as parameter for the\r
+ * rot_set_position() and rot_get_position() functions.\r
+ *\r
+ * Unless specified otherwise, the unit of azimuth_t is decimal degrees.\r
+ */\r
+typedef float elevation_t;\r
+typedef float azimuth_t;\r
+\r
+/** \brief Token in the netrotctl protocol for returning error code */\r
+#define NETROTCTL_RET "RPRT "\r
+\r
+/*! \def ROT_RESET_ALL\r
+ * \brief A macro that returns the flag for the \b reset operation.\r
+ * \sa rot_reset(), rot_reset_t\r
+ */\r
+#define ROT_RESET_ALL 1\r
+\r
+/*! \typedef typedef int rot_reset_t\r
+ * \brief Type definition for rotator reset.\r
+ *\r
+ * The rot_reset_t type is used as parameter for\r
+ * the rot_reset() API function.\r
+ */\r
+typedef int rot_reset_t;\r
+\r
+\r
+/** \brief Rotator type flags */\r
+typedef enum {\r
+ ROT_FLAG_AZIMUTH = (1<<1), /*!< Azimuth */\r
+ ROT_FLAG_ELEVATION = (1<<2) /*!< Elevation */\r
+} rot_type_t;\r
+\r
+#define ROT_TYPE_MASK (ROT_FLAG_AZIMUTH|ROT_FLAG_ELEVATION)\r
+\r
+#define ROT_TYPE_OTHER 0\r
+#define ROT_TYPE_AZIMUTH ROT_FLAG_AZIMUTH\r
+#define ROT_TYPE_ELEVATION ROT_FLAG_ELEVATION\r
+#define ROT_TYPE_AZEL (ROT_FLAG_AZIMUTH|ROT_FLAG_ELEVATION)\r
+\r
+\r
+/*! \def ROT_MOVE_UP\r
+ * \brief A macro that returns the flag for the \b UP direction.\r
+ *\r
+ * This macro defines the value of the \b UP direction which can be\r
+ * used with the rot_move() function.\r
+ *\r
+ * \sa rot_move(), ROT_MOVE_DOWN, ROT_MOVE_LEFT, ROT_MOVE_CCW, ROT_MOVE_RIGHT, ROT_MOVE_CW\r
+ */\r
+/*! \def ROT_MOVE_DOWN\r
+ * \brief A macro that returns the flag for the \b DOWN direction.\r
+ *\r
+ * This macro defines the value of the \b DOWN direction which can be\r
+ * used with the rot_move() function.\r
+ *\r
+ * \sa rot_move(), ROT_MOVE_UP, ROT_MOVE_LEFT, ROT_MOVE_CCW, ROT_MOVE_RIGHT, ROT_MOVE_CW\r
+*/\r
+/*! \def ROT_MOVE_LEFT\r
+ * \brief A macro that returns the flag for the \b LEFT direction.\r
+ *\r
+ * This macro defines the value of the \b LEFT direction which can be\r
+ * used with the rot_move function.\r
+ *\r
+ * \sa rot_move(), ROT_MOVE_UP, ROT_MOVE_DOWN, ROT_MOVE_CCW, ROT_MOVE_RIGHT, ROT_MOVE_CW\r
+ */\r
+/*! \def ROT_MOVE_CCW\r
+ * \brief A macro that returns the flag for the \b counterclockwise direction.\r
+ *\r
+ * This macro defines the value of the \b counterclockwise direction which\r
+ * can be used with the rot_move() function. This value is equivalent to\r
+ * ROT_MOVE_LEFT .\r
+ *\r
+ * \sa rot_move(), ROT_MOVE_UP, ROT_MOVE_DOWN, ROT_MOVE_LEFT, ROT_MOVE_RIGHT, ROT_MOVE_CW\r
+ */\r
+/*! \def ROT_MOVE_RIGHT\r
+ * \brief A macro that returns the flag for the \b RIGHT direction.\r
+ *\r
+ * This macro defines the value of the \b RIGHT direction which can be used\r
+ * with the rot_move() function.\r
+ *\r
+ * \sa rot_move(), ROT_MOVE_UP, ROT_MOVE_DOWN, ROT_MOVE_LEFT, ROT_MOVE_CCW, ROT_MOVE_CW\r
+ */\r
+/*! \def ROT_MOVE_CW\r
+ * \brief A macro that returns the flag for the \b clockwise direction.\r
+ *\r
+ * This macro defines the value of the \b clockwise direction wich can be\r
+ * used with the rot_move() function. This value is equivalent to\r
+ * ROT_MOVE_RIGHT .\r
+ *\r
+ * \sa rot_move(), ROT_MOVE_UP, ROT_MOVE_DOWN, ROT_MOVE_LEFT, ROT_MOVE_CCW, ROT_MOVE_RIGHT\r
+ */\r
+#define ROT_MOVE_UP (1<<1)\r
+#define ROT_MOVE_DOWN (1<<2)\r
+#define ROT_MOVE_LEFT (1<<3)\r
+#define ROT_MOVE_CCW ROT_MOVE_LEFT\r
+#define ROT_MOVE_RIGHT (1<<4)\r
+#define ROT_MOVE_CW ROT_MOVE_RIGHT\r
+\r
+/* Basic rot type, can store some useful\r
+ * info about different rotators. Each lib must\r
+ * be able to populate this structure, so we can make\r
+ * useful enquiries about capablilities.\r
+ */\r
+\r
+/*!\r
+ * Rotator Caps\r
+ * \struct rot_caps\r
+ * \brief Rotator data structure.\r
+ *\r
+ * The main idea of this struct is that it will be defined by the backend\r
+ * rotator driver, and will remain readonly for the application.\r
+ * Fields that need to be modifiable by the application are\r
+ * copied into the struct rot_state, which is a kind of private\r
+ * of the ROT instance.\r
+ * This way, you can have several rigs running within the same application,\r
+ * sharing the struct rot_caps of the backend, while keeping their own\r
+ * customized data.\r
+ * NB: don't move fields around, as backend depends on it when initializing\r
+ * their caps.\r
+ */\r
+struct rot_caps {\r
+ rot_model_t rot_model; /*!< Rotator model. */\r
+ const char *model_name; /*!< Model name. */\r
+ const char *mfg_name; /*!< Manufacturer. */\r
+ const char *version; /*!< Driver version. */\r
+ const char *copyright; /*!< Copyright info. */\r
+ enum rig_status_e status; /*!< Driver status. */\r
+\r
+ int rot_type; /*!< Rotator type. */\r
+ enum rig_port_e port_type; /*!< Type of communication port. */\r
+\r
+ int serial_rate_min; /*!< Minimal serial speed. */\r
+ int serial_rate_max; /*!< Maximal serial speed. */\r
+ int serial_data_bits; /*!< Number of data bits. */\r
+ int serial_stop_bits; /*!< Number of stop bits. */\r
+ enum serial_parity_e serial_parity; /*!< Parity. */\r
+ enum serial_handshake_e serial_handshake; /*!< Handshake. */\r
+\r
+ int write_delay; /*!< Write delay. */\r
+ int post_write_delay; /*!< Post-write delay. */\r
+ int timeout; /*!< Timeout. */\r
+ int retry; /*!< Number of retry if command fails. */\r
+\r
+ /*\r
+ * Movement range, az is relative to North\r
+ * negative values allowed for overlap\r
+ */\r
+ azimuth_t min_az; /*!< Lower limit for azimuth (relative to North). */\r
+ azimuth_t max_az; /*!< Upper limit for azimuth (relative to North). */\r
+ elevation_t min_el; /*!< Lower limit for elevation. */\r
+ elevation_t max_el; /*!< Upper limit for elevation. */\r
+\r
+\r
+ const struct confparams *cfgparams; /*!< Configuration parametres. */\r
+ const rig_ptr_t priv; /*!< Private data. */\r
+\r
+ /*\r
+ * Rot Admin API\r
+ *\r
+ */\r
+\r
+ int (*rot_init)(ROT *rot);\r
+ int (*rot_cleanup)(ROT *rot);\r
+ int (*rot_open)(ROT *rot);\r
+ int (*rot_close)(ROT *rot);\r
+\r
+ int (*set_conf)(ROT *rot, token_t token, const char *val);\r
+ int (*get_conf)(ROT *rot, token_t token, char *val);\r
+\r
+ /*\r
+ * General API commands, from most primitive to least.. :()\r
+ * List Set/Get functions pairs\r
+ */\r
+\r
+ int (*set_position)(ROT *rot, azimuth_t azimuth, elevation_t elevation);\r
+ int (*get_position)(ROT *rot, azimuth_t *azimuth, elevation_t *elevation);\r
+\r
+ int (*stop)(ROT *rot);\r
+ int (*park)(ROT *rot);\r
+ int (*reset)(ROT *rot, rot_reset_t reset);\r
+ int (*move)(ROT *rot, int direction, int speed);\r
+\r
+ /* get firmware info, etc. */\r
+ const char* (*get_info)(ROT *rot);\r
+\r
+ /* more to come... */\r
+};\r
+\r
+\r
+/*!\r
+ * Rotator state\r
+ * \struct rot_state\r
+ * \brief Live data and customized fields.\r
+ *\r
+ * This struct contains live data, as well as a copy of capability fields\r
+ * that may be updated (ie. customized)\r
+ *\r
+ * It is fine to move fields around, as this kind of struct should\r
+ * not be initialized like caps are.\r
+ */\r
+struct rot_state {\r
+ /*\r
+ * overridable fields\r
+ */\r
+ azimuth_t min_az; /*!< Lower limit for azimuth (overridable). */\r
+ azimuth_t max_az; /*!< Upper limit for azimuth (overridable). */\r
+ elevation_t min_el; /*!< Lower limit for elevation (overridable). */\r
+ elevation_t max_el; /*!< Upper limit for elevation (overridable). */\r
+\r
+ /*\r
+ * non overridable fields, internal use\r
+ */\r
+ hamlib_port_t rotport; /*!< Rotator port (internal use). */\r
+\r
+ int comm_state; /*!< Comm port state, opened/closed. */\r
+ rig_ptr_t priv; /*!< Pointer to private rotator state data. */\r
+ rig_ptr_t obj; /*!< Internal use by hamlib++ for event handling. */\r
+\r
+ /* etc... */\r
+};\r
+\r
+/**\r
+ * Rotator structure\r
+ * \struct rot\r
+ * \brief This is the master data structure,\r
+ * acting as a handle for the controlled rotator.\r
+ *\r
+ * This is the master data structure, acting as a handle for the controlled\r
+ * rotator. A pointer to this structure is returned by the rot_init() API\r
+ * function and is passed as a parameter to every rotator specific API call.\r
+ *\r
+ * \sa rot_init(), rot_caps, rot_state\r
+ */\r
+struct rot {\r
+ struct rot_caps *caps; /*!< Rotator caps. */\r
+ struct rot_state state; /*!< Rotator state. */\r
+};\r
+\r
+/* --------------- API function prototypes -----------------*/\r
+\r
+extern HAMLIB_EXPORT(ROT *) rot_init HAMLIB_PARAMS((rot_model_t rot_model));\r
+extern HAMLIB_EXPORT(int) rot_open HAMLIB_PARAMS((ROT *rot));\r
+extern HAMLIB_EXPORT(int) rot_close HAMLIB_PARAMS((ROT *rot));\r
+extern HAMLIB_EXPORT(int) rot_cleanup HAMLIB_PARAMS((ROT *rot));\r
+\r
+extern HAMLIB_EXPORT(int) rot_set_conf HAMLIB_PARAMS((ROT *rot, token_t token, const char *val));\r
+extern HAMLIB_EXPORT(int) rot_get_conf HAMLIB_PARAMS((ROT *rot, token_t token, char *val));\r
+ /*\r
+ * General API commands, from most primitive to least.. )\r
+ * List Set/Get functions pairs\r
+ */\r
+extern HAMLIB_EXPORT(int) rot_set_position HAMLIB_PARAMS((ROT *rot, azimuth_t azimuth, elevation_t elevation));\r
+extern HAMLIB_EXPORT(int) rot_get_position HAMLIB_PARAMS((ROT *rot, azimuth_t *azimuth, elevation_t *elevation));\r
+extern HAMLIB_EXPORT(int) rot_stop HAMLIB_PARAMS((ROT *rot));\r
+extern HAMLIB_EXPORT(int) rot_park HAMLIB_PARAMS((ROT *rot));\r
+extern HAMLIB_EXPORT(int) rot_reset HAMLIB_PARAMS((ROT *rot, rot_reset_t reset));\r
+extern HAMLIB_EXPORT(int) rot_move HAMLIB_PARAMS((ROT *rot, int direction, int speed));\r
+extern HAMLIB_EXPORT(const char*) rot_get_info HAMLIB_PARAMS((ROT *rot));\r
+\r
+extern HAMLIB_EXPORT(int) rot_register HAMLIB_PARAMS((const struct rot_caps *caps));\r
+extern HAMLIB_EXPORT(int) rot_unregister HAMLIB_PARAMS((rot_model_t rot_model));\r
+extern HAMLIB_EXPORT(int) rot_list_foreach HAMLIB_PARAMS((int (*cfunc)(const struct rot_caps*, rig_ptr_t), rig_ptr_t data));\r
+extern HAMLIB_EXPORT(int) rot_load_backend HAMLIB_PARAMS((const char *be_name));\r
+extern HAMLIB_EXPORT(int) rot_check_backend HAMLIB_PARAMS((rot_model_t rot_model));\r
+extern HAMLIB_EXPORT(int) rot_load_all_backends HAMLIB_PARAMS((void));\r
+extern HAMLIB_EXPORT(rot_model_t) rot_probe_all HAMLIB_PARAMS((hamlib_port_t *p));\r
+\r
+extern HAMLIB_EXPORT(int) rot_token_foreach HAMLIB_PARAMS((ROT *rot, int (*cfunc)(const struct confparams *, rig_ptr_t), rig_ptr_t data));\r
+extern HAMLIB_EXPORT(const struct confparams*) rot_confparam_lookup HAMLIB_PARAMS((ROT *rot, const char *name));\r
+extern HAMLIB_EXPORT(token_t) rot_token_lookup HAMLIB_PARAMS((ROT *rot, const char *name));\r
+\r
+extern HAMLIB_EXPORT(const struct rot_caps *) rot_get_caps HAMLIB_PARAMS((rot_model_t rot_model));\r
+\r
+extern HAMLIB_EXPORT(int) qrb HAMLIB_PARAMS((double lon1, double lat1,\r
+ double lon2, double lat2,\r
+ double *distance, double *azimuth));\r
+extern HAMLIB_EXPORT(double) distance_long_path HAMLIB_PARAMS((double distance));\r
+extern HAMLIB_EXPORT(double) azimuth_long_path HAMLIB_PARAMS((double azimuth));\r
+\r
+extern HAMLIB_EXPORT(int) longlat2locator HAMLIB_PARAMS((double longitude,\r
+ double latitude, char *locator_res, int pair_count));\r
+extern HAMLIB_EXPORT(int) locator2longlat HAMLIB_PARAMS((double *longitude,\r
+ double *latitude, const char *locator));\r
+\r
+extern HAMLIB_EXPORT(double) dms2dec HAMLIB_PARAMS((int degrees, int minutes,\r
+ double seconds, int sw));\r
+extern HAMLIB_EXPORT(int) dec2dms HAMLIB_PARAMS((double dec, int *degrees,\r
+ int *minutes, double *seconds, int *sw));\r
+\r
+extern HAMLIB_EXPORT(int) dec2dmmm HAMLIB_PARAMS((double dec, int *degrees,\r
+ double *minutes, int *sw));\r
+extern HAMLIB_EXPORT(double) dmmm2dec HAMLIB_PARAMS((int degrees,\r
+ double minutes, int sw));\r
+\r
+/*! \def rot_debug\r
+ * \brief Convenience definition for debug level.\r
+ *\r
+ * This is just as convenience definition of the rotator debug level,\r
+ * and is the same as for the rig debug level.\r
+ *\r
+ * \sa rig_debug\r
+ */\r
+#define rot_debug rig_debug\r
+\r
+__END_DECLS\r
+\r
+#endif /* _ROTATOR_H */\r
+\r
+/** @} */\r
--- /dev/null
+/*\r
+ * Hamlib Interface - list of known rotators\r
+ * Copyright (c) 2000-2011 by Stephane Fillod\r
+ * Copyright (c) 2000-2002 by Frank Singleton\r
+ *\r
+ *\r
+ * This library is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU Lesser General Public\r
+ * License as published by the Free Software Foundation; either\r
+ * version 2.1 of the License, or (at your option) any later version.\r
+ *\r
+ * This library is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
+ * Lesser General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU Lesser General Public\r
+ * License along with this library; if not, write to the Free Software\r
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\r
+ *\r
+ */\r
+\r
+#ifndef _ROTLIST_H\r
+#define _ROTLIST_H 1\r
+\r
+#define ROT_MAKE_MODEL(a,b) ((a)*100+(b))\r
+#define ROT_BACKEND_NUM(a) ((a)/100)\r
+\r
+/**\r
+ * \addtogroup rotator\r
+ * @{\r
+ */\r
+\r
+/*! \file rotlist.h\r
+ * \brief Hamlib rotator model definitions.\r
+ *\r
+ * This file contains rotator model definitions for the Hamlib rotator API.\r
+ * Each distinct rotator type has a unique model number (ID) and is used\r
+ * by hamlib to identify and distinguish between the different hardware drivers.\r
+ * The exact model numbers can be acquired using the macros in this\r
+ * file. To obtain a list of supported rotator branches, one can use the statically\r
+ * defined ROT_BACKEND_LIST macro. To obtain a full list of supported rotators (including\r
+ * each model in every branch), the foreach_opened_rot() API function can be used.\r
+ *\r
+ * The model number, or ID, is used to tell hamlib, which rotator the client whishes to\r
+ * use. It is done with the rot_init() API call.\r
+ */\r
+\r
+#define ROT_MODEL_NONE 0\r
+\r
+/*! \def ROT_MODEL_DUMMY\r
+ * \brief A macro that returns the model number for the dummy backend.\r
+ *\r
+ * The dummy backend, as the name suggests, is a backend which performs\r
+ * no hardware operations and always behaves as one would expect. It can\r
+ * be thought of as a hardware simulator and is very usefull for testing\r
+ * client applications.\r
+ */\r
+/*! \def ROT_MODEL_NETROTCTL\r
+ * \brief A macro that returns the model number for the Network backend.\r
+ *\r
+ * This backend allows use of the rotctld daemon through the normal\r
+ * Hamlib API.\r
+ */\r
+#define ROT_DUMMY 0\r
+#define ROT_BACKEND_DUMMY "dummy"\r
+#define ROT_MODEL_DUMMY ROT_MAKE_MODEL(ROT_DUMMY, 1)\r
+#define ROT_MODEL_NETROTCTL ROT_MAKE_MODEL(ROT_DUMMY, 2)\r
+\r
+ /*\r
+ * Easycomm\r
+ */\r
+/*! \def ROT_MODEL_EASYCOMM1\r
+ * \brief A macro that returns the model number of the EasyComm 1 backend.\r
+ *\r
+ * The EasyComm 1 backend can be used with rotators that support the\r
+ * EASYCOMM I Standard.\r
+ */\r
+/*! \def ROT_MODEL_EASYCOMM2\r
+ * \brief A macro that returns the model number of the EasyComm 2 backend.\r
+ *\r
+ * The EasyComm 2 backend can be used with rotators that support the\r
+ * EASYCOMM II Standard.\r
+ */\r
+#define ROT_EASYCOMM 2\r
+#define ROT_BACKEND_EASYCOMM "easycomm"\r
+#define ROT_MODEL_EASYCOMM1 ROT_MAKE_MODEL(ROT_EASYCOMM, 1)\r
+#define ROT_MODEL_EASYCOMM2 ROT_MAKE_MODEL(ROT_EASYCOMM, 2)\r
+#define ROT_MODEL_TRAKBOX ROT_MAKE_MODEL(ROT_EASYCOMM, 3)\r
+\r
+/*! \def ROT_MODEL_FODTRACK\r
+ * \brief A macro that returns the model number of the Fodtrack backend.\r
+ *\r
+ * The Fodtrack backend can be used with rotators that support the\r
+ * FODTRACK Standard.\r
+ */\r
+#define ROT_FODTRACK 3\r
+#define ROT_BACKEND_FODTRACK "fodtrack"\r
+#define ROT_MODEL_FODTRACK ROT_MAKE_MODEL(ROT_FODTRACK, 1)\r
+\r
+/*! \def ROT_MODEL_ROTOREZ\r
+ * \brief A macro that returns the model number of the Rotor-EZ backend.\r
+ *\r
+ * The Rotor-EZ backend can be used with Hy-Gain rotators that support\r
+ * the extended DCU command set by Idiom Press Rotor-EZ board.\r
+ */\r
+/*! \def ROT_MODEL_ROTORCARD\r
+ * \brief A macro that returns the model number of the Rotor Card backend.\r
+ *\r
+ * The Rotor-EZ backend can be used with Yaesu rotators that support the\r
+ * extended DCU command set by Idiom Press Rotor Card board.\r
+ */\r
+/*! \def ROT_MODEL_DCU\r
+ * \brief A macro that returns the model number of the DCU backend.\r
+ *\r
+ * The Rotor-EZ backend can be used with rotators that support the\r
+ * DCU command set by Hy-Gain (currently the DCU-1).\r
+ */\r
+/*! \def ROT_MODEL_ERC\r
+ * \brief A macro that returns the model number of the ERC backend.\r
+ *\r
+ * The Rotor-EZ backend can be used with rotators that support the\r
+ * DCU command set by DF9GR (currently the ERC).\r
+ */\r
+#define ROT_ROTOREZ 4\r
+#define ROT_BACKEND_ROTOREZ "rotorez"\r
+#define ROT_MODEL_ROTOREZ ROT_MAKE_MODEL(ROT_ROTOREZ, 1)\r
+#define ROT_MODEL_ROTORCARD ROT_MAKE_MODEL(ROT_ROTOREZ, 2)\r
+#define ROT_MODEL_DCU ROT_MAKE_MODEL(ROT_ROTOREZ, 3)\r
+#define ROT_MODEL_ERC ROT_MAKE_MODEL(ROT_ROTOREZ, 4)\r
+\r
+/*! \def ROT_MODEL_SARTEK1\r
+ * \brief A macro that returns the model number of the SARtek-1 backend.\r
+ *\r
+ * The sartek backend can be used with rotators that support the\r
+ * SARtek protocol.\r
+ */\r
+#define ROT_SARTEK 5\r
+#define ROT_BACKEND_SARTEK "sartek"\r
+#define ROT_MODEL_SARTEK1 ROT_MAKE_MODEL(ROT_SARTEK, 1)\r
+\r
+/*! \def ROT_MODEL_GS232A\r
+ * \brief A macro that returns the model number of the GS-232A backend.\r
+ *\r
+ * The GS-232A backend can be used with rotators that support the\r
+ * GS-232A protocol.\r
+ */\r
+/*! \def ROT_MODEL_GS232\r
+ * \brief A macro that returns the model number of the GS-232 backend.\r
+ *\r
+ * The GS-232 backend can be used with rotators that support the\r
+ * GS-232 protocol.\r
+ */\r
+/*! \def ROT_MODEL_GS232B\r
+ * \brief A macro that returns the model number of the GS-232B backend.\r
+ *\r
+ * The GS-232B backend can be used with rotators that support the\r
+ * GS-232B protocol.\r
+ */\r
+/*! \def ROT_MODEL_F1TETRACKER\r
+ * \brief A macro that returns the model number of the F1TETRACKER backend.\r
+ *\r
+ * The F1TETRACKER backend can be used with rotators that support the\r
+ * F1TETRACKER protocol.\r
+ */\r
+#define ROT_GS232A 6\r
+#define ROT_BACKEND_GS232A "gs232a"\r
+#define ROT_MODEL_GS232A ROT_MAKE_MODEL(ROT_GS232A, 1)\r
+#define ROT_MODEL_GS232 ROT_MAKE_MODEL(ROT_GS232A, 2) /* Not A or B */\r
+#define ROT_MODEL_GS232B ROT_MAKE_MODEL(ROT_GS232A, 3)\r
+#define ROT_MODEL_F1TETRACKER ROT_MAKE_MODEL(ROT_GS232A, 4)\r
+\r
+/*! \def ROT_MODEL_PCROTOR\r
+ * \brief A macro that returns the model number of the PcRotor/WA6UFQ backend.\r
+ *\r
+ * The kit backend can be used with home brewed rotators.\r
+ */\r
+#define ROT_KIT 7\r
+#define ROT_BACKEND_KIT "kit"\r
+#define ROT_MODEL_PCROTOR ROT_MAKE_MODEL(ROT_KIT, 1)\r
+\r
+/*! \def ROT_MODEL_HD1780\r
+ * \brief A macro that returns the model number of the HD 1780 backend.\r
+ */\r
+#define ROT_HEATHKIT 8\r
+#define ROT_BACKEND_HEATHKIT "heathkit"\r
+#define ROT_MODEL_HD1780 ROT_MAKE_MODEL(ROT_HEATHKIT, 1)\r
+\r
+/*! \def ROT_MODEL_SPID_ROT2PROG\r
+ * \brief A macro that returns the model number of the ROT2PROG backend.\r
+ *\r
+ * The SPID backend can be used with rotators that support the SPID\r
+ * protocol.\r
+ */\r
+/*! \def ROT_MODEL_SPID_ROT1PROG\r
+ * \brief A macro that returns the model number of the ROT1PROG backend.\r
+ *\r
+ * The SPID backend can be used with rotators that support the SPID\r
+ * protocol.\r
+ */\r
+#define ROT_SPID 9\r
+#define ROT_BACKEND_SPID "spid"\r
+#define ROT_MODEL_SPID_ROT2PROG ROT_MAKE_MODEL(ROT_SPID, 1)\r
+#define ROT_MODEL_SPID_ROT1PROG ROT_MAKE_MODEL(ROT_SPID, 2)\r
+\r
+/*! \def ROT_MODEL_RC2800\r
+ * \brief A macro that returns the model number of the RC2800 backend.\r
+ *\r
+ * The M2 backend can be used with rotators that support the RC2800\r
+ * protocol and alike.\r
+ */\r
+#define ROT_M2 10\r
+#define ROT_BACKEND_M2 "m2"\r
+#define ROT_MODEL_RC2800 ROT_MAKE_MODEL(ROT_M2, 1)\r
+\r
+/*! \def ROT_MODEL_RCI_AZEL\r
+ * \brief A macro that returns the model number of the RCI_AZEL backend.\r
+ *\r
+ * The ARS backend can be used with rotators that support the ARS\r
+ * protocol.\r
+ */\r
+/*! \def ROT_MODEL_RCI_AZ\r
+ * \brief A macro that returns the model number of the RCI_AZ backend.\r
+ *\r
+ * The ARS backend can be used with rotators that support the ARS\r
+ * protocol.\r
+ */\r
+#define ROT_ARS 11\r
+#define ROT_BACKEND_ARS "ars"\r
+#define ROT_MODEL_RCI_AZEL ROT_MAKE_MODEL(ROT_ARS, 1)\r
+#define ROT_MODEL_RCI_AZ ROT_MAKE_MODEL(ROT_ARS, 2)\r
+\r
+/*! \def ROT_MODEL_IF100\r
+ * \brief A macro that returns the model number of the IF-100 backend.\r
+ *\r
+ * The AMSAT backend can be used with rotators that support,\r
+ * among other, the IF-100 interface.\r
+ */\r
+#define ROT_AMSAT 12\r
+#define ROT_BACKEND_AMSAT "amsat"\r
+#define ROT_MODEL_IF100 ROT_MAKE_MODEL(ROT_AMSAT, 1)\r
+\r
+\r
+/*! \def ROT_MODEL_TS7400\r
+ * \brief A macro that returns the model number of the TS7400 backend.\r
+ *\r
+ * The TS-7400 backend supports and embedded ARM board using the TS-7400\r
+ * Linux board. More information is at http://www.embeddedarm.com\r
+ */\r
+#define ROT_TS7400 13\r
+#define ROT_BACKEND_TS7400 "ts7400"\r
+#define ROT_MODEL_TS7400 ROT_MAKE_MODEL(ROT_TS7400, 1)\r
+\r
+/*! \def ROT_MODEL_NEXSTAR\r
+ * \brief A macro that returns the model number of the NEXSTAR backend.\r
+ *\r
+ * The CELESTRON backend can be used with rotators that support the Celestron\r
+ * protocol and alike.\r
+ */\r
+#define ROT_CELESTRON 14\r
+#define ROT_BACKEND_CELESTRON "celestron"\r
+#define ROT_MODEL_NEXSTAR ROT_MAKE_MODEL(ROT_CELESTRON, 1)\r
+\r
+\r
+/*! \typedef typedef int rot_model_t\r
+ \brief Convenience type definition for rotator model.\r
+*/\r
+typedef int rot_model_t;\r
+\r
+/*! \def ROT_BACKEND_LIST\r
+ * \brief Static list of rotator models.\r
+ *\r
+ * This is a NULL terminated list of available rotator backends. Each entry\r
+ * in the list consists of two fields: The branch number, which is an integer,\r
+ * and the branch name, which is a character string.\r
+ */\r
+#define ROT_BACKEND_LIST { \\r
+ { ROT_DUMMY, ROT_BACKEND_DUMMY }, \\r
+ /* { ROT_RPC, ROT_BACKEND_RPC }, */ \\r
+ { ROT_EASYCOMM, ROT_BACKEND_EASYCOMM }, \\r
+ { ROT_FODTRACK, ROT_BACKEND_FODTRACK }, \\r
+ { ROT_ROTOREZ, ROT_BACKEND_ROTOREZ }, \\r
+ { ROT_SARTEK, ROT_BACKEND_SARTEK }, \\r
+ { ROT_GS232A, ROT_BACKEND_GS232A }, \\r
+ { ROT_KIT, ROT_BACKEND_KIT }, \\r
+ { ROT_HEATHKIT, ROT_BACKEND_HEATHKIT }, \\r
+ { ROT_SPID, ROT_BACKEND_SPID }, \\r
+ { ROT_M2, ROT_BACKEND_M2 }, \\r
+ { ROT_ARS, ROT_BACKEND_ARS }, \\r
+ { ROT_AMSAT, ROT_BACKEND_AMSAT }, \\r
+ { ROT_TS7400, ROT_BACKEND_TS7400 }, \\r
+ { ROT_CELESTRON, ROT_BACKEND_CELESTRON }, \\r
+ { 0, NULL }, /* end */ \\r
+}\r
+\r
+/*\r
+ * struct rot_backend_list {\r
+ * rot_model_t model;\r
+ * const char *backend;\r
+ * } rot_backend_list[] = ROT_LIST;\r
+ *\r
+ */\r
+\r
+#endif /* _ROTLIST_H */\r
+\r
+/** @} */\r
--- /dev/null
+EXPORTS\r
+ azimuth_long_path @1\r
+ dec2dmmm @2\r
+ dec2dms @3\r
+ distance_long_path @4\r
+ dmmm2dec @5\r
+ dms2dec @6\r
+ from_bcd @7\r
+ from_bcd_be @8\r
+ hamlib_copyright @9 DATA\r
+ hamlib_version @10 DATA\r
+ loadlibrary_LTX_get_vtable @11\r
+ locator2longlat @12\r
+ longlat2locator @13\r
+ lt__alloc_die @14 DATA\r
+ lt__alloc_die_callback @15\r
+ lt__argz_append @16\r
+ lt__argz_create_sep @17\r
+ lt__argz_insert @18\r
+ lt__argz_next @19\r
+ lt__argz_stringify @20\r
+ lt__error_string @21\r
+ lt__get_last_error @22\r
+ lt__malloc @23\r
+ lt__memdup @24\r
+ lt__realloc @25\r
+ lt__set_last_error @26\r
+ lt__slist_box @27\r
+ lt__slist_concat @28\r
+ lt__slist_cons @29\r
+ lt__slist_delete @30\r
+ lt__slist_find @31\r
+ lt__slist_foreach @32\r
+ lt__slist_length @33\r
+ lt__slist_nth @34\r
+ lt__slist_remove @35\r
+ lt__slist_reverse @36\r
+ lt__slist_sort @37\r
+ lt__slist_tail @38\r
+ lt__slist_unbox @39\r
+ lt__strdup @40\r
+ lt__zalloc @41\r
+ lt_dladderror @42\r
+ lt_dladdsearchdir @43\r
+ lt_dladvise_destroy @44\r
+ lt_dladvise_ext @45\r
+ lt_dladvise_global @46\r
+ lt_dladvise_init @47\r
+ lt_dladvise_local @48\r
+ lt_dladvise_preload @49\r
+ lt_dladvise_resident @50\r
+ lt_dlcaller_get_data @51\r
+ lt_dlcaller_set_data @52\r
+ lt_dlclose @53\r
+ lt_dlerror @54\r
+ lt_dlexit @55\r
+ lt_dlforeachfile @56\r
+ lt_dlgetinfo @57\r
+ lt_dlgetsearchpath @58\r
+ lt_dlhandle_fetch @59\r
+ lt_dlhandle_iterate @60\r
+ lt_dlhandle_map @61\r
+ lt_dlinit @62\r
+ lt_dlinsertsearchdir @63\r
+ lt_dlinterface_free @64\r
+ lt_dlinterface_register @65\r
+ lt_dlisresident @66\r
+ lt_dlloader_add @67\r
+ lt_dlloader_find @68\r
+ lt_dlloader_get @69\r
+ lt_dlloader_next @70\r
+ lt_dlloader_remove @71\r
+ lt_dlmakeresident @72\r
+ lt_dlopen @73\r
+ lt_dlopenadvise @74\r
+ lt_dlopenext @75\r
+ lt_dlpreload @76\r
+ lt_dlpreload_default @77\r
+ lt_dlpreload_open @78\r
+ lt_dlseterror @79\r
+ lt_dlsetsearchpath @80\r
+ lt_dlsym @81\r
+ lt_strlcat @82\r
+ lt_strlcpy @83\r
+ par_lock @84\r
+ par_read_control @85\r
+ par_read_data @86\r
+ par_read_status @87\r
+ par_unlock @88\r
+ par_write_control @89\r
+ par_write_data @90\r
+ port_close @91\r
+ port_open @92\r
+ preopen_LTX_get_vtable @93\r
+ qrb @94\r
+ read_block @95\r
+ read_string @96\r
+ rig_check_backend @97\r
+ rig_check_cache_timeout @98\r
+ rig_cleanup @99\r
+ rig_close @100\r
+ rig_confparam_lookup @101\r
+ rig_debug @102\r
+ rig_ext_level_foreach @103\r
+ rig_ext_lookup @104\r
+ rig_ext_lookup_tok @105\r
+ rig_ext_parm_foreach @106\r
+ rig_ext_token_lookup @107\r
+ rig_force_cache_timeout @108\r
+ rig_get_ant @109\r
+ rig_get_caps @110\r
+ rig_get_chan_all @111\r
+ rig_get_chan_all_cb @112\r
+ rig_get_channel @113\r
+ rig_get_conf @114\r
+ rig_get_ctcss_sql @115\r
+ rig_get_ctcss_tone @116\r
+ rig_get_dcd @117\r
+ rig_get_dcs_code @118\r
+ rig_get_dcs_sql @119\r
+ rig_get_ext_level @120\r
+ rig_get_ext_parm @121\r
+ rig_get_freq @122\r
+ rig_get_func @123\r
+ rig_get_info @124\r
+ rig_get_level @125\r
+ rig_get_mem @126\r
+ rig_get_mem_all @127\r
+ rig_get_mem_all_cb @128\r
+ rig_get_mode @129\r
+ rig_get_parm @130\r
+ rig_get_powerstat @131\r
+ rig_get_ptt @132\r
+ rig_get_range @133\r
+ rig_get_resolution @134\r
+ rig_get_rit @135\r
+ rig_get_rptr_offs @136\r
+ rig_get_rptr_shift @137\r
+ rig_get_split_freq @138\r
+ rig_get_split_mode @139\r
+ rig_get_split_vfo @140\r
+ rig_get_trn @141\r
+ rig_get_ts @142\r
+ rig_get_vfo @143\r
+ rig_get_xit @144\r
+ rig_has_get_func @145\r
+ rig_has_get_level @146\r
+ rig_has_get_parm @147\r
+ rig_has_scan @148\r
+ rig_has_set_func @149\r
+ rig_has_set_level @150\r
+ rig_has_set_parm @151\r
+ rig_has_vfo_op @152\r
+ rig_init @153\r
+ rig_list_foreach @154\r
+ rig_load_all_backends @155\r
+ rig_load_backend @156\r
+ rig_lookup_mem_caps @157\r
+ rig_mW2power @158\r
+ rig_mem_count @159\r
+ rig_need_debug @160\r
+ rig_open @161\r
+ rig_parse_func @162\r
+ rig_parse_level @163\r
+ rig_parse_mode @164\r
+ rig_parse_mtype @165\r
+ rig_parse_parm @166\r
+ rig_parse_rptr_shift @167\r
+ rig_parse_scan @168\r
+ rig_parse_vfo @169\r
+ rig_parse_vfo_op @170\r
+ rig_passband_narrow @171\r
+ rig_passband_normal @172\r
+ rig_passband_wide @173\r
+ rig_power2mW @174\r
+ rig_probe @175\r
+ rig_probe_all @176\r
+ rig_raw2val @177\r
+ rig_recv_dtmf @178\r
+ rig_register @179\r
+ rig_reset @180\r
+ rig_scan @181\r
+ rig_send_dtmf @182\r
+ rig_send_morse @183\r
+ rig_set_ant @184\r
+ rig_set_bank @185\r
+ rig_set_chan_all @186\r
+ rig_set_chan_all_cb @187\r
+ rig_set_channel @188\r
+ rig_set_conf @189\r
+ rig_set_ctcss_sql @190\r
+ rig_set_ctcss_tone @191\r
+ rig_set_dcd_callback @192\r
+ rig_set_dcs_code @193\r
+ rig_set_dcs_sql @194\r
+ rig_set_debug @195\r
+ rig_set_debug_callback @196\r
+ rig_set_debug_file @197\r
+ rig_set_ext_level @198\r
+ rig_set_ext_parm @199\r
+ rig_set_freq @200\r
+ rig_set_freq_callback @201\r
+ rig_set_func @202\r
+ rig_set_level @203\r
+ rig_set_mem @204\r
+ rig_set_mem_all @205\r
+ rig_set_mem_all_cb @206\r
+ rig_set_mode @207\r
+ rig_set_mode_callback @208\r
+ rig_set_parm @209\r
+ rig_set_pltune_callback @210\r
+ rig_set_powerstat @211\r
+ rig_set_ptt @212\r
+ rig_set_ptt_callback @213\r
+ rig_set_rit @214\r
+ rig_set_rptr_offs @215\r
+ rig_set_rptr_shift @216\r
+ rig_set_split_freq @217\r
+ rig_set_split_mode @218\r
+ rig_set_split_vfo @219\r
+ rig_set_trn @220\r
+ rig_set_ts @221\r
+ rig_set_vfo @222\r
+ rig_set_vfo_callback @223\r
+ rig_set_xit @224\r
+ rig_setting2idx @225\r
+ rig_strfunc @226\r
+ rig_strlevel @227\r
+ rig_strmtype @228\r
+ rig_strparm @229\r
+ rig_strptrshift @230\r
+ rig_strrmode @231\r
+ rig_strscan @232\r
+ rig_strstatus @233\r
+ rig_strvfo @234\r
+ rig_strvfop @235\r
+ rig_token_foreach @236\r
+ rig_token_lookup @237\r
+ rig_unregister @238\r
+ rig_vfo_op @239\r
+ rigerror @240\r
+ rot_check_backend @241\r
+ rot_cleanup @242\r
+ rot_close @243\r
+ rot_confparam_lookup @244\r
+ rot_get_caps @245\r
+ rot_get_conf @246\r
+ rot_get_info @247\r
+ rot_get_position @248\r
+ rot_init @249\r
+ rot_list_foreach @250\r
+ rot_load_all_backends @251\r
+ rot_load_backend @252\r
+ rot_move @253\r
+ rot_open @254\r
+ rot_park @255\r
+ rot_probe_all @256\r
+ rot_register @257\r
+ rot_reset @258\r
+ rot_set_conf @259\r
+ rot_set_position @260\r
+ rot_stop @261\r
+ rot_token_foreach @262\r
+ rot_token_lookup @263\r
+ rot_unregister @264\r
+ ser_get_car @265\r
+ ser_get_cts @266\r
+ ser_get_dsr @267\r
+ ser_get_dtr @268\r
+ ser_get_rts @269\r
+ ser_set_brk @270\r
+ ser_set_dtr @271\r
+ ser_set_rts @272\r
+ serial_flush @273\r
+ serial_open @274\r
+ serial_setup @275\r
+ sprintf_freq @276\r
+ to_bcd @277\r
+ to_bcd_be @278\r
+ write_block @279\r
--- /dev/null
+#include <wx/init.h>\r
+#include <wx/string.h>\r
+\r
+#include "hamlib/rig.h"\r
+\r
+int main( int argc, char** argv )\r
+{\r
+ // initialize wxWidgets\r
+ wxInitializer init;\r
+ wxPrintf( wxT("Hello in wxWidgets World!\n\n") );\r
+ rig_model_t rigModel = RIG_MODEL_DUMMY;\r
+ rig_init(rigModel);\r
+ return 0;\r
+}\r
--- /dev/null
+##\r
+## Auto Generated makefile by CodeLite IDE\r
+## any manual changes will be erased \r
+##\r
+## Release\r
+ProjectName :=test_hamlib\r
+ConfigurationName :=Release\r
+IntermediateDirectory :=./Release\r
+OutDir := $(IntermediateDirectory)\r
+WorkspacePath := "C:\Users\wittend\Projects\dvui"\r
+ProjectPath := "C:\Users\wittend\Projects\dvui\hamlib-3.0\test_hamlib"\r
+CurrentFileName :=\r
+CurrentFilePath :=\r
+CurrentFileFullPath :=\r
+User :=wittend\r
+Date :=5/13/2012\r
+CodeLitePath :="C:\Program Files\CodeLite"\r
+LinkerName :=g++\r
+ArchiveTool :=ar rcus\r
+SharedObjectLinkerName :=g++ -shared -fPIC\r
+ObjectSuffix :=.o\r
+DependSuffix :=.o.d\r
+PreprocessSuffix :=.o.i\r
+DebugSwitch :=-gstab\r
+IncludeSwitch :=-I\r
+LibrarySwitch :=-l\r
+OutputSwitch :=-o \r
+LibraryPathSwitch :=-L\r
+PreprocessorSwitch :=-D\r
+SourceSwitch :=-c \r
+CompilerName :=g++\r
+C_CompilerName :=gcc\r
+OutputFile :=$(IntermediateDirectory)/$(ProjectName)\r
+Preprocessors :=\r
+ObjectSwitch :=-o \r
+ArchiveOutputSwitch := \r
+PreprocessOnlySwitch :=-E \r
+ObjectsFileList :="C:\Users\wittend\Projects\dvui\hamlib-3.0\test_hamlib\test_hamlib.txt"\r
+PCHCompileFlags :=\r
+MakeDirCommand :=makedir\r
+CmpOptions := -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no) $(Preprocessors)\r
+C_CmpOptions := -O2 -Wall $(shell wx-config --cxxflags --unicode=yes --debug=no) $(Preprocessors)\r
+LinkOptions := -s $(shell wx-config --debug=no --libs --unicode=yes)\r
+IncludePath := $(IncludeSwitch). $(IncludeSwitch)../include/ \r
+IncludePCH := \r
+RcIncludePath := \r
+Libs := $(LibrarySwitch)hamlib.dll \r
+LibPath := $(LibraryPathSwitch). $(LibraryPathSwitch)../lib/gcc/ \r
+\r
+\r
+##\r
+## User defined environment variables\r
+##\r
+CodeLiteDir:=C:\Program Files\CodeLite\r
+WXWIN:=C:\bin\wxWidgets-2.9.2\r
+PATH:=$(WXWIN)\lib\gcc_dll;$(PATH)\r
+WXCFG:=gcc_dll\mswu\r
+UNIT_TEST_PP_SRC_DIR:=C:\bin\UnitTest++-1.3\r
+Objects=$(IntermediateDirectory)/main$(ObjectSuffix) \r
+\r
+##\r
+## Main Build Targets \r
+##\r
+.PHONY: all clean PreBuild PrePreBuild PostBuild\r
+all: $(OutputFile)\r
+\r
+$(OutputFile): $(IntermediateDirectory)/.d $(Objects) \r
+ @$(MakeDirCommand) $(@D)\r
+ @echo "" > $(IntermediateDirectory)/.d\r
+ @echo $(Objects) > $(ObjectsFileList)\r
+ $(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)\r
+\r
+$(IntermediateDirectory)/.d:\r
+ @$(MakeDirCommand) "./Release"\r
+\r
+PreBuild:\r
+\r
+\r
+##\r
+## Objects\r
+##\r
+$(IntermediateDirectory)/main$(ObjectSuffix): main.cpp $(IntermediateDirectory)/main$(DependSuffix)\r
+ $(CompilerName) $(IncludePCH) $(SourceSwitch) "C:/Users/wittend/Projects/dvui/hamlib-3.0/test_hamlib/main.cpp" $(CmpOptions) $(ObjectSwitch)$(IntermediateDirectory)/main$(ObjectSuffix) $(IncludePath)\r
+$(IntermediateDirectory)/main$(DependSuffix): main.cpp\r
+ @$(CompilerName) $(CmpOptions) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/main$(ObjectSuffix) -MF$(IntermediateDirectory)/main$(DependSuffix) -MM "C:/Users/wittend/Projects/dvui/hamlib-3.0/test_hamlib/main.cpp"\r
+\r
+$(IntermediateDirectory)/main$(PreprocessSuffix): main.cpp\r
+ @$(CompilerName) $(CmpOptions) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/main$(PreprocessSuffix) "C:/Users/wittend/Projects/dvui/hamlib-3.0/test_hamlib/main.cpp"\r
+\r
+\r
+-include $(IntermediateDirectory)/*$(DependSuffix)\r
+##\r
+## Clean\r
+##\r
+clean:\r
+ $(RM) $(IntermediateDirectory)/main$(ObjectSuffix)\r
+ $(RM) $(IntermediateDirectory)/main$(DependSuffix)\r
+ $(RM) $(IntermediateDirectory)/main$(PreprocessSuffix)\r
+ $(RM) $(OutputFile)\r
+ $(RM) $(OutputFile).exe\r
+ $(RM) "C:\Users\wittend\Projects\dvui\.build-release\test_hamlib"\r
+\r
+\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<CodeLite_Project Name="test_hamlib" InternalType="Console">
+ <Plugins>
+ <Plugin Name="qmake">
+ <![CDATA[00020001N0005Debug0000000000000001N0007Release000000000000]]>
+ </Plugin>
+ </Plugins>
+ <Description/>
+ <Dependencies/>
+ <VirtualDirectory Name="src">
+ <File Name="main.cpp"/>
+ <File Name="../include/hamlib/rig.h"/>
+ <File Name="../include/hamlib/rig_dll.h"/>
+ <File Name="../include/hamlib/riglist.h"/>
+ </VirtualDirectory>
+ <Settings Type="Executable">
+ <GlobalSettings>
+ <Compiler Options="" C_Options="">
+ <IncludePath Value="."/>
+ </Compiler>
+ <Linker Options="">
+ <LibraryPath Value="."/>
+ </Linker>
+ <ResourceCompiler Options=""/>
+ </GlobalSettings>
+ <Configuration Name="Debug" CompilerType="gnu g++" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
+ <Compiler Options="-g;-O0;-Wall;$(shell wx-config --cxxflags --unicode=yes --debug=yes)" C_Options="-g;-O0;-Wall;$(shell wx-config --cxxflags --unicode=yes --debug=yes)" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" UseDifferentPCHFlags="no" PCHFlags="">
+ <IncludePath Value="../include/"/>
+ </Compiler>
+ <Linker Options="$(shell wx-config --debug=yes --libs --unicode=yes)" Required="yes">
+ <LibraryPath Value="../lib/gcc/"/>
+ <Library Value="libhamlib.dll.a"/>
+ </Linker>
+ <ResourceCompiler Options="$(shell wx-config --rcflags)" Required="no"/>
+ <General OutputFile="$(IntermediateDirectory)/$(ProjectName)" IntermediateDirectory="./Debug" Command="./$(ProjectName)" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes"/>
+ <Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>">
+ <![CDATA[]]>
+ </Environment>
+ <Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="">
+ <PostConnectCommands/>
+ <StartupCommands/>
+ </Debugger>
+ <PreBuild/>
+ <PostBuild/>
+ <CustomBuild Enabled="no">
+ <RebuildCommand/>
+ <CleanCommand/>
+ <BuildCommand/>
+ <PreprocessFileCommand/>
+ <SingleFileCommand/>
+ <MakefileGenerationCommand/>
+ <ThirdPartyToolName>None</ThirdPartyToolName>
+ <WorkingDirectory/>
+ </CustomBuild>
+ <AdditionalRules>
+ <CustomPostBuild/>
+ <CustomPreBuild/>
+ </AdditionalRules>
+ <Completion>
+ <ClangCmpFlags/>
+ <ClangPP/>
+ <SearchPaths/>
+ </Completion>
+ </Configuration>
+ <Configuration Name="Release" CompilerType="gnu g++" DebuggerType="GNU gdb debugger" Type="Executable" BuildCmpWithGlobalSettings="append" BuildLnkWithGlobalSettings="append" BuildResWithGlobalSettings="append">
+ <Compiler Options="-O2;-Wall;$(shell wx-config --cxxflags --unicode=yes --debug=no)" C_Options="-O2;-Wall;$(shell wx-config --cxxflags --unicode=yes --debug=no)" Required="yes" PreCompiledHeader="" PCHInCommandLine="no" UseDifferentPCHFlags="no" PCHFlags="">
+ <IncludePath Value="../include/"/>
+ </Compiler>
+ <Linker Options="-s;$(shell wx-config --debug=no --libs --unicode=yes)" Required="yes">
+ <LibraryPath Value="../lib/gcc/"/>
+ <Library Value="libhamlib.dll.a"/>
+ </Linker>
+ <ResourceCompiler Options="$(shell wx-config --rcflags)" Required="no"/>
+ <General OutputFile="$(IntermediateDirectory)/$(ProjectName)" IntermediateDirectory="./Release" Command="./$(ProjectName)" CommandArguments="" UseSeparateDebugArgs="no" DebugArguments="" WorkingDirectory="$(IntermediateDirectory)" PauseExecWhenProcTerminates="yes"/>
+ <Environment EnvVarSetName="<Use Defaults>" DbgSetName="<Use Defaults>">
+ <![CDATA[]]>
+ </Environment>
+ <Debugger IsRemote="no" RemoteHostName="" RemoteHostPort="" DebuggerPath="">
+ <PostConnectCommands/>
+ <StartupCommands/>
+ </Debugger>
+ <PreBuild/>
+ <PostBuild/>
+ <CustomBuild Enabled="no">
+ <RebuildCommand/>
+ <CleanCommand/>
+ <BuildCommand/>
+ <PreprocessFileCommand/>
+ <SingleFileCommand/>
+ <MakefileGenerationCommand/>
+ <ThirdPartyToolName>None</ThirdPartyToolName>
+ <WorkingDirectory/>
+ </CustomBuild>
+ <AdditionalRules>
+ <CustomPostBuild/>
+ <CustomPreBuild/>
+ </AdditionalRules>
+ <Completion>
+ <ClangCmpFlags/>
+ <ClangPP/>
+ <SearchPaths/>
+ </Completion>
+ </Configuration>
+ </Settings>
+ <Dependencies Name="Debug"/>
+ <Dependencies Name="Release"/>
+</CodeLite_Project>
--- /dev/null
+./Release/main.o \r