2001-07-14 16:45:40 +00:00
|
|
|
/*
|
|
|
|
* Hamlib Tentec backend - main header
|
2009-01-11 12:42:24 +00:00
|
|
|
* Copyright (c) 2001-2009 by Stephane Fillod
|
2001-07-14 16:45:40 +00:00
|
|
|
*
|
2009-01-11 12:42:24 +00:00
|
|
|
* $Id: tentec.h,v 1.12 2009-01-11 12:42:24 fillods Exp $
|
2001-07-14 16:45:40 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Library General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program 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 Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2006-10-30 20:21:15 +00:00
|
|
|
/**
|
|
|
|
* \addtogroup tentec
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* \file tentec.h
|
|
|
|
* \brief Includes for Tentec Backends
|
|
|
|
*/
|
|
|
|
|
2001-07-14 16:45:40 +00:00
|
|
|
#ifndef _TENTEC_H
|
|
|
|
#define _TENTEC_H 1
|
|
|
|
|
2001-12-16 11:14:47 +00:00
|
|
|
#include <hamlib/rig.h>
|
2001-07-14 16:45:40 +00:00
|
|
|
|
2006-10-30 20:21:15 +00:00
|
|
|
/**
|
|
|
|
* \brief Private tentec info
|
|
|
|
*/
|
2001-07-14 16:45:40 +00:00
|
|
|
struct tentec_priv_data {
|
2006-10-30 20:21:15 +00:00
|
|
|
rmode_t mode; /*!< detection mode */
|
|
|
|
freq_t freq; /*!< tuned frequency */
|
|
|
|
pbwidth_t width; /*!< filter bandwidth in Hz */
|
|
|
|
int cwbfo; /*!< BFO frequency: 1000 [0-2000Hz] */
|
|
|
|
int pbt; /*!< Passband Tuning, IF shift: 0 [-2000Hz to 2000Hz] */
|
|
|
|
float lnvol; /*!< line-out volume: 30 [0..63] */
|
|
|
|
float spkvol; /*!< speaker volume: 30 [0..63] */
|
|
|
|
int agc; /*!< AGC: medium */
|
2001-07-14 16:45:40 +00:00
|
|
|
|
|
|
|
/* calculated by tentec_tuning_factor_calc() */
|
2006-10-30 20:21:15 +00:00
|
|
|
int ctf; /*!< Coarse Tune Factor */
|
|
|
|
int ftf; /*!< Fine Tune Factor */
|
|
|
|
int btf; /*!< Bfo Tune Factor, btval is ignored by RX-320 in AM MODE */
|
2001-07-14 16:45:40 +00:00
|
|
|
};
|
|
|
|
|
2003-05-12 22:29:59 +00:00
|
|
|
int tentec_transaction(RIG *rig, const char *cmd, int cmd_len, char *data, int *data_len);
|
|
|
|
|
2001-07-14 16:45:40 +00:00
|
|
|
int tentec_init(RIG *rig);
|
|
|
|
int tentec_cleanup(RIG *rig);
|
2002-01-06 17:49:55 +00:00
|
|
|
int tentec_trx_open(RIG *rig);
|
2001-07-14 16:45:40 +00:00
|
|
|
int tentec_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
|
|
|
int tentec_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
|
|
|
|
int tentec_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
|
|
|
|
int tentec_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
|
|
|
|
int tentec_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
|
|
|
int tentec_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
|
|
|
const char* tentec_get_info(RIG *rig);
|
|
|
|
|
|
|
|
extern const struct rig_caps rx320_caps;
|
2004-05-03 22:34:14 +00:00
|
|
|
extern const struct rig_caps rx340_caps;
|
|
|
|
extern const struct rig_caps rx350_caps;
|
2003-05-12 22:29:59 +00:00
|
|
|
extern const struct rig_caps tt516_caps;
|
2004-05-03 22:34:14 +00:00
|
|
|
extern const struct rig_caps tt538_caps;
|
2009-04-22 20:43:26 +00:00
|
|
|
extern const struct rig_caps tt585_caps;
|
2009-01-11 12:42:24 +00:00
|
|
|
extern const struct rig_caps tt588_caps;
|
2002-01-06 17:49:55 +00:00
|
|
|
extern const struct rig_caps tt550_caps;
|
2004-05-03 22:34:14 +00:00
|
|
|
extern const struct rig_caps tt565_caps;
|
2001-07-14 16:45:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* _TENTEC_H */
|
2006-10-30 20:21:15 +00:00
|
|
|
/** @} */
|