Hamlib
4.7.1
Toggle main menu visibility
Loading...
Searching...
No Matches
amp_state.h
Go to the documentation of this file.
1
/*
2
* Hamlib Interface - Amplifier state structure
3
* Copyright (c) 2000-2025 The Hamlib Group
4
* Copyright (c) 2025 George Baltz
5
*
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
11
*
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*
21
*/
22
/* SPDX-License-Identifier: LGPL-2.1-or-later */
23
24
#ifndef _AMP_STATE_H
25
#define _AMP_STATE_H 1
26
31
32
40
41
42
__BEGIN_DECLS
54
struct
amp_state
55
{
56
/*
57
* overridable fields
58
*/
59
60
/*
61
* non overridable fields, internal use
62
*/
63
//---Start cut here---
64
hamlib_port_t_deprecated
ampport_deprecated
;
65
//---End cut here---
66
67
int
comm_state
;
68
rig_ptr_t
priv
;
69
rig_ptr_t
obj
;
70
71
setting_t
has_get_level
;
72
setting_t
has_set_level
;
73
74
gran_t
level_gran
[
RIG_SETTING_MAX
];
75
gran_t
parm_gran
[
RIG_SETTING_MAX
];
76
hamlib_port_t
ampport
;
77
};
78
79
#if defined(IN_HAMLIB)
80
#define AMPSTATE(a) (&(a)->state)
81
#endif
82
96
#define HAMLIB_AMPSTATE(a) ((struct amp_state *)amp_data_pointer(a, RIG_PTRX_AMPSTATE))
97
98
__END_DECLS
99
100
#endif
/* _AMP_STATE_H */
101
hamlib_port_t_deprecated
struct hamlib_port_deprecated hamlib_port_t_deprecated
hamlib_port_t
struct hamlib_port hamlib_port_t
Port definition.
setting_t
uint64_t setting_t
Setting bit mask.
Definition
rig.h:1221
RIG_SETTING_MAX
#define RIG_SETTING_MAX
Maximum # of rig settings.
Definition
rig.h:1227
gran_t
struct gran gran_t
gran_t type
Definition
rig.h:1758
amp_state
Amplifier state structure.
Definition
amp_state.h:55
amp_state::level_gran
gran_t level_gran[RIG_SETTING_MAX]
Definition
amp_state.h:74
amp_state::comm_state
int comm_state
Definition
amp_state.h:67
amp_state::ampport
hamlib_port_t ampport
Definition
amp_state.h:76
amp_state::has_set_level
setting_t has_set_level
Definition
amp_state.h:72
amp_state::parm_gran
gran_t parm_gran[RIG_SETTING_MAX]
Definition
amp_state.h:75
amp_state::obj
rig_ptr_t obj
Definition
amp_state.h:69
amp_state::priv
rig_ptr_t priv
Definition
amp_state.h:68
amp_state::has_get_level
setting_t has_get_level
Definition
amp_state.h:71
amp_state::ampport_deprecated
hamlib_port_t_deprecated ampport_deprecated
Definition
amp_state.h:64
include
hamlib
amp_state.h
Generated by
1.17.0
Hamlib documentation for version 4.7.1—
Project page:
http://www.hamlib.org