Loading...
Searching...
No Matches
amp_state.h
Go to the documentation of this file.
/*
* Hamlib Interface - Amplifier state structure
* Copyright (c) 2000-2025 The Hamlib Group
* Copyright (c) 2025 George Baltz
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#ifndef _AMP_STATE_H
#define _AMP_STATE_H 1
__BEGIN_DECLS
struct amp_state
{
/*
* overridable fields
*/
/*
* non overridable fields, internal use
*/
//---Start cut here---
hamlib_port_t_deprecated ampport_deprecated;
//---End cut here---
int comm_state;
rig_ptr_t priv;
rig_ptr_t obj;
setting_t has_get_level;
setting_t has_set_level;
gran_t level_gran[RIG_SETTING_MAX];
gran_t parm_gran[RIG_SETTING_MAX];
hamlib_port_t ampport;
};
#if defined(IN_HAMLIB)
#define AMPSTATE(a) (&(a)->state)
#endif
#define HAMLIB_AMPSTATE(a) ((struct amp_state *)amp_data_pointer(a, RIG_PTRX_AMPSTATE))
__END_DECLS
#endif /* _AMP_STATE_H */
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:1223
RIG_SETTING_MAX
#define RIG_SETTING_MAX
Maximum # of rig settings.
Definition rig.h:1229
gran_t
struct gran gran_t
gran_t type
Definition rig.h:1760
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