Hamlib  4.3
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
amplist.h
Go to the documentation of this file.
1 /*
2  * Hamlib Interface - list of known amplifiers
3  * Copyright (c) 2000-2011 by Stephane Fillod
4  * Copyright (c) 2000-2002 by Frank Singleton
5  * Copyright (C) 2019 by Michael Black W9MDB. Derived from rotlist.h
6  *
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23 
24 #ifndef _AMPLIST_H
25 #define _AMPLIST_H 1
26 
28 #define AMP_MAKE_MODEL(a,b) ((a)*100+(b))
29 #define AMP_BACKEND_NUM(a) ((a)/100)
31 
32 
66 #define AMP_MODEL_NONE 0
67 
68 
88 #define AMP_DUMMY 0
89 #define AMP_BACKEND_DUMMY "dummy"
91 #define AMP_MODEL_DUMMY AMP_MAKE_MODEL(AMP_DUMMY, 1)
92 #define AMP_MODEL_NETAMPCTL AMP_MAKE_MODEL(AMP_DUMMY, 2)
93 
94 
104 #define AMP_ELECRAFT 2
105 #define AMP_BACKEND_ELECRAFT "elecraft"
107 #define AMP_MODEL_ELECRAFT_KPA1500 AMP_MAKE_MODEL(AMP_ELECRAFT, 1)
108 //#define AMP_MODEL_ELECRAFT_KPA500 AMP_MAKE_MODEL(AMP_ELECRAFT, 2)
109 
115 typedef int amp_model_t;
116 
117 
118 #endif /* _AMPLIST_H */
119 
int amp_model_t
Convenience type definition for an amplifier model.
Definition: amplist.h:115