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