2003-01-11 00:47:48 +00:00
|
|
|
/*
|
|
|
|
* Hamlib backend library for the DCU rotor command set.
|
|
|
|
*
|
2010-08-24 09:15:59 +00:00
|
|
|
* rotorez.h - (C) Nate Bargmann 2003,2009,2010 (n0nb at arrl.net)
|
2003-01-11 00:47:48 +00:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*
|
2011-08-21 23:21:32 +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.
|
2003-01-11 00:47:48 +00:00
|
|
|
*
|
2011-08-21 23:21:32 +00:00
|
|
|
* 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.
|
2003-01-11 00:47:48 +00:00
|
|
|
*
|
2011-08-21 23:21:32 +00:00
|
|
|
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2003-01-11 00:47:48 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ROT_ROTOREZ_H
|
|
|
|
#define _ROT_ROTOREZ_H 1
|
|
|
|
|
2009-01-25 16:14:39 +00:00
|
|
|
#include "token.h"
|
|
|
|
|
2003-02-13 03:08:00 +00:00
|
|
|
#define AZ_READ_LEN 4
|
2014-09-09 02:08:47 +00:00
|
|
|
#define RT21_AZ_LEN 6
|
2003-01-12 14:29:15 +00:00
|
|
|
|
2003-01-11 00:47:48 +00:00
|
|
|
extern const struct rot_caps rotorez_rot_caps;
|
2003-01-12 14:29:15 +00:00
|
|
|
extern const struct rot_caps rotorcard_rot_caps;
|
|
|
|
extern const struct rot_caps dcu_rot_caps;
|
2010-08-23 20:09:30 +00:00
|
|
|
extern const struct rot_caps erc_rot_caps;
|
2014-09-09 02:08:47 +00:00
|
|
|
extern const struct rot_caps rt21_rot_caps;
|
2022-08-16 21:15:25 +00:00
|
|
|
extern const struct rot_caps yrc1_rot_caps;
|
2003-01-11 00:47:48 +00:00
|
|
|
|
2009-01-17 14:37:28 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
2009-01-25 16:14:39 +00:00
|
|
|
#define TOK_ENDPT TOKEN_BACKEND(1)
|
|
|
|
#define TOK_JAM TOKEN_BACKEND(2)
|
|
|
|
#define TOK_OVRSHT TOKEN_BACKEND(3)
|
|
|
|
#define TOK_UNSTICK TOKEN_BACKEND(4)
|
2009-01-17 14:37:28 +00:00
|
|
|
|
2003-01-11 00:47:48 +00:00
|
|
|
#endif /* _ROT_ROTOREZ_H */
|
|
|
|
|