kopia lustrzana https://github.com/Hamlib/Hamlib
57 wiersze
1.6 KiB
C
57 wiersze
1.6 KiB
C
|
/*
|
||
|
* hamlib - (C) Frank Singleton 2000 (vk3fcs@ix.netcom.com)
|
||
|
*
|
||
|
* 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.
|
||
|
*
|
||
|
*
|
||
|
* $Id: pcr.h,v 1.1 2001-03-02 18:26:18 f4cfe Exp $
|
||
|
*
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU 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 General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program; if not, write to the Free Software
|
||
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef _PCR_H
|
||
|
#define _PCR_H 1
|
||
|
|
||
|
#include <hamlib/rig.h>
|
||
|
|
||
|
struct pcr_priv_data {
|
||
|
freq_t last_freq;
|
||
|
rmode_t last_mode;
|
||
|
int last_filter;
|
||
|
};
|
||
|
|
||
|
extern const int pcr1_ctcss_list[];
|
||
|
|
||
|
int pcr_init(RIG *rig);
|
||
|
int pcr_cleanup(RIG *rig);
|
||
|
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);
|
||
|
|
||
|
|
||
|
extern const struct rig_caps pcr1000_caps;
|
||
|
|
||
|
extern int init_icom(void *be_handle);
|
||
|
|
||
|
|
||
|
#endif /* _PCR_H */
|
||
|
|