Hamlib 1.2.12

tentec.h

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

Hamlib documentation for version 1.2.12 -- Thu Feb 3 2011 10:54:12
Project page: http://hamlib.org