Hamlib
4.1
include
hamlib
ampclass.h
1
/*
2
* Hamlib C++ bindings - amplifier API header
3
* Copyright (c) 2002 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
22
#ifndef _AMPCLASS_H
23
#define _AMPCLASS_H 1
24
25
#include <
hamlib/amplifier.h
>
26
27
28
30
class
BACKEND_IMPEXP Amplifier
31
{
32
private
:
33
AMP
*theAmp;
// Global ref. to the amp
34
35
protected
:
36
public
:
37
explicit
Amplifier(amp_model_t amp_model);
38
39
virtual
~Amplifier();
40
41
const
struct
amp_caps
*caps;
42
43
// This method opens the communication port to the amp
44
void
open(
void
);
45
46
// This method closes the communication port to the amp
47
void
close(
void
);
48
49
void
setConf(
token_t
token,
const
char
*val);
50
void
setConf(
const
char
*name,
const
char
*val);
51
void
getConf(
token_t
token,
char
*val);
52
void
getConf(
const
char
*name,
char
*val);
53
token_t
tokenLookup(
const
char
*name);
54
55
void
setFreq(
freq_t
freq);
56
freq_t
getFreq();
57
58
void
reset(amp_reset_t reset);
59
};
61
62
63
64
#endif // _AMPCLASS_H
amp_caps
Amplifier data structure.
freq_t
double freq_t
Frequency type,.
Definition:
rig.h:335
amp
This is the master data structure, acting as a handle for the controlled amplifier.
Definition:
amplifier.h:284
amplifier.h
Hamlib amplifier data structures.
token_t
long token_t
configuration token
Definition:
rig.h:652
Generated by
1.8.20
Hamlib documentation for version 4.1 -- Mon Feb 1 2021 00:00:00
Project page:
http://www.hamlib.org