fix old regression about mode handling on TH-D7, TH-G71, TM-V7, TM-D700

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2974 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.13
Stéphane Fillod, F8CFE 2010-09-07 21:11:13 +00:00
rodzic bc5fd233cd
commit d812fdb6df
5 zmienionych plików z 34 dodań i 12 usunięć

Wyświetl plik

@ -1,8 +1,7 @@
/*
* Hamlib Kenwood backend - TH handheld header
* Copyright (c) 2001-2008 by Stephane Fillod
* Copyright (c) 2001-2010 by Stephane Fillod
*
* $Id: th.h,v 1.11 2008-05-04 21:27:26 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -21,9 +20,10 @@
*/
#ifndef __TH_H__
#define __TH_H__ 1
#include "idx_builtin.h"
#define TH_VER "0.4"
#define TH_VER "0.5"
extern int th_transaction (RIG *rig, const char *cmdstr, char *data, size_t datasize);
extern int th_decode_event (RIG *rig);
@ -72,7 +72,7 @@ extern int th_reset(RIG *rig, reset_t reset);
.ctcss_tone=1,\
.ctcss_sql=1,\
.channel_desc=1
#endif /* __TH_H__ */
/* end of file */

Wyświetl plik

@ -1,8 +1,7 @@
/*
* Hamlib Kenwood backend - TH-D7 description
* Copyright (c) 2000-2008 by Stephane Fillod
* Copyright (c) 2000-2010 by Stephane Fillod
*
* $Id: thd7.c,v 1.18 2009-01-28 23:30:52 azummo Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -64,8 +63,14 @@
*/
#define THD7_VFO (RIG_VFO_A|RIG_VFO_B)
static rmode_t td7_mode_table[KENWOOD_MODE_TABLE_MAX] = {
[0] = RIG_MODE_FM,
[1] = RIG_MODE_AM,
};
static struct kenwood_priv_caps thd7_priv_caps = {
.cmdtrm = EOM_TH, /* Command termination character */
.mode_table = td7_mode_table,
};

Wyświetl plik

@ -1,8 +1,7 @@
/*
* Hamlib Kenwood backend - TH-G71 description
* Copyright (c) 2003-2008 by Stephane Fillod
* Copyright (c) 2003-2010 by Stephane Fillod
*
* $Id: thg71.c,v 1.25 2009-02-03 23:22:58 azummo Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -57,8 +56,14 @@
#define ACKBUF_LEN 128
static rmode_t thg71_mode_table[KENWOOD_MODE_TABLE_MAX] = {
[0] = RIG_MODE_FM,
[1] = RIG_MODE_AM,
};
static struct kenwood_priv_caps thg71_priv_caps = {
.cmdtrm = EOM_TH, /* Command termination character */
.mode_table = thg71_mode_table,
};

Wyświetl plik

@ -1,8 +1,7 @@
/*
* Hamlib Kenwood backend - TM-D700 description
* Copyright (c) 2000-2008 by Stephane Fillod
* Copyright (c) 2000-2010 by Stephane Fillod
*
* $Id: tmd700.c,v 1.10 2009-01-28 23:30:54 azummo Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -59,15 +58,22 @@
*/
#define TMD700_VFO (RIG_VFO_A|RIG_VFO_B)
static rmode_t tmd700_mode_table[KENWOOD_MODE_TABLE_MAX] = {
[0] = RIG_MODE_FM,
[1] = RIG_MODE_AM,
};
static struct kenwood_priv_caps tmd700_priv_caps = {
.cmdtrm = EOM_TH, /* Command termination character */
.mode_table = tmd700_mode_table,
};
/*
* TM-D700 rig capabilities.
*
* specs from http://www.geocities.jp/hkwatarin/TM-D700/English/spec.htm
* specs: http://www.geocities.jp/hkwatarin/TM-D700/English/spec.htm
* protocol: http://www.qsl.net/k/k7jar//pages/D700Cmds.html
*/
const struct rig_caps tmd700_caps = {
.rig_model = RIG_MODEL_TMD700,
@ -75,7 +81,7 @@ const struct rig_caps tmd700_caps = {
.mfg_name = "Kenwood",
.version = TH_VER,
.copyright = "LGPL",
.status = RIG_STATUS_UNTESTED,
.status = RIG_STATUS_BETA,
.rig_type = RIG_TYPE_MOBILE|RIG_FLAG_APRS|RIG_FLAG_TNC,
.ptt_type = RIG_PTT_RIG,
.dcd_type = RIG_DCD_RIG,

Wyświetl plik

@ -68,8 +68,14 @@
#define ACKBUF_LEN 128
static rmode_t tmv7_mode_table[KENWOOD_MODE_TABLE_MAX] = {
[0] = RIG_MODE_FM,
[1] = RIG_MODE_AM,
};
static struct kenwood_priv_caps tmv7_priv_caps = {
.cmdtrm = EOM_TH, /* Command termination character */
.mode_table = tmv7_mode_table,
};