00001 /* 00002 * Hamlib Interface - token header 00003 * Copyright (c) 2000-2003 by Stephane Fillod 00004 * 00005 * $Id: token.h,v 1.5 2006/10/28 03:49:46 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 00034 #ifndef _TOKEN_H 00035 00036 #define _TOKEN_H 1 00037 00038 #include <hamlib/rig.h> 00039 00041 #define TOKEN_BACKEND(t) (t) 00042 00043 #define TOKEN_FRONTEND(t) ((t)|(1<<30)) 00044 00045 #define IS_TOKEN_FRONTEND(t) ((t)&(1<<30)) 00046 00048 #define TOK_FRONTEND_NONE TOKEN_FRONTEND(0) 00049 00050 #define TOK_BACKEND_NONE TOKEN_BACKEND(0) 00051 00052 /* 00053 * tokens shared among rig and rotator, 00054 * Numbers go from TOKEN_FRONTEND(1) to TOKEN_FRONTEND(99) 00055 */ 00056 00058 #define TOK_PATHNAME TOKEN_FRONTEND(10) 00059 00060 #define TOK_WRITE_DELAY TOKEN_FRONTEND(12) 00061 00062 #define TOK_POST_WRITE_DELAY TOKEN_FRONTEND(13) 00063 00064 #define TOK_TIMEOUT TOKEN_FRONTEND(14) 00065 00066 #define TOK_RETRY TOKEN_FRONTEND(15) 00067 00068 #define TOK_SERIAL_SPEED TOKEN_FRONTEND(20) 00069 00070 #define TOK_DATA_BITS TOKEN_FRONTEND(21) 00071 00072 #define TOK_STOP_BITS TOKEN_FRONTEND(22) 00073 00074 #define TOK_PARITY TOKEN_FRONTEND(23) 00075 00076 #define TOK_HANDSHAKE TOKEN_FRONTEND(24) 00077 00078 #define TOK_RTS_STATE TOKEN_FRONTEND(25) 00079 00080 #define TOK_DTR_STATE TOKEN_FRONTEND(26) 00081 00082 /* 00083 * rig specific tokens 00084 */ 00085 /* rx_range_list/tx_range_list, filters, announces, has(func,lvl,..) */ 00086 00088 #define TOK_VFO_COMP TOKEN_FRONTEND(110) 00089 00090 #define TOK_POLL_INTERVAL TOKEN_FRONTEND(111) 00091 00092 #define TOK_ITU_REGION TOKEN_FRONTEND(120) 00093 /* 00094 * rotator specific tokens 00095 * (strictly, should be documented as rotator_internal) 00096 */ 00098 #define TOK_MIN_AZ TOKEN_FRONTEND(110) 00099 00100 #define TOK_MAX_AZ TOKEN_FRONTEND(111) 00101 00102 #define TOK_MIN_EL TOKEN_FRONTEND(112) 00103 00104 #define TOK_MAX_EL TOKEN_FRONTEND(113) 00105 00106 00107 #endif /* _TOKEN_H */ 00108 /* rig_internal definitions */
Hamlib documentation for version 1.2.8 -- Mon Dec 15 18:03:30 2008
Project page: http://hamlib.org