Hamlib 4.7~git
Loading...
Searching...
No Matches
rot_state.h
Go to the documentation of this file.
1/*
2 * Hamlib Interface - Rotator 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 _ROT_STATE_H
25#define _ROT_STATE_H 1
26
27__BEGIN_DECLS
28
33
34
42
94
95__END_DECLS
96
97#if defined(IN_HAMLIB)
98#define ROTSTATE(r) (&(r)->state)
99#endif
113#define HAMLIB_ROTSTATE(r) ((struct rot_state *)rot_data_pointer(r, RIG_PTRX_ROTSTATE))
114
115#endif /* _ROT_STATE_H */
116
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
rot_status_t
Rotator status flags.
Definition rotator.h:324
float elevation_t
Type definition for elevation.
Definition rotator.h:74
float azimuth_t
Type definition for azimuth.
Definition rotator.h:85
Rotator state structure.
Definition rot_state.h:54
rig_ptr_t obj
Definition rot_state.h:86
rig_ptr_t priv
Definition rot_state.h:85
deferred_config_header_t config_queue
Definition rot_state.h:92
setting_t has_set_parm
Definition rot_state.h:71
gran_t level_gran[RIG_SETTING_MAX]
Definition rot_state.h:75
azimuth_t az_offset
Definition rot_state.h:63
setting_t has_set_func
Definition rot_state.h:67
hamlib_port_t_deprecated rotport_deprecated
Definition rot_state.h:81
azimuth_t max_az
Definition rot_state.h:59
rot_status_t has_status
Definition rot_state.h:73
int current_speed
Definition rot_state.h:88
rig_ptr_t * pstrotator_handler_priv_data
Definition rot_state.h:91
hamlib_port_t rotport2
Definition rot_state.h:90
hamlib_port_t_deprecated rotport2_deprecated
Definition rot_state.h:82
setting_t has_get_parm
Definition rot_state.h:70
azimuth_t min_az
Definition rot_state.h:58
hamlib_port_t rotport
Definition rot_state.h:89
setting_t has_get_func
Definition rot_state.h:66
setting_t has_get_level
Definition rot_state.h:68
int comm_state
Definition rot_state.h:84
elevation_t min_el
Definition rot_state.h:60
elevation_t max_el
Definition rot_state.h:61
setting_t has_set_level
Definition rot_state.h:69
gran_t parm_gran[RIG_SETTING_MAX]
Definition rot_state.h:76
elevation_t el_offset
Definition rot_state.h:64
int south_zero
Definition rot_state.h:62