Hamlib  3.0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
rotclass.h
1 /*
2  * Hamlib C++ bindings - rotator API header
3  * Copyright (c) 2002 by Stephane Fillod
4  *
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  */
21 
22 #ifndef _ROTCLASS_H
23 #define _ROTCLASS_H 1
24 
25 #include <hamlib/rotator.h>
26 
27 
28 
29 class BACKEND_IMPEXP Rotator {
30 private:
31  ROT* theRot; // Global ref. to the rot
32 
33 protected:
34 public:
35  Rotator(rot_model_t rot_model);
36 
37  virtual ~Rotator();
38 
39  const struct rot_caps *caps;
40 
41  // This method open the communication port to the rot
42  void open(void);
43 
44  // This method close the communication port to the rot
45  void close(void);
46 
47  void setConf(token_t token, const char *val);
48  void setConf(const char *name, const char *val);
49  void getConf(token_t token, char *val);
50  void getConf(const char *name, char *val);
51  token_t tokenLookup(const char *name);
52 
53  void setPosition(azimuth_t az, elevation_t el);
54  void getPosition(azimuth_t& az, elevation_t& el);
55  void stop();
56  void park();
57  void reset (rot_reset_t reset);
58 
59  void move(int direction, int speed);
60 };
61 
62 
63 
64 #endif // _ROTCLASS_H
long token_t
configuration token
Definition: rig.h:501
int rot_reset_t
Type definition for rotator reset.
Definition: rotator.h:89
Rotator data structure.
Definition: rotator.h:185
Definition: rotclass.h:29
int rot_model_t
Convenience type definition for rotator model.
Definition: rotlist.h:297
Hamlib rotator data structures.
float elevation_t
Type definition for elevation.
Definition: rotator.h:71
float azimuth_t
Type definition for azimuth.
Definition: rotator.h:72
This is the master data structure, acting as a handle for the controlled rotator. ...
Definition: rotator.h:298

Generated by doxygen 1.8.8

Hamlib documentation for version 3.0.1 -- Wed Jan 13 2016 15:05:23
Project page: http://www.hamlib.org