2010-04-25 21:30:17 +00:00
|
|
|
/*
|
|
|
|
* Hamlib Rotator backend - ARS interface protocol
|
|
|
|
* Copyright (c) 2010 by Stephane Fillod
|
|
|
|
*
|
|
|
|
*
|
2011-08-20 23:19:08 +00:00
|
|
|
* 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.
|
2010-04-25 21:30:17 +00:00
|
|
|
*
|
2011-08-20 23:19:08 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2010-04-25 21:30:17 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-08-20 23:19:08 +00:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2010-04-25 21:30:17 +00:00
|
|
|
*
|
2011-08-20 23:19:08 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2010-04-25 21:30:17 +00:00
|
|
|
* License along with this library; if not, write to the Free Software
|
2011-08-20 23:19:08 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2010-04-25 21:30:17 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ROT_ARS_H
|
|
|
|
#define _ROT_ARS_H 1
|
|
|
|
|
2010-05-25 21:02:16 +00:00
|
|
|
#include "hamlib/rig.h"
|
|
|
|
|
2010-04-25 21:30:17 +00:00
|
|
|
struct ars_priv_data {
|
2010-05-25 21:02:16 +00:00
|
|
|
unsigned adc_res;
|
2010-04-25 21:30:17 +00:00
|
|
|
int brake_off;
|
2010-05-08 21:25:29 +00:00
|
|
|
int curr_move;
|
2010-04-25 21:30:17 +00:00
|
|
|
unsigned char pp_control;
|
|
|
|
unsigned char pp_data;
|
2010-05-25 21:02:16 +00:00
|
|
|
#ifdef HAVE_PTHREAD
|
|
|
|
pthread_t thread;
|
2010-05-26 20:09:31 +00:00
|
|
|
int set_pos_active;
|
2010-05-25 21:02:16 +00:00
|
|
|
azimuth_t target_az;
|
|
|
|
elevation_t target_el;
|
|
|
|
#endif
|
2010-04-25 21:30:17 +00:00
|
|
|
};
|
|
|
|
|
2010-05-31 21:15:58 +00:00
|
|
|
extern const struct rot_caps rci_az_rot_caps;
|
|
|
|
extern const struct rot_caps rci_azel_rot_caps;
|
2010-04-25 21:30:17 +00:00
|
|
|
|
|
|
|
#endif /* _ROT_ARS_H */
|