1 /* 2 * Hamlib Tentec backend - Argonaut, Jupiter, RX-350 header 3 * Copyright (c) 2001-2003 by Stephane Fillod 4 * 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 * 20 */ 21 22 #ifndef _TENTEC2_H 23 #define _TENTEC2_H 1 24 25 #include <hamlib/rig.h> 26 27 // The include order will determine which BACKEND_VER is used 28 // tentec.h may also be included and the last include is the BACKEND_VER used 29 #undef BACKEND_VER 30 #define BACKEND_VER "20191208" 31 32 /* 33 * Mem caps to be checked.. 34 */ 35 #define TT_MEM_CAP { \ 36 .freq = 1, \ 37 .mode = 1, \ 38 .width = 1, \ 39 .tx_freq = 1, \ 40 .tx_mode = 1, \ 41 .tx_width = 1, \ 42 .split = 1, \ 43 } 44 45 int tentec2_set_freq(RIG *rig, vfo_t vfo, freq_t freq); 46 int tentec2_get_freq(RIG *rig, vfo_t vfo, freq_t *freq); 47 int tentec2_set_vfo(RIG *rig, vfo_t vfo); 48 int tentec2_get_vfo(RIG *rig, vfo_t *vfo); 49 int tentec2_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width); 50 int tentec2_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width); 51 int tentec2_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo); 52 int tentec2_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vfo); 53 int tentec2_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt); 54 int tentec2_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt); 55 int tentec2_reset(RIG *rig, reset_t reset); 56 const char* tentec2_get_info(RIG *rig); 57 58 #endif /* _TENTEC2_H */ 59