Hamlib  3.0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros 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)
41 
42 #define TOKEN_FRONTEND(t) ((t)|(1<<30))
43 
44 #define IS_TOKEN_FRONTEND(t) ((t)&(1<<30))
45 
47 #define TOK_FRONTEND_NONE TOKEN_FRONTEND(0)
48 
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)
58 
59 #define TOK_WRITE_DELAY TOKEN_FRONTEND(12)
60 
61 #define TOK_POST_WRITE_DELAY TOKEN_FRONTEND(13)
62 
63 #define TOK_TIMEOUT TOKEN_FRONTEND(14)
64 
65 #define TOK_RETRY TOKEN_FRONTEND(15)
66 
67 #define TOK_SERIAL_SPEED TOKEN_FRONTEND(20)
68 
69 #define TOK_DATA_BITS TOKEN_FRONTEND(21)
70 
71 #define TOK_STOP_BITS TOKEN_FRONTEND(22)
72 
73 #define TOK_PARITY TOKEN_FRONTEND(23)
74 
75 #define TOK_HANDSHAKE TOKEN_FRONTEND(24)
76 
77 #define TOK_RTS_STATE TOKEN_FRONTEND(25)
78 
79 #define TOK_DTR_STATE TOKEN_FRONTEND(26)
80 
81 #define TOK_PTT_TYPE TOKEN_FRONTEND(30)
82 
83 #define TOK_PTT_PATHNAME TOKEN_FRONTEND(31)
84 
85 #define TOK_DCD_TYPE TOKEN_FRONTEND(32)
86 
87 #define TOK_DCD_PATHNAME TOKEN_FRONTEND(33)
88 
89 #define TOK_PTT_BITNUM TOKEN_FRONTEND(34)
90 /*
91  * rig specific tokens
92  */
93 /* rx_range_list/tx_range_list, filters, announces, has(func,lvl,..) */
94 
96 #define TOK_VFO_COMP TOKEN_FRONTEND(110)
97 
98 #define TOK_POLL_INTERVAL TOKEN_FRONTEND(111)
99 
100 #define TOK_ITU_REGION TOKEN_FRONTEND(120)
101 /*
102  * rotator specific tokens
103  * (strictly, should be documented as rotator_internal)
104  */
106 #define TOK_MIN_AZ TOKEN_FRONTEND(110)
107 
108 #define TOK_MAX_AZ TOKEN_FRONTEND(111)
109 
110 #define TOK_MIN_EL TOKEN_FRONTEND(112)
111 
112 #define TOK_MAX_EL TOKEN_FRONTEND(113)
113 
114 
115 #endif /* _TOKEN_H */
116  /* rig_internal definitions */
Hamlib rig data structures.

Generated by doxygen 1.8.8

Hamlib documentation for version 3.0.1 -- Wed Jan 13 2016 15:05:23
Project page: http://www.hamlib.org