tentec.h

Go to the documentation of this file.
00001 /*
00002  *  Hamlib Tentec backend - main header
00003  *  Copyright (c) 2001-2004 by Stephane Fillod
00004  *
00005  *      $Id: tentec.h,v 1.11 2006/10/30 20:21:15 aa6e Exp $
00006  *
00007  *   This library is free software; you can redistribute it and/or modify
00008  *   it under the terms of the GNU Library General Public License as
00009  *   published by the Free Software Foundation; either version 2 of
00010  *   the License, or (at your option) any later version.
00011  *
00012  *   This program is distributed in the hope that it will be useful,
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *   GNU Library General Public License for more details.
00016  *
00017  *   You should have received a copy of the GNU Library General Public
00018  *   License along with this library; if not, write to the Free Software
00019  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020  *
00021  */
00022 
00032 #ifndef _TENTEC_H
00033 #define _TENTEC_H 1
00034 
00035 #include <hamlib/rig.h>
00036 
00040 struct tentec_priv_data {
00041         rmode_t mode;           
00042         freq_t freq;            
00043         pbwidth_t width;        
00044         int cwbfo;                  
00045     int pbt;            
00046         float lnvol;            
00047         float spkvol;           
00048         int agc;                
00050         /* calculated by tentec_tuning_factor_calc() */
00051         int ctf; 
00052         int ftf; 
00053         int btf; 
00054 };
00055 
00056 int tentec_transaction(RIG *rig, const char *cmd, int cmd_len, char *data, int *data_len);
00057 
00058 int tentec_init(RIG *rig);
00059 int tentec_init(RIG *rig);
00060 int tentec_cleanup(RIG *rig);
00061 int tentec_trx_open(RIG *rig);
00062 int tentec_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
00063 int tentec_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
00064 int tentec_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
00065 int tentec_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
00066 int tentec_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
00067 int tentec_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
00068 const char* tentec_get_info(RIG *rig);
00069 
00070 extern const struct rig_caps rx320_caps;
00071 extern const struct rig_caps rx340_caps;
00072 extern const struct rig_caps rx350_caps;
00073 extern const struct rig_caps tt516_caps;
00074 extern const struct rig_caps tt538_caps;
00075 extern const struct rig_caps tt550_caps;
00076 extern const struct rig_caps tt565_caps;
00077 
00078 
00079 #endif /* _TENTEC_H */
00080 

Hamlib documentation for version 1.2.6.2 -- Sun Dec 9 09:37:49 2007
Project page: http://hamlib.org