Main Page   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

rotlist.h

Go to the documentation of this file.
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.8 2003/01/12 14:29:14 n0nb 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 
00046 #define ROT_MODEL_NONE 0
00047 
00056 #define ROT_DUMMY 0
00057 #define ROT_BACKEND_DUMMY "dummy"
00058 #define ROT_MODEL_DUMMY ROT_MAKE_MODEL(ROT_DUMMY, 1)
00059 
00060         /*
00061          * RPC Network pseudo-backend
00062          */
00070 #define ROT_RPC 1
00071 #define ROT_BACKEND_RPC "rpcrot"
00072 #define ROT_MODEL_RPC ROT_MAKE_MODEL(ROT_RPC, 1)
00073 
00074 
00075         /*
00076          * Easycomm
00077          */
00090 #define ROT_EASYCOMM 2
00091 #define ROT_BACKEND_EASYCOMM "easycomm"
00092 #define ROT_MODEL_EASYCOMM1 ROT_MAKE_MODEL(ROT_EASYCOMM, 1)
00093 #define ROT_MODEL_EASYCOMM2 ROT_MAKE_MODEL(ROT_EASYCOMM, 2)
00094 
00101 #define ROT_FODTRACK 3
00102 #define ROT_BACKEND_FODTRACK "fodtrack"
00103 #define ROT_MODEL_FODTRACK ROT_MAKE_MODEL(ROT_FODTRACK, 1)
00104 
00123 #define ROT_ROTOREZ 4
00124 #define ROT_BACKEND_ROTOREZ "rotorez"
00125 #define ROT_MODEL_ROTOREZ ROT_MAKE_MODEL(ROT_ROTOREZ, 1)
00126 #define ROT_MODEL_ROTORCARD ROT_MAKE_MODEL(ROT_ROTOREZ, 2)
00127 #define ROT_MODEL_DCU ROT_MAKE_MODEL(ROT_ROTOREZ, 3)
00128 
00132 typedef int rot_model_t;
00133 
00134 
00142 #define ROT_BACKEND_LIST {              \
00143         { ROT_DUMMY, ROT_BACKEND_DUMMY }, \
00144         { ROT_RPC, ROT_BACKEND_RPC }, \
00145         { ROT_EASYCOMM, ROT_BACKEND_EASYCOMM }, \
00146         { ROT_FODTRACK, ROT_BACKEND_FODTRACK }, \
00147         { ROT_ROTOREZ, ROT_BACKEND_ROTOREZ }, \
00148         { 0, NULL }, /* end */  \
00149 }
00150 
00151 /*
00152  * struct rot_backend_list {
00153  *              rot_model_t model;
00154  *              const char *backend;
00155  * } rot_backend_list[] = ROT_LIST;
00156  *
00157  */
00158 
00159 #endif /* _ROTLIST_H */

Generated on Mon May 26 17:46:56 2003 for Hamlib - the C library reference by doxygen1.3-rc3