Hamlib  1.2.14
token.h
Go to the documentation of this file.
00001 /*
00002  *  Hamlib Interface - token header
00003  *  Copyright (c) 2000-2009 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 #define TOK_PTT_TYPE    TOKEN_FRONTEND(30)
00083 
00084 #define TOK_PTT_PATHNAME        TOKEN_FRONTEND(31)
00085 
00086 #define TOK_DCD_TYPE    TOKEN_FRONTEND(32)
00087 
00088 #define TOK_DCD_PATHNAME        TOKEN_FRONTEND(33)
00089 
00090 /*
00091  * rig specific tokens
00092  */
00093 /* rx_range_list/tx_range_list, filters, announces, has(func,lvl,..) */
00094 
00096 #define TOK_VFO_COMP    TOKEN_FRONTEND(110)
00097 
00098 #define TOK_POLL_INTERVAL       TOKEN_FRONTEND(111)
00099 
00100 #define TOK_ITU_REGION  TOKEN_FRONTEND(120)
00101 /*
00102  * rotator specific tokens
00103  * (strictly, should be documented as rotator_internal)
00104  */
00106 #define TOK_MIN_AZ      TOKEN_FRONTEND(110)
00107 
00108 #define TOK_MAX_AZ      TOKEN_FRONTEND(111)
00109 
00110 #define TOK_MIN_EL      TOKEN_FRONTEND(112)
00111 
00112 #define TOK_MAX_EL      TOKEN_FRONTEND(113)
00113 
00114 
00115 #endif /* _TOKEN_H */
00116  /* rig_internal definitions */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by doxygen 1.7.5

Hamlib documentation for version 1.2.14 -- Fri Dec 23 2011 23:24:31
Project page: http://www.hamlib.org