Main Page | Data Structures | Directories | 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.9 2003/06/22 19:38:26 fillods 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 
00135 #define ROT_SARTEK 5
00136 #define ROT_BACKEND_SARTEK "sartek"
00137 #define ROT_MODEL_SARTEK1 ROT_MAKE_MODEL(ROT_SARTEK, 1)
00138 
00139 
00143 typedef int rot_model_t;
00144 
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 */

Generated on Sat Sep 30 15:49:37 2006 for Hamlib - the C library reference by  doxygen 1.4.4