00001 /* 00002 * Hamlib Interface - list of known rotators 00003 * Copyright (c) 2000-2008 by Stephane Fillod 00004 * Copyright (c) 2000-2002 by Stephane Fillod and Frank Singleton 00005 * 00006 * $Id: rotlist.h,v 1.14 2008/10/31 07:45:17 fillods Exp $ 00007 * 00008 * This library is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU Library General Public License as 00010 * published by the Free Software Foundation; either version 2 of 00011 * the License, or (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU Library General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Library General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00021 * 00022 */ 00023 00024 #ifndef _ROTLIST_H 00025 #define _ROTLIST_H 1 00026 00027 #define ROT_MAKE_MODEL(a,b) ((a)*100+(b)) 00028 #define ROT_BACKEND_NUM(a) ((a)/100) 00029 00050 #define ROT_MODEL_NONE 0 00051 00060 #define ROT_DUMMY 0 00061 #define ROT_BACKEND_DUMMY "dummy" 00062 #define ROT_MODEL_DUMMY ROT_MAKE_MODEL(ROT_DUMMY, 1) 00063 #define ROT_MODEL_NETROTCTL ROT_MAKE_MODEL(ROT_DUMMY, 2) 00064 00065 /* 00066 * RPC Network pseudo-backend 00067 */ 00075 #define ROT_RPC 1 00076 #define ROT_BACKEND_RPC "rpcrot" 00077 #define ROT_MODEL_RPC ROT_MAKE_MODEL(ROT_RPC, 1) 00078 00079 /* 00080 * Easycomm 00081 */ 00094 #define ROT_EASYCOMM 2 00095 #define ROT_BACKEND_EASYCOMM "easycomm" 00096 #define ROT_MODEL_EASYCOMM1 ROT_MAKE_MODEL(ROT_EASYCOMM, 1) 00097 #define ROT_MODEL_EASYCOMM2 ROT_MAKE_MODEL(ROT_EASYCOMM, 2) 00098 00105 #define ROT_FODTRACK 3 00106 #define ROT_BACKEND_FODTRACK "fodtrack" 00107 #define ROT_MODEL_FODTRACK ROT_MAKE_MODEL(ROT_FODTRACK, 1) 00108 00127 #define ROT_ROTOREZ 4 00128 #define ROT_BACKEND_ROTOREZ "rotorez" 00129 #define ROT_MODEL_ROTOREZ ROT_MAKE_MODEL(ROT_ROTOREZ, 1) 00130 #define ROT_MODEL_ROTORCARD ROT_MAKE_MODEL(ROT_ROTOREZ, 2) 00131 #define ROT_MODEL_DCU ROT_MAKE_MODEL(ROT_ROTOREZ, 3) 00132 00139 #define ROT_SARTEK 5 00140 #define ROT_BACKEND_SARTEK "sartek" 00141 #define ROT_MODEL_SARTEK1 ROT_MAKE_MODEL(ROT_SARTEK, 1) 00142 00149 #define ROT_GS232A 6 00150 #define ROT_BACKEND_GS232A "gs232a" 00151 #define ROT_MODEL_GS232A ROT_MAKE_MODEL(ROT_GS232A, 1) 00152 00158 #define ROT_KIT 7 00159 #define ROT_BACKEND_KIT "kit" 00160 #define ROT_MODEL_PCROTOR ROT_MAKE_MODEL(ROT_KIT, 1) 00161 00165 typedef int rot_model_t; 00166 00174 #define ROT_BACKEND_LIST { \ 00175 { ROT_DUMMY, ROT_BACKEND_DUMMY }, \ 00176 { ROT_RPC, ROT_BACKEND_RPC }, \ 00177 { ROT_EASYCOMM, ROT_BACKEND_EASYCOMM }, \ 00178 { ROT_FODTRACK, ROT_BACKEND_FODTRACK }, \ 00179 { ROT_ROTOREZ, ROT_BACKEND_ROTOREZ }, \ 00180 { ROT_SARTEK, ROT_BACKEND_SARTEK }, \ 00181 { ROT_GS232A, ROT_BACKEND_GS232A }, \ 00182 { ROT_KIT, ROT_BACKEND_KIT }, \ 00183 { 0, NULL }, /* end */ \ 00184 } 00185 00186 /* 00187 * struct rot_backend_list { 00188 * rot_model_t model; 00189 * const char *backend; 00190 * } rot_backend_list[] = ROT_LIST; 00191 * 00192 */ 00193 00194 #endif /* _ROTLIST_H */ 00195
Hamlib documentation for version 1.2.8 -- Mon Dec 15 18:03:30 2008
Project page: http://hamlib.org