Hamlib 4.7~git
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
55{
56 /*
57 * overridable fields
58 */
59
60 /*
61 * non overridable fields, internal use
62 */
63 //---Start cut here---
65 //---End cut here---
66
68 rig_ptr_t priv;
69 rig_ptr_t obj;
70
73
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
struct hamlib_port_deprecated hamlib_port_t_deprecated
struct hamlib_port hamlib_port_t
Port definition.
uint64_t setting_t
Setting bit mask.
Definition rig.h:1234
#define RIG_SETTING_MAX
Maximum # of rig settings.
Definition rig.h:1240
struct gran gran_t
gran_t type
Definition rig.h:1771
Amplifier state structure.
Definition amp_state.h:55
gran_t level_gran[RIG_SETTING_MAX]
Definition amp_state.h:74
int comm_state
Definition amp_state.h:67
hamlib_port_t ampport
Definition amp_state.h:76
setting_t has_set_level
Definition amp_state.h:72
gran_t parm_gran[RIG_SETTING_MAX]
Definition amp_state.h:75
rig_ptr_t obj
Definition amp_state.h:69
rig_ptr_t priv
Definition amp_state.h:68
setting_t has_get_level
Definition amp_state.h:71
hamlib_port_t_deprecated ampport_deprecated
Definition amp_state.h:64