Hamlib  4.3
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
token.h
Go to the documentation of this file.
1 /*
2  * Hamlib Interface - token header
3  * Copyright (c) 2000-2009 by Stephane Fillod
4  *
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  */
21 
33 #ifndef _TOKEN_H
34 
35 #define _TOKEN_H 1
36 
37 #include <hamlib/rig.h>
38 
40 #define TOKEN_BACKEND(t) (t)
42 #define TOKEN_FRONTEND(t) ((t)|(1<<30))
44 #define IS_TOKEN_FRONTEND(t) ((t)&(1<<30))
45 
47 #define TOK_FRONTEND_NONE TOKEN_FRONTEND(0)
49 #define TOK_BACKEND_NONE TOKEN_BACKEND(0)
50 
51 /*
52  * tokens shared among rig and rotator,
53  * Numbers go from TOKEN_FRONTEND(1) to TOKEN_FRONTEND(99)
54  */
55 
57 #define TOK_PATHNAME TOKEN_FRONTEND(10)
59 #define TOK_WRITE_DELAY TOKEN_FRONTEND(12)
61 #define TOK_POST_WRITE_DELAY TOKEN_FRONTEND(13)
63 #define TOK_TIMEOUT TOKEN_FRONTEND(14)
65 #define TOK_RETRY TOKEN_FRONTEND(15)
67 #define TOK_SERIAL_SPEED TOKEN_FRONTEND(20)
69 #define TOK_DATA_BITS TOKEN_FRONTEND(21)
71 #define TOK_STOP_BITS TOKEN_FRONTEND(22)
73 #define TOK_PARITY TOKEN_FRONTEND(23)
75 #define TOK_HANDSHAKE TOKEN_FRONTEND(24)
77 #define TOK_RTS_STATE TOKEN_FRONTEND(25)
79 #define TOK_DTR_STATE TOKEN_FRONTEND(26)
81 #define TOK_PTT_TYPE TOKEN_FRONTEND(30)
83 #define TOK_PTT_PATHNAME TOKEN_FRONTEND(31)
85 #define TOK_DCD_TYPE TOKEN_FRONTEND(32)
87 #define TOK_DCD_PATHNAME TOKEN_FRONTEND(33)
89 #define TOK_PTT_BITNUM TOKEN_FRONTEND(34)
91 #define TOK_PTT_SHARE TOKEN_FRONTEND(35)
93 #define TOK_FLUSHX TOKEN_FRONTEND(36)
94 /*
95  * rig specific tokens
96  */
97 /* rx_range_list/tx_range_list, filters, announces, has(func,lvl,..) */
98 
100 #define TOK_VFO_COMP TOKEN_FRONTEND(110)
102 #define TOK_POLL_INTERVAL TOKEN_FRONTEND(111)
104 #define TOK_LO_FREQ TOKEN_FRONTEND(112)
106 #define TOK_RANGE_SELECTED TOKEN_FRONTEND(121)
108 #define TOK_RANGE_NAME TOKEN_FRONTEND(122)
110 #define TOK_CACHE_TIMEOUT TOKEN_FRONTEND(123)
112 #define TOK_AUTO_POWER_ON TOKEN_FRONTEND(124)
114 #define TOK_AUTO_POWER_OFF TOKEN_FRONTEND(125)
116 #define TOK_AUTO_DISABLE_SCREENSAVER TOKEN_FRONTEND(126)
118 #define TOK_DISABLE_YAESU_BANDSELECT TOKEN_FRONTEND(127)
120 #define TOK_TWIDDLE_TIMEOUT TOKEN_FRONTEND(128)
122 #define TOK_TWIDDLE_RIT TOKEN_FRONTEND(129)
123 /*
124  * rotator specific tokens
125  * (strictly, should be documented as rotator_internal)
126  */
128 #define TOK_MIN_AZ TOKEN_FRONTEND(110)
130 #define TOK_MAX_AZ TOKEN_FRONTEND(111)
132 #define TOK_MIN_EL TOKEN_FRONTEND(112)
134 #define TOK_MAX_EL TOKEN_FRONTEND(113)
136 #define TOK_SOUTH_ZERO TOKEN_FRONTEND(114)
137 
138 
139 #endif /* _TOKEN_H */
140  /* rig_internal definitions */
Hamlib rig data structures.