00001 /* 00002 * Hamlib Interface - list of known rotators 00003 * Copyright (c) 2000-2002 by Stephane Fillod and Frank Singleton 00004 * 00005 * $Id: rotlist.h,v 1.10 2006/10/15 00:26:47 aa6e Exp $ 00006 * 00007 * This library is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU Library General Public License as 00009 * published by the Free Software Foundation; either version 2 of 00010 * the License, or (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public 00018 * License along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 * 00021 */ 00022 00023 #ifndef _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 00063 /* 00064 * RPC Network pseudo-backend 00065 */ 00073 #define ROT_RPC 1 00074 #define ROT_BACKEND_RPC "rpcrot" 00075 #define ROT_MODEL_RPC ROT_MAKE_MODEL(ROT_RPC, 1) 00076 00077 /* 00078 * Easycomm 00079 */ 00092 #define ROT_EASYCOMM 2 00093 #define ROT_BACKEND_EASYCOMM "easycomm" 00094 #define ROT_MODEL_EASYCOMM1 ROT_MAKE_MODEL(ROT_EASYCOMM, 1) 00095 #define ROT_MODEL_EASYCOMM2 ROT_MAKE_MODEL(ROT_EASYCOMM, 2) 00096 00103 #define ROT_FODTRACK 3 00104 #define ROT_BACKEND_FODTRACK "fodtrack" 00105 #define ROT_MODEL_FODTRACK ROT_MAKE_MODEL(ROT_FODTRACK, 1) 00106 00125 #define ROT_ROTOREZ 4 00126 #define ROT_BACKEND_ROTOREZ "rotorez" 00127 #define ROT_MODEL_ROTOREZ ROT_MAKE_MODEL(ROT_ROTOREZ, 1) 00128 #define ROT_MODEL_ROTORCARD ROT_MAKE_MODEL(ROT_ROTOREZ, 2) 00129 #define ROT_MODEL_DCU ROT_MAKE_MODEL(ROT_ROTOREZ, 3) 00130 00137 #define ROT_SARTEK 5 00138 #define ROT_BACKEND_SARTEK "sartek" 00139 #define ROT_MODEL_SARTEK1 ROT_MAKE_MODEL(ROT_SARTEK, 1) 00140 00144 typedef int rot_model_t; 00145 00153 #define ROT_BACKEND_LIST { \ 00154 { ROT_DUMMY, ROT_BACKEND_DUMMY }, \ 00155 { ROT_RPC, ROT_BACKEND_RPC }, \ 00156 { ROT_EASYCOMM, ROT_BACKEND_EASYCOMM }, \ 00157 { ROT_FODTRACK, ROT_BACKEND_FODTRACK }, \ 00158 { ROT_ROTOREZ, ROT_BACKEND_ROTOREZ }, \ 00159 { ROT_SARTEK, ROT_BACKEND_SARTEK }, \ 00160 { 0, NULL }, /* end */ \ 00161 } 00162 00163 /* 00164 * struct rot_backend_list { 00165 * rot_model_t model; 00166 * const char *backend; 00167 * } rot_backend_list[] = ROT_LIST; 00168 * 00169 */ 00170 00171 #endif /* _ROTLIST_H */ 00172
Hamlib documentation for version 1.2.7 -- Tue Aug 26 21:43:29 2008
Project page: http://hamlib.org