Hamlib
4.7.1
Toggle main menu visibility
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
54
struct
rot_state
{
55
/*
56
* overridable fields
57
*/
58
azimuth_t
min_az
;
59
azimuth_t
max_az
;
60
elevation_t
min_el
;
61
elevation_t
max_el
;
62
int
south_zero
;
63
azimuth_t
az_offset
;
64
elevation_t
el_offset
;
65
66
setting_t
has_get_func
;
67
setting_t
has_set_func
;
68
setting_t
has_get_level
;
69
setting_t
has_set_level
;
70
setting_t
has_get_parm
;
71
setting_t
has_set_parm
;
72
73
rot_status_t
has_status
;
74
75
gran_t
level_gran
[
RIG_SETTING_MAX
];
76
gran_t
parm_gran
[
RIG_SETTING_MAX
];
77
78
/*
79
* non overridable fields, internal use
80
*/
81
hamlib_port_t_deprecated
rotport_deprecated
;
82
hamlib_port_t_deprecated
rotport2_deprecated
;
83
84
int
comm_state
;
85
rig_ptr_t
priv
;
86
rig_ptr_t
obj
;
87
88
int
current_speed
;
89
hamlib_port_t
rotport
;
90
hamlib_port_t
rotport2
;
91
rig_ptr_t *
pstrotator_handler_priv_data
;
92
deferred_config_header_t
config_queue
;
93
};
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
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
rot_status_t
rot_status_t
Rotator status flags.
Definition
rotator.h:324
elevation_t
float elevation_t
Type definition for elevation.
Definition
rotator.h:74
azimuth_t
float azimuth_t
Type definition for azimuth.
Definition
rotator.h:85
rot_state
Rotator state structure.
Definition
rot_state.h:54
rot_state::obj
rig_ptr_t obj
Definition
rot_state.h:86
rot_state::priv
rig_ptr_t priv
Definition
rot_state.h:85
rot_state::config_queue
deferred_config_header_t config_queue
Definition
rot_state.h:92
rot_state::has_set_parm
setting_t has_set_parm
Definition
rot_state.h:71
rot_state::level_gran
gran_t level_gran[RIG_SETTING_MAX]
Definition
rot_state.h:75
rot_state::az_offset
azimuth_t az_offset
Definition
rot_state.h:63
rot_state::has_set_func
setting_t has_set_func
Definition
rot_state.h:67
rot_state::rotport_deprecated
hamlib_port_t_deprecated rotport_deprecated
Definition
rot_state.h:81
rot_state::max_az
azimuth_t max_az
Definition
rot_state.h:59
rot_state::has_status
rot_status_t has_status
Definition
rot_state.h:73
rot_state::current_speed
int current_speed
Definition
rot_state.h:88
rot_state::pstrotator_handler_priv_data
rig_ptr_t * pstrotator_handler_priv_data
Definition
rot_state.h:91
rot_state::rotport2
hamlib_port_t rotport2
Definition
rot_state.h:90
rot_state::rotport2_deprecated
hamlib_port_t_deprecated rotport2_deprecated
Definition
rot_state.h:82
rot_state::has_get_parm
setting_t has_get_parm
Definition
rot_state.h:70
rot_state::min_az
azimuth_t min_az
Definition
rot_state.h:58
rot_state::rotport
hamlib_port_t rotport
Definition
rot_state.h:89
rot_state::has_get_func
setting_t has_get_func
Definition
rot_state.h:66
rot_state::has_get_level
setting_t has_get_level
Definition
rot_state.h:68
rot_state::comm_state
int comm_state
Definition
rot_state.h:84
rot_state::min_el
elevation_t min_el
Definition
rot_state.h:60
rot_state::max_el
elevation_t max_el
Definition
rot_state.h:61
rot_state::has_set_level
setting_t has_set_level
Definition
rot_state.h:69
rot_state::parm_gran
gran_t parm_gran[RIG_SETTING_MAX]
Definition
rot_state.h:76
rot_state::el_offset
elevation_t el_offset
Definition
rot_state.h:64
rot_state::south_zero
int south_zero
Definition
rot_state.h:62
include
hamlib
rot_state.h
Generated by
1.17.0
Hamlib documentation for version 4.7.1—
Project page:
http://www.hamlib.org