Hamlib/rotorez/rotorez.h
Nate Bargmann, N0NB b3182ba003 Changing ERC status to ALPHA due to successful test by Dan, OK1HRA
reported by Lada, OK1ZIA.

Updated backend versions to date format.

Updated copyright date to 2010.



git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2969 7ae35d74-ebe9-4afe-98af-79ac388436b8
2010-08-24 09:15:59 +00:00

71 lines
2.3 KiB
C

/*
* Hamlib backend library for the DCU rotor command set.
*
* rotorez.h - (C) Nate Bargmann 2003,2009,2010 (n0nb at arrl.net)
*
* This shared library provides an API for communicating
* via serial interface to a Hy-Gain or Yaesu rotor using
* the Idiom Press Rotor-EZ or RotorCard interface. It also
* supports the Hy-Gain DCU-1.
*
*
* 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 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _ROT_ROTOREZ_H
#define _ROT_ROTOREZ_H 1
#include "token.h"
#define AZ_READ_LEN 4
extern const struct rot_caps rotorez_rot_caps;
extern const struct rot_caps rotorcard_rot_caps;
extern const struct rot_caps dcu_rot_caps;
extern const struct rot_caps erc_rot_caps;
/*
* Tokens used by rotorez_rot_set_conf and the 'C' command in rotctl
* and rotctld followed by a value of '0' to disable a Rotor-EZ option
* and '1' to enable it.
*/
#define TOK_ENDPT TOKEN_BACKEND(1)
#define TOK_JAM TOKEN_BACKEND(2)
#define TOK_OVRSHT TOKEN_BACKEND(3)
#define TOK_UNSTICK TOKEN_BACKEND(4)
/*
* API local implementation
*
*/
static int rotorez_rot_init(ROT *rot);
static int rotorez_rot_cleanup(ROT *rot);
static int rotorez_rot_set_position(ROT *rot, azimuth_t azimuth, elevation_t elevation);
static int rotorez_rot_get_position(ROT *rot, azimuth_t *azimuth, elevation_t *elevation);
static int erc_rot_get_position(ROT *rot, azimuth_t *azimuth, elevation_t *elevation);
static int rotorez_rot_stop(ROT *rot);
static int dcu1_rot_stop(ROT *rot);
static int rotorez_rot_set_conf(ROT *rot, token_t token, const char *val);
static const char *rotorez_rot_get_info(ROT *rot);
#endif /* _ROT_ROTOREZ_H */