2010-04-25 21:30:17 +00:00
|
|
|
/*
|
|
|
|
* Hamlib Rotator backend - ARS interface protocol
|
|
|
|
* Copyright (c) 2010 by Stephane Fillod
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Library General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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;
|
|
|
|
azimuth_t target_az;
|
|
|
|
elevation_t target_el;
|
|
|
|
#endif
|
2010-04-25 21:30:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern const struct rot_caps rci_se8_rot_caps;
|
|
|
|
|
|
|
|
#endif /* _ROT_ARS_H */
|