Loading...
Searching...
No Matches
token.h
Go to the documentation of this file.
/*
* Hamlib Interface - token header
* Copyright (c) 2000-2009 by Stephane Fillod
*
*
* 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.
*
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#ifndef _TOKEN_H
#define _TOKEN_H 1
#include "hamlib/rig.h"
#define TOKEN_BACKEND(t) (t)
#define TOKEN_FRONTEND(t) ((t)|(1<<30))
#define IS_TOKEN_FRONTEND(t) ((t)&(1<<30))
#define TOK_FRONTEND_NONE TOKEN_FRONTEND(0)
#define TOK_BACKEND_NONE TOKEN_BACKEND(0)
/*
* tokens shared among rig and rotator,
* Numbers go from TOKEN_FRONTEND(1) to TOKEN_FRONTEND(99)
*/
#define TOK_PATHNAME TOKEN_FRONTEND(10)
#define TOK_WRITE_DELAY TOKEN_FRONTEND(12)
#define TOK_POST_WRITE_DELAY TOKEN_FRONTEND(13)
#define TOK_TIMEOUT TOKEN_FRONTEND(14)
#define TOK_RETRY TOKEN_FRONTEND(15)
#define TOK_SERIAL_SPEED TOKEN_FRONTEND(20)
#define TOK_DATA_BITS TOKEN_FRONTEND(21)
#define TOK_STOP_BITS TOKEN_FRONTEND(22)
#define TOK_PARITY TOKEN_FRONTEND(23)
#define TOK_HANDSHAKE TOKEN_FRONTEND(24)
#define TOK_RTS_STATE TOKEN_FRONTEND(25)
#define TOK_DTR_STATE TOKEN_FRONTEND(26)
#define TOK_PTT_TYPE TOKEN_FRONTEND(30)
#define TOK_PTT_PATHNAME TOKEN_FRONTEND(31)
#define TOK_DCD_TYPE TOKEN_FRONTEND(32)
#define TOK_DCD_PATHNAME TOKEN_FRONTEND(33)
#define TOK_PTT_BITNUM TOKEN_FRONTEND(34)
#define TOK_PTT_SHARE TOKEN_FRONTEND(35)
#define TOK_FLUSHX TOKEN_FRONTEND(36)
#define TOK_ASYNC TOKEN_FRONTEND(37)
#define TOK_TUNER_CONTROL_PATHNAME TOKEN_FRONTEND(38)
#define TOK_TIMEOUT_RETRY TOKEN_FRONTEND(39)
#define TOK_POST_PTT_DELAY TOKEN_FRONTEND(40)
#define TOK_DEVICE_ID TOKEN_FRONTEND(41)
/*
* rig specific tokens
*/
/* rx_range_list/tx_range_list, filters, announces, has(func,lvl,..) */
#define TOK_VFO_COMP TOKEN_FRONTEND(110)
#define TOK_POLL_INTERVAL TOKEN_FRONTEND(111)
#define TOK_LO_FREQ TOKEN_FRONTEND(112)
#define TOK_RANGE_SELECTED TOKEN_FRONTEND(121)
#define TOK_RANGE_NAME TOKEN_FRONTEND(122)
#define TOK_CACHE_TIMEOUT TOKEN_FRONTEND(123)
#define TOK_AUTO_POWER_ON TOKEN_FRONTEND(124)
#define TOK_AUTO_POWER_OFF TOKEN_FRONTEND(125)
#define TOK_AUTO_DISABLE_SCREENSAVER TOKEN_FRONTEND(126)
#define TOK_DISABLE_YAESU_BANDSELECT TOKEN_FRONTEND(127)
#define TOK_TWIDDLE_TIMEOUT TOKEN_FRONTEND(128)
#define TOK_TWIDDLE_RIT TOKEN_FRONTEND(129)
#define TOK_OFFSET_VFOA TOKEN_FRONTEND(130)
#define TOK_OFFSET_VFOB TOKEN_FRONTEND(131)
#define TOK_MULTICAST_DATA_ADDR TOKEN_FRONTEND(132)
#define TOK_MULTICAST_DATA_PORT TOKEN_FRONTEND(133)
#define TOK_MULTICAST_CMD_ADDR TOKEN_FRONTEND(134)
#define TOK_MULTICAST_CMD_PORT TOKEN_FRONTEND(135)
#define TOK_FREQ_SKIP TOKEN_FRONTEND(136)
#define TOK_CLIENT TOKEN_FRONTEND(137)
/*
* rotator specific tokens
* (strictly, should be documented as rotator_internal)
*/
#define TOK_MIN_AZ TOKEN_FRONTEND(110)
#define TOK_MAX_AZ TOKEN_FRONTEND(111)
#define TOK_MIN_EL TOKEN_FRONTEND(112)
#define TOK_MAX_EL TOKEN_FRONTEND(113)
#define TOK_SOUTH_ZERO TOKEN_FRONTEND(114)
#endif /* _TOKEN_H */
/* rig_internal definitions */
rig.h
Hamlib rig data structures.