added IC-R7000

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@971 7ae35d74-ebe9-4afe-98af-79ac388436b8
This commit is contained in:
Stéphane Fillod, F8CFE 2002-02-27 23:17:17 +00:00
parent 9bb9589373
commit 48680b098a
3 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,5 @@
ICOMSRCLIST = ic706.c icr8500.c ic735.c ic775.c ic756.c icall.c \
ic275.c ic475.c ic821h.c
ic275.c ic475.c ic821h.c icr7000.c
lib_LTLIBRARIES = libhamlib-icom.la
libhamlib_icom_la_SOURCES = $(ICOMSRCLIST) icom.c frame.c

View File

@ -2,7 +2,7 @@
* Hamlib CI-V backend - main file
* Copyright (c) 2000,2001,2002 by Stephane Fillod
*
* $Id: icom.c,v 1.49 2002-01-27 14:50:22 fillods Exp $
* $Id: icom.c,v 1.50 2002-02-27 23:17:17 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
@ -2213,14 +2213,17 @@ int icom_decode_event(RIG *rig)
*/
if (rig->callbacks.freq_event) {
freq = from_bcd(buf+5, (priv->civ_731_mode ? 4:5)*2);
return rig->callbacks.freq_event(rig,RIG_VFO_CURR,freq);
return rig->callbacks.freq_event(rig, RIG_VFO_CURR, freq,
rig->callbacks.freq_arg);
} else
return -RIG_ENAVAIL;
break;
case C_SND_MODE:
if (rig->callbacks.mode_event) {
icom2rig_mode(rig, buf[5]| buf[6]<<8, &mode, &width);
return rig->callbacks.mode_event(rig,RIG_VFO_CURR,mode,width);
return rig->callbacks.mode_event(rig, RIG_VFO_CURR,
mode, width,
rig->callbacks.mode_arg);
} else
return -RIG_ENAVAIL;
break;
@ -2331,6 +2334,7 @@ int initrigs_icom(void *be_handle)
rig_register(&ic821h_caps);
rig_register(&icr7000_caps);
rig_register(&icr8500_caps);
rig_register(&ic275_caps);

View File

@ -2,7 +2,7 @@
* Hamlib CI-V backend - main header
* Copyright (c) 2000,2001,2002 by Stephane Fillod
*
* $Id: icom.h,v 1.37 2002-01-27 14:51:07 fillods Exp $
* $Id: icom.h,v 1.38 2002-02-27 23:17:17 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
@ -116,6 +116,7 @@ extern const struct rig_caps ic756_caps;
extern const struct rig_caps ic756pro_caps;
extern const struct rig_caps ic775_caps;
extern const struct rig_caps ic821h_caps;
extern const struct rig_caps icr7000_caps;
extern const struct rig_caps icr8500_caps;
extern const struct rig_caps icall_caps;
extern const struct rig_caps ic275_caps;