Hamlib  1.2.15
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  *
00006  *   This library is free software; you can redistribute it and/or
00007  *   modify it under the terms of the GNU Lesser General Public
00008  *   License as published by the Free Software Foundation; either
00009  *   version 2.1 of the License, or (at your option) any later version.
00010  *
00011  *   This library is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *   Lesser General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU Lesser General Public
00017  *   License along with this library; if not, write to the Free Software
00018  *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00019  *
00020  */
00021 
00033 #ifndef _TOKEN_H
00034 
00035 #define _TOKEN_H 1
00036 
00037 #include <hamlib/rig.h>
00038 
00040 #define TOKEN_BACKEND(t) (t)
00041 
00042 #define TOKEN_FRONTEND(t) ((t)|(1<<30))
00043 
00044 #define IS_TOKEN_FRONTEND(t) ((t)&(1<<30))
00045 
00047 #define TOK_FRONTEND_NONE       TOKEN_FRONTEND(0)
00048 
00049 #define TOK_BACKEND_NONE        TOKEN_BACKEND(0)
00050 
00051 /*
00052  * tokens shared among rig and rotator,
00053  * Numbers go from TOKEN_FRONTEND(1) to TOKEN_FRONTEND(99)
00054  */
00055 
00057 #define TOK_PATHNAME    TOKEN_FRONTEND(10)
00058 
00059 #define TOK_WRITE_DELAY TOKEN_FRONTEND(12)
00060 
00061 #define TOK_POST_WRITE_DELAY    TOKEN_FRONTEND(13)
00062 
00063 #define TOK_TIMEOUT             TOKEN_FRONTEND(14)
00064 
00065 #define TOK_RETRY               TOKEN_FRONTEND(15)
00066 
00067 #define TOK_SERIAL_SPEED        TOKEN_FRONTEND(20)
00068 
00069 #define TOK_DATA_BITS   TOKEN_FRONTEND(21)
00070 
00071 #define TOK_STOP_BITS   TOKEN_FRONTEND(22)
00072 
00073 #define TOK_PARITY              TOKEN_FRONTEND(23)
00074 
00075 #define TOK_HANDSHAKE   TOKEN_FRONTEND(24)
00076 
00077 #define TOK_RTS_STATE   TOKEN_FRONTEND(25)
00078 
00079 #define TOK_DTR_STATE   TOKEN_FRONTEND(26)
00080 
00081 #define TOK_PTT_TYPE    TOKEN_FRONTEND(30)
00082 
00083 #define TOK_PTT_PATHNAME        TOKEN_FRONTEND(31)
00084 
00085 #define TOK_DCD_TYPE    TOKEN_FRONTEND(32)
00086 
00087 #define TOK_DCD_PATHNAME        TOKEN_FRONTEND(33)
00088 
00089 #define TOK_PTT_BITNUM        TOKEN_FRONTEND(34)
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.6.1

Hamlib documentation for version 1.2.15 -- Thu Feb 2 2012 21:37:28
Project page: http://www.hamlib.org