Hamlib 1.2.12

rotlist.h

Go to the documentation of this file.
00001 /*
00002  *  Hamlib Interface - list of known rotators
00003  *  Copyright (c) 2000-2010 by Stephane Fillod
00004  *  Copyright (c) 2000-2002 by Frank Singleton
00005  *
00006  *
00007  *   This library is free software; you can redistribute it and/or modify
00008  *   it under the terms of the GNU Library General Public License as
00009  *   published by the Free Software Foundation; either version 2 of
00010  *   the License, or (at your option) any later version.
00011  *
00012  *   This program is distributed in the hope that it will be useful,
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *   GNU Library General Public License for more details.
00016  *
00017  *   You should have received a copy of the GNU Library General Public
00018  *   License along with this library; if not, write to the Free Software
00019  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020  *
00021  */
00022 
00023 #ifndef _ROTLIST_H
00024 #define _ROTLIST_H 1
00025 
00026 #define ROT_MAKE_MODEL(a,b) ((a)*100+(b))
00027 #define ROT_BACKEND_NUM(a) ((a)/100)
00028 
00049 #define ROT_MODEL_NONE 0
00050 
00059 #define ROT_DUMMY 0
00060 #define ROT_BACKEND_DUMMY "dummy"
00061 #define ROT_MODEL_DUMMY ROT_MAKE_MODEL(ROT_DUMMY, 1)
00062 #define ROT_MODEL_NETROTCTL ROT_MAKE_MODEL(ROT_DUMMY, 2)
00063 
00064         /*
00065          * RPC Network pseudo-backend
00066          */
00074 #define ROT_RPC 1
00075 #define ROT_BACKEND_RPC "rpcrot"
00076 #define ROT_MODEL_RPC ROT_MAKE_MODEL(ROT_RPC, 1)
00077 
00078         /*
00079          * Easycomm
00080          */
00093 #define ROT_EASYCOMM 2
00094 #define ROT_BACKEND_EASYCOMM "easycomm"
00095 #define ROT_MODEL_EASYCOMM1 ROT_MAKE_MODEL(ROT_EASYCOMM, 1)
00096 #define ROT_MODEL_EASYCOMM2 ROT_MAKE_MODEL(ROT_EASYCOMM, 2)
00097 
00104 #define ROT_FODTRACK 3
00105 #define ROT_BACKEND_FODTRACK "fodtrack"
00106 #define ROT_MODEL_FODTRACK ROT_MAKE_MODEL(ROT_FODTRACK, 1)
00107 
00132 #define ROT_ROTOREZ 4
00133 #define ROT_BACKEND_ROTOREZ "rotorez"
00134 #define ROT_MODEL_ROTOREZ ROT_MAKE_MODEL(ROT_ROTOREZ, 1)
00135 #define ROT_MODEL_ROTORCARD ROT_MAKE_MODEL(ROT_ROTOREZ, 2)
00136 #define ROT_MODEL_DCU ROT_MAKE_MODEL(ROT_ROTOREZ, 3)
00137 #define ROT_MODEL_ERC ROT_MAKE_MODEL(ROT_ROTOREZ, 4)
00138 
00145 #define ROT_SARTEK 5
00146 #define ROT_BACKEND_SARTEK "sartek"
00147 #define ROT_MODEL_SARTEK1 ROT_MAKE_MODEL(ROT_SARTEK, 1)
00148 
00155 #define ROT_GS232A 6
00156 #define ROT_BACKEND_GS232A "gs232a"
00157 #define ROT_MODEL_GS232A ROT_MAKE_MODEL(ROT_GS232A, 1)
00158 #define ROT_MODEL_GS232 ROT_MAKE_MODEL(ROT_GS232A, 2) /* Not A or B */
00159 #define ROT_MODEL_GS232B ROT_MAKE_MODEL(ROT_GS232A, 3)
00160 
00166 #define ROT_KIT 7
00167 #define ROT_BACKEND_KIT "kit"
00168 #define ROT_MODEL_PCROTOR ROT_MAKE_MODEL(ROT_KIT, 1)
00169 
00173 #define ROT_HEATHKIT 8
00174 #define ROT_BACKEND_HEATHKIT "heathkit"
00175 #define ROT_MODEL_HD1780 ROT_MAKE_MODEL(ROT_HEATHKIT, 1)
00176 
00183 #define ROT_SPID 9
00184 #define ROT_BACKEND_SPID "spid"
00185 #define ROT_MODEL_SPID ROT_MAKE_MODEL(ROT_SPID, 1)
00186 
00193 #define ROT_M2 10
00194 #define ROT_BACKEND_M2 "m2"
00195 #define ROT_MODEL_RC2800 ROT_MAKE_MODEL(ROT_M2, 1)
00196 
00203 #define ROT_ARS 11
00204 #define ROT_BACKEND_ARS "ars"
00205 #define ROT_MODEL_RCI_AZEL ROT_MAKE_MODEL(ROT_ARS, 1)
00206 #define ROT_MODEL_RCI_AZ ROT_MAKE_MODEL(ROT_ARS, 2)
00207 
00211 typedef int rot_model_t;
00212 
00220 #define ROT_BACKEND_LIST {              \
00221         { ROT_DUMMY, ROT_BACKEND_DUMMY }, \
00222         { ROT_RPC, ROT_BACKEND_RPC }, \
00223         { ROT_EASYCOMM, ROT_BACKEND_EASYCOMM }, \
00224         { ROT_FODTRACK, ROT_BACKEND_FODTRACK }, \
00225         { ROT_ROTOREZ, ROT_BACKEND_ROTOREZ }, \
00226         { ROT_SARTEK, ROT_BACKEND_SARTEK }, \
00227         { ROT_GS232A, ROT_BACKEND_GS232A }, \
00228         { ROT_KIT, ROT_BACKEND_KIT }, \
00229         { ROT_HEATHKIT, ROT_BACKEND_HEATHKIT }, \
00230         { ROT_SPID, ROT_BACKEND_SPID }, \
00231         { ROT_M2, ROT_BACKEND_M2 }, \
00232         { ROT_ARS, ROT_BACKEND_ARS }, \
00233         { 0, NULL }, /* end */  \
00234 }
00235 
00236 /*
00237  * struct rot_backend_list {
00238  *              rot_model_t model;
00239  *              const char *backend;
00240  * } rot_backend_list[] = ROT_LIST;
00241  *
00242  */
00243 
00244 #endif /* _ROTLIST_H */
00245 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Hamlib documentation for version 1.2.12 -- Sun Mar 20 2011 23:57:25
Project page: http://hamlib.org