From 9d8b3d1c5463df79a1dfcf2feb684ef6e365720f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Sat, 2 Jun 2001 17:52:55 +0000 Subject: [PATCH] added PCR100 rig git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@508 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- pcr/Makefile.am | 4 ++-- pcr/pcr.c | 5 +++-- pcr/pcr.h | 9 +++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pcr/Makefile.am b/pcr/Makefile.am index 79d6325a3..7963e9f9b 100644 --- a/pcr/Makefile.am +++ b/pcr/Makefile.am @@ -1,6 +1,6 @@ lib_LTLIBRARIES = libhamlib-pcr.la -libhamlib_pcr_la_SOURCES = pcr.c pcr1000.c +libhamlib_pcr_la_SOURCES = pcr.c pcr1000.c pcr100.c libhamlib_pcr_la_LDFLAGS = -avoid-version # -module lib_LIBRARIES = libhamlib-pcr.a -libhamlib_pcr_a_SOURCES = pcr.c pcr1000.c +libhamlib_pcr_a_SOURCES = pcr.c pcr1000.c pcr100.c noinst_HEADERS = pcr.h diff --git a/pcr/pcr.c b/pcr/pcr.c index 3ccd7b859..128bd12b7 100644 --- a/pcr/pcr.c +++ b/pcr/pcr.c @@ -6,7 +6,7 @@ * via serial interface to an Icom PCR-1xxx radio. * * - * $Id: pcr.c,v 1.3 2001-04-26 21:32:32 f4cfe Exp $ + * $Id: pcr.c,v 1.4 2001-06-02 17:52:55 f4cfe Exp $ * * * @@ -310,7 +310,7 @@ int pcr_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) * pcr_get_info * Assumes rig!=NULL */ -unsigned char *pcr_get_info(RIG *rig) +const char *pcr_get_info(RIG *rig) { struct pcr_priv_data *priv; unsigned char ackbuf[16]; @@ -401,6 +401,7 @@ int init_pcr(void *be_handle) { rig_debug(RIG_DEBUG_VERBOSE, "pcr: _init called\n"); + rig_register(&pcr100_caps); rig_register(&pcr1000_caps); return RIG_OK; diff --git a/pcr/pcr.h b/pcr/pcr.h index 794ad7efc..e54a845b9 100644 --- a/pcr/pcr.h +++ b/pcr/pcr.h @@ -3,10 +3,10 @@ * * pcr.h - Copyright (C) 2001 Stephane Fillod * This shared library provides an API for communicating - * via serial interface to an ICOM using the "CI-V" interface. + * via serial interface to an ICOM using the PCR1000 protocol. * * - * $Id: pcr.h,v 1.1 2001-03-02 18:26:18 f4cfe Exp $ + * $Id: pcr.h,v 1.2 2001-06-02 17:52:55 f4cfe Exp $ * * * This program is free software; you can redistribute it and/or @@ -44,12 +44,13 @@ int pcr_set_freq(RIG *rig, vfo_t vfo, freq_t freq); int pcr_get_freq(RIG *rig, vfo_t vfo, freq_t *freq); int pcr_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width); int pcr_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width); -unsigned char *pcr_get_info(RIG *rig); +const char *pcr_get_info(RIG *rig); extern const struct rig_caps pcr1000_caps; +extern const struct rig_caps pcr100_caps; -extern int init_icom(void *be_handle); +extern int init_pcr(void *be_handle); #endif /* _PCR_H */