Cloned the FT1000D from the FT990, since they are similar. Test needed.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1811 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.2
Stéphane Fillod, F8CFE 2004-08-17 20:07:20 +00:00
rodzic 8cf3b09716
commit 1385617c85
6 zmienionych plików z 309 dodań i 70 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
YAESUSRC = ft100.c ft747.c ft817.c ft847.c ft890.c ft900.c ft920.c \
ft1000mp.c ft857.c ft897.c ft990.c frg8800.c \
ft757gx.c ft736.c frg100.c frg9600.c
ft757gx.c ft736.c frg100.c frg9600.c ft1000d.c
lib_LTLIBRARIES = hamlib-yaesu.la
hamlib_yaesu_la_SOURCES = $(YAESUSRC) yaesu.c

237
yaesu/ft1000d.c 100644
Wyświetl plik

@ -0,0 +1,237 @@
/*
* hamlib - (C) Stephane Fillod 2002-2004 (fillods at users.sourceforge.net)
*
* ft1000d.c - (C) Berndt Josef Wulf (wulf at ping.net.au)
*
* This shared library provides an API for communicating
* via serial interface to an FT-1000D using the "CAT" interface
*
*
* $Id: ft1000d.c,v 1.1 2004-08-17 20:07:20 fillods Exp $
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <string.h> /* String function definitions */
#include <unistd.h> /* UNIX standard function definitions */
#include "hamlib/rig.h"
#include "bandplan.h"
#include "serial.h"
#include "misc.h"
#include "yaesu.h"
#include "ft990.h"
/* Receiver caps */
#define FT1000D_ALL_RX_MODES (RIG_MODE_LSB|RIG_MODE_USB|RIG_MODE_CW|RIG_MODE_AM|RIG_MODE_FM|RIG_MODE_RTTY|RIG_MODE_RTTYR)
#define FT1000D_SSB_CW_RX_MODES (RIG_MODE_CW|RIG_MODE_USB|RIG_MODE_LSB)
#define FT1000D_RTTY_RX_MODES (RIG_MODE_RTTY|RIG_MODE_RTTYR)
#define FT1000D_AM_RX_MODES (RIG_MODE_AM)
#define FT1000D_FM_RX_MODES (RIG_MODE_FM)
/* TX caps */
#define FT1000D_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_USB|RIG_MODE_LSB|RIG_MODE_RTTY|RIG_MODE_RTTYR|RIG_MODE_FM) /* 100 W class */
#define FT1000D_AM_TX_MODES (RIG_MODE_AM ) /* set 25W max */
/* Other features */
#define FT1000D_VFO_ALL (RIG_VFO_A|RIG_VFO_B)
#define FT1000D_ANTS 0
/* Timing values in mS */
#define FT1000D_WRITE_DELAY 50
/* Delay sequential fast writes */
#define FT1000D_POST_WRITE_DELAY 5
#define FT1000D_MEM_CAP { \
.freq = 1, \
.mode = 1, \
.width = 1, \
.rit = 1, \
.xit = 1, \
.rptr_shift = 1, \
.flags = 1, \
}
/*
* FT1000D rigs capabilities.
*
* Right now, this backend is a clone of the FT990 backend.
*
* If someone with an FT1000D can test and confirm hamlib working using the
* existing FT990 support (-m 116) we perhaps could add support for this rig.
* According to the documentation at hand, the protocol for the FT1000D is,
* with the exception of dual VFO operation, identical to the FT990.
*
* Essentially the differences are:
* - additional commands concerning dual band operation
* - additional 8 channels in update packet giving a total of 1636 bytes
* - flags byte 1 bit 1 - dual receive operation instead of VFO B in use
* - flags byte 1 bit 2 - Antenna now tuning instead of fast tuning rate
* - flags byte 1 bit 4 - VFO B in use (RX or TX) instead of antenna tuning
* - flags byte 3 bit 7 - Sub VFO tuning know locked instead of sidetone active
*/
const struct rig_caps ft1000d_caps = {
.rig_model = RIG_MODEL_FT1000D,
.model_name = "FT-1000D",
.mfg_name = "Yaesu",
.version = "0.0.5",
.copyright = "LGPL",
.status = RIG_STATUS_ALPHA,
.rig_type = RIG_TYPE_TRANSCEIVER,
.ptt_type = RIG_PTT_RIG,
.dcd_type = RIG_DCD_NONE,
.port_type = RIG_PORT_SERIAL,
.serial_rate_min = 4800,
.serial_rate_max = 4800,
.serial_data_bits = 8,
.serial_stop_bits = 2,
.serial_parity = RIG_PARITY_NONE,
.serial_handshake = RIG_HANDSHAKE_NONE,
.write_delay = FT1000D_WRITE_DELAY,
.post_write_delay = FT1000D_POST_WRITE_DELAY,
.timeout = 2000,
.retry = 0,
.has_get_func = RIG_FUNC_LOCK | RIG_FUNC_TUNER | RIG_FUNC_MON,
.has_set_func = RIG_FUNC_LOCK | RIG_FUNC_TUNER,
.has_get_level = RIG_LEVEL_STRENGTH | RIG_LEVEL_SWR | RIG_LEVEL_ALC | \
RIG_LEVEL_ALC | RIG_LEVEL_RFPOWER,
.has_set_level = RIG_LEVEL_NONE,
.has_get_parm = RIG_PARM_NONE,
.has_set_parm = RIG_PARM_BACKLIGHT,
.ctcss_list = NULL,
.dcs_list = NULL,
.preamp = { RIG_DBLST_END, },
.attenuator = { RIG_DBLST_END, },
.max_rit = Hz(9999),
.max_xit = Hz(9999),
.max_ifshift = Hz(1200),
.vfo_ops = RIG_OP_CPY | RIG_OP_FROM_VFO | RIG_OP_TO_VFO |
RIG_OP_UP | RIG_OP_DOWN | RIG_OP_TUNE | RIG_OP_TOGGLE,
.targetable_vfo = RIG_TARGETABLE_ALL,
.transceive = RIG_TRN_OFF, /* Yaesus have to be polled, sigh */
.bank_qty = 0,
.chan_desc_sz = 0,
.chan_list = {
{1, 99, RIG_MTYPE_MEM, FT1000D_MEM_CAP},
RIG_CHAN_END,
},
.rx_range_list1 = {
{kHz(100), MHz(30), FT1000D_ALL_RX_MODES, -1, -1, FT1000D_VFO_ALL, FT1000D_ANTS}, /* General coverage + ham */
RIG_FRNG_END,
},
.tx_range_list1 = {
FRQ_RNG_HF(1, FT1000D_OTHER_TX_MODES, W(5), W(100), FT1000D_VFO_ALL, FT1000D_ANTS),
FRQ_RNG_HF(1, FT1000D_AM_TX_MODES, W(2), W(25), FT1000D_VFO_ALL, FT1000D_ANTS), /* AM class */
RIG_FRNG_END,
},
.rx_range_list2 = {
{kHz(100), MHz(30), FT1000D_ALL_RX_MODES, -1, -1, FT1000D_VFO_ALL, FT1000D_ANTS},
RIG_FRNG_END,
},
.tx_range_list2 = {
FRQ_RNG_HF(2, FT1000D_OTHER_TX_MODES, W(5), W(100), FT1000D_VFO_ALL, FT1000D_ANTS),
FRQ_RNG_HF(2, FT1000D_AM_TX_MODES, W(2), W(25), FT1000D_VFO_ALL, FT1000D_ANTS), /* AM class */
RIG_FRNG_END,
},
.tuning_steps = {
{FT1000D_SSB_CW_RX_MODES, Hz(10)}, /* Normal */
{FT1000D_SSB_CW_RX_MODES, Hz(100)}, /* Fast */
{FT1000D_AM_RX_MODES, Hz(100)}, /* Normal */
{FT1000D_AM_RX_MODES, kHz(1)}, /* Fast */
{FT1000D_FM_RX_MODES, Hz(100)}, /* Normal */
{FT1000D_FM_RX_MODES, kHz(1)}, /* Fast */
{FT1000D_RTTY_RX_MODES, Hz(10)}, /* Normal */
{FT1000D_RTTY_RX_MODES, Hz(100)}, /* Fast */
RIG_TS_END,
},
/* mode/filter list, .remember = order matters! */
.filters = {
{RIG_MODE_SSB, RIG_FLT_ANY}, /* Enable all filters for SSB */
{RIG_MODE_CW, RIG_FLT_ANY}, /* Enable all filters for CW */
{RIG_MODE_AM, kHz(6)}, /* normal AM filter */
{RIG_MODE_AM, kHz(2.4)}, /* AM filter with narrow selection (SSB filter switched in) */
{RIG_MODE_FM, kHz(8)}, /* FM standard filter */
{RIG_MODE_RTTY, RIG_FLT_ANY}, /* Enable all filters for RTTY */
{RIG_MODE_RTTYR,RIG_FLT_ANY}, /* Enable all filters for Reverse RTTY */
{RIG_MODE_PKTLSB,RIG_FLT_ANY}, /* Enable all filters for Packet Radio LSB */
{RIG_MODE_PKTFM,kHz(8)}, /* FM standard filter for Packet Radio FM */
RIG_FLT_END,
},
.priv = NULL, /* private data FIXME: */
.rig_init = ft990_init,
.rig_cleanup = ft990_cleanup,
.rig_open = ft990_open, /* port opened */
.rig_close = ft990_close, /* port closed */
.set_freq = ft990_set_freq,
.get_freq = ft990_get_freq,
.set_mode = ft990_set_mode,
.get_mode = ft990_get_mode,
.set_vfo = ft990_set_vfo,
.get_vfo = ft990_get_vfo,
.set_ptt = ft990_set_ptt,
.get_ptt = ft990_get_ptt,
.set_rptr_shift = ft990_set_rptr_shift,
.get_rptr_shift = ft990_get_rptr_shift,
.set_rptr_offs = ft990_set_rptr_offs,
.set_split_vfo = ft990_set_split_vfo,
.get_split_vfo = ft990_get_split_vfo,
.set_rit = ft990_set_rit,
.get_rit = ft990_get_rit,
.set_xit = ft990_set_xit,
.get_xit = ft990_get_xit,
.set_func = ft990_set_func,
.get_func = ft990_get_func,
.set_parm = ft990_set_parm,
.get_level = ft990_get_level,
.set_mem = ft990_set_mem,
.get_mem = ft990_get_mem,
.vfo_op = ft990_vfo_op,
.set_channel = ft990_set_channel,
.get_channel = ft990_get_channel,
};

Wyświetl plik

@ -7,7 +7,7 @@
* via serial interface to an FT-990 using the "CAT" interface
*
*
* $Id: ft990.c,v 1.10 2004-04-04 04:57:35 bwulf Exp $
* $Id: ft990.c,v 1.11 2004-08-17 20:07:20 fillods Exp $
*
*
* This library is free software; you can redistribute it and/or
@ -277,7 +277,7 @@ const struct rig_caps ft990_caps = {
/*
* rig_init
*/
static int ft990_init(RIG *rig) {
int ft990_init(RIG *rig) {
struct ft990_priv_data *priv;
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
@ -310,7 +310,7 @@ static int ft990_init(RIG *rig) {
/*
* rig_cleanup
*/
static int ft990_cleanup(RIG *rig) {
int ft990_cleanup(RIG *rig) {
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
@ -329,7 +329,7 @@ static int ft990_cleanup(RIG *rig) {
/*
* rig_open
*/
static int ft990_open(RIG *rig) {
int ft990_open(RIG *rig) {
struct rig_state *rig_s;
struct ft990_priv_data *priv;
int err;
@ -367,7 +367,7 @@ static int ft990_open(RIG *rig) {
/*
* rig_close
*/
static int ft990_close(RIG *rig) {
int ft990_close(RIG *rig) {
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
@ -395,7 +395,7 @@ static int ft990_close(RIG *rig) {
* In all other cases the passed vfo is selected if it differs
* from the currently selected VFO.
*/
static int ft990_set_freq(RIG *rig, vfo_t vfo, freq_t freq) {
int ft990_set_freq(RIG *rig, vfo_t vfo, freq_t freq) {
struct ft990_priv_data *priv;
int err;
@ -453,7 +453,7 @@ static int ft990_set_freq(RIG *rig, vfo_t vfo, freq_t freq) {
* In all other cases the passed vfo is selected if it differs
* from the currently selected VFO.
*/
static int ft990_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) {
int ft990_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) {
struct ft990_priv_data *priv;
unsigned char *p;
freq_t f;
@ -538,7 +538,7 @@ static int ft990_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) {
* In all other cases the passed vfo is selected if it differs
* from the currently selected VFO.
*/
static int ft990_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
int ft990_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
{
struct ft990_priv_data *priv;
int err;
@ -603,7 +603,7 @@ static int ft990_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
* Comments: The passed value for the vfo is ignored since the PTT status
* is independent from the VFO selection.
*/
static int ft990_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt)
int ft990_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt)
{
struct ft990_priv_data *priv;
int err;
@ -651,7 +651,7 @@ static int ft990_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt)
* from the currently selected VFO.
* Repeater shift can only be set when in FM mode.
*/
static int ft990_set_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t rptr_shift)
int ft990_set_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t rptr_shift)
{
struct ft990_priv_data *priv;
unsigned char ci;
@ -761,7 +761,7 @@ static int ft990_set_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t rptr_shift)
* from the currently selected VFO.
* Repeater shift can only be obtained when in FM mode.
*/
static int ft990_get_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t *rptr_shift)
int ft990_get_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t *rptr_shift)
{
struct ft990_priv_data *priv;
ft990_op_data_t *p;
@ -842,7 +842,7 @@ static int ft990_get_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t *rptr_shift)
* Comments: The passed value for the vfo is ignored since the
* repeater frequency offset is independent from the VFO selection.
*/
static int ft990_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t offs)
int ft990_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t offs)
{
unsigned char bcd[(int) FT990_BCD_RPTR_OFFSET/2];
int err;
@ -895,7 +895,7 @@ static int ft990_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t offs)
* the correct TX VFO is selected by the rig in split mode.
* An error is returned if vfo and tx_vfo are the same.
*/
static int ft990_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
int ft990_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
{
struct ft990_priv_data *priv;
unsigned char ci;
@ -977,7 +977,7 @@ static int ft990_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
* Comments: The passed value for the vfo is ignored in order to
* preserve the current split vfo system settings.
*/
static int ft990_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vfo)
int ft990_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vfo)
{
struct ft990_priv_data *priv;
int err;
@ -1050,7 +1050,7 @@ static int ft990_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vf
* rit = 0 && xit enabled -> disable rit
* rit = 0 && xit disabled -> disable rit and set frequency = 0
*/
static int ft990_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit)
int ft990_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit)
{
struct ft990_priv_data *priv;
int err;
@ -1139,7 +1139,7 @@ static int ft990_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit)
* In all other cases the passed vfo is selected if it differs
* from the currently selected VFO.
*/
static int ft990_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit)
int ft990_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit)
{
struct ft990_priv_data *priv;
unsigned char ci;
@ -1225,7 +1225,7 @@ static int ft990_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit)
* xit = 0 && rit enabled -> disable xit
* xit = 0 && rit disabled -> disable xit and set frequency = 0
*/
static int ft990_set_xit(RIG *rig, vfo_t vfo, shortfreq_t xit)
int ft990_set_xit(RIG *rig, vfo_t vfo, shortfreq_t xit)
{
struct ft990_priv_data *priv;
int err;
@ -1312,7 +1312,7 @@ static int ft990_set_xit(RIG *rig, vfo_t vfo, shortfreq_t xit)
* In all other cases the passed vfo is selected if it differs
* from the currently selected VFO.
*/
static int ft990_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit)
int ft990_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit)
{
struct ft990_priv_data *priv;
unsigned char ci;
@ -1389,7 +1389,7 @@ static int ft990_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit)
* Comments: The passed value for the vfo is ignored since the
* the status of rig functions are vfo independent.
*/
static int ft990_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
int ft990_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
{
unsigned char ci;
int err;
@ -1445,7 +1445,7 @@ static int ft990_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
* Comments: The passed value for the vfo is ignored since the
* the status of rig function are vfo independent.
*/
static int ft990_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status)
int ft990_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status)
{
struct ft990_priv_data *priv;
int err;
@ -1497,7 +1497,7 @@ static int ft990_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status)
*
* Comments:
*/
static int ft990_set_parm(RIG *rig, setting_t parm, value_t val)
int ft990_set_parm(RIG *rig, setting_t parm, value_t val)
{
int err;
@ -1551,7 +1551,7 @@ static int ft990_set_parm(RIG *rig, setting_t parm, value_t val)
*
* Notes: Hamlib currently doesn't provide support for packet radio modes
*/
static int ft990_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
int ft990_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
{
struct ft990_priv_data *priv;
unsigned char bw;
@ -1686,7 +1686,7 @@ static int ft990_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
*
* Notes: Hamlib currently doesn't provide support for packet radio modes
*/
static int ft990_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
int ft990_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
{
struct ft990_priv_data *priv;
unsigned char *p;
@ -1827,7 +1827,7 @@ switch(vfo) {
* In all other cases the passed vfo is selected if it differs
* from the currently selected VFO.
*/
static int ft990_set_vfo(RIG *rig, vfo_t vfo) {
int ft990_set_vfo(RIG *rig, vfo_t vfo) {
struct ft990_priv_data *priv;
unsigned char ci;
int err;
@ -1900,7 +1900,7 @@ static int ft990_set_vfo(RIG *rig, vfo_t vfo) {
* The result is stored in the priv->current_vfo data structure
* for later retrieval.
*/
static int ft990_get_vfo(RIG *rig, vfo_t *vfo) {
int ft990_get_vfo(RIG *rig, vfo_t *vfo) {
struct ft990_priv_data *priv;
int err;
@ -1971,7 +1971,7 @@ static int ft990_get_vfo(RIG *rig, vfo_t *vfo) {
* In all other cases the passed vfo is selected if it differs
* from the currently selected VFO.
*/
static int ft990_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *value)
int ft990_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *value)
{
struct ft990_priv_data *priv;
struct rig_state *rig_s;
@ -2057,7 +2057,7 @@ static int ft990_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *value)
* In all other cases the passed vfo is selected if it differs
* from the currently selected VFO.
*/
static int ft990_vfo_op(RIG *rig, vfo_t vfo, vfo_op_t op)
int ft990_vfo_op(RIG *rig, vfo_t vfo, vfo_op_t op)
{
struct ft990_priv_data *priv;
unsigned char ci;
@ -2154,7 +2154,7 @@ static int ft990_vfo_op(RIG *rig, vfo_t vfo, vfo_op_t op)
* Comments: The passed value for the vfo is ignored since the
* the channel selection is vfo independent.
*/
static int ft990_set_mem(RIG *rig, vfo_t vfo, int ch)
int ft990_set_mem(RIG *rig, vfo_t vfo, int ch)
{
struct ft990_priv_data *priv;
int err;
@ -2200,7 +2200,7 @@ static int ft990_set_mem(RIG *rig, vfo_t vfo, int ch)
* the channel selection is vfo independent.
* Will succeed only when in RIG_VFO_MEM mode.
*/
static int ft990_get_mem(RIG *rig, vfo_t vfo, int *ch)
int ft990_get_mem(RIG *rig, vfo_t vfo, int *ch)
{
struct ft990_priv_data *priv;
int err;
@ -2254,7 +2254,7 @@ static int ft990_get_mem(RIG *rig, vfo_t vfo, int *ch)
* -------------------------------------------------------------------------
* Returns RIG_OK on success or an error code on failure
*/
static int ft990_set_channel (RIG *rig, const channel_t *chan)
int ft990_set_channel (RIG *rig, const channel_t *chan)
{
struct ft990_priv_data *priv;
@ -2282,7 +2282,7 @@ static int ft990_set_channel (RIG *rig, const channel_t *chan)
*
* Comments: TX attributes are set equal to their corresponding RX attributes.
*/
static int ft990_get_channel (RIG *rig, channel_t *chan)
int ft990_get_channel (RIG *rig, channel_t *chan)
{
struct ft990_priv_data *priv;
ft990_op_data_t *p;
@ -2432,7 +2432,7 @@ static int ft990_get_channel (RIG *rig, channel_t *chan)
* Returns: RIG_OK if all called functions are successful,
* otherwise returns error from called functiion
*/
static int ft990_get_update_data(RIG *rig, unsigned char ci, unsigned short rl) {
int ft990_get_update_data(RIG *rig, unsigned char ci, unsigned short rl) {
struct rig_state *rig_s;
struct ft990_priv_data *priv;
int n, err; /* for read_ */
@ -2506,7 +2506,7 @@ static int ft990_get_update_data(RIG *rig, unsigned char ci, unsigned short rl)
* Returns: RIG_OK if all called functions are successful,
* otherwise returns error from called functiion
*/
static int ft990_send_static_cmd(RIG *rig, unsigned char ci) {
int ft990_send_static_cmd(RIG *rig, unsigned char ci) {
struct rig_state *rig_s;
struct ft990_priv_data *priv;
int err;
@ -2547,7 +2547,7 @@ static int ft990_send_static_cmd(RIG *rig, unsigned char ci) {
* Returns: RIG_OK if all called functions are successful,
* otherwise returns error from called functiion
*/
static int ft990_send_dynamic_cmd(RIG *rig, unsigned char ci,
int ft990_send_dynamic_cmd(RIG *rig, unsigned char ci,
unsigned char p1, unsigned char p2,
unsigned char p3, unsigned char p4) {
struct rig_state *rig_s;
@ -2601,7 +2601,7 @@ static int ft990_send_dynamic_cmd(RIG *rig, unsigned char ci,
* Returns: RIG_OK if all called functions are successful,
* otherwise returns error from called functiion
*/
static int ft990_send_dial_freq(RIG *rig, unsigned char ci, freq_t freq) {
int ft990_send_dial_freq(RIG *rig, unsigned char ci, freq_t freq) {
struct rig_state *rig_s;
struct ft990_priv_data *priv;
int err;
@ -2654,7 +2654,7 @@ static int ft990_send_dial_freq(RIG *rig, unsigned char ci, freq_t freq) {
* Returns: RIG_OK if all called functions are successful,
* otherwise returns error from called functiion
*/
static int ft990_send_rit_freq(RIG *rig, unsigned char ci, shortfreq_t rit) {
int ft990_send_rit_freq(RIG *rig, unsigned char ci, shortfreq_t rit) {
struct ft990_priv_data *priv;
struct rig_state *rig_s;
int err;

Wyświetl plik

@ -7,7 +7,7 @@
* via serial interface to an FT-990 using the "CAT" interface
*
*
* $Id: ft990.h,v 1.4 2003-12-23 13:32:11 bwulf Exp $
* $Id: ft990.h,v 1.5 2004-08-17 20:07:20 fillods Exp $
*
*
* This library is free software; you can redistribute it and/or
@ -150,36 +150,36 @@ typedef enum ft990_native_cmd_e {
/* HAMLIB API implementation */
static int ft990_init(RIG *rig);
static int ft990_cleanup(RIG *rig);
static int ft990_open(RIG *rig);
static int ft990_close(RIG *rig);
static int ft990_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
static int ft990_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
static int ft990_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
static int ft990_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
static int ft990_set_vfo(RIG *rig, vfo_t vfo);
static int ft990_get_vfo(RIG *rig, vfo_t *vfo);
static int ft990_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt);
static int ft990_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt);
static int ft990_set_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t rptr_shift);
static int ft990_get_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t *rptr_shift);
static int ft990_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t offs);
static int ft990_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo);
static int ft990_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vfo);
static int ft990_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit);
static int ft990_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit);
static int ft990_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
static int ft990_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
static int ft990_set_parm(RIG *rig, setting_t parm, value_t val);
static int ft990_set_xit(RIG *rig, vfo_t vfo, shortfreq_t xit);
static int ft990_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit);
static int ft990_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
static int ft990_vfo_op(RIG *rig, vfo_t vfo, vfo_op_t op);
static int ft990_set_mem(RIG *rig, vfo_t vfo, int ch);
static int ft990_get_mem(RIG *rig, vfo_t vfo, int *ch);
static int ft990_set_channel (RIG *rig, const channel_t *chan);
static int ft990_get_channel (RIG *rig, channel_t *chan);
int ft990_init(RIG *rig);
int ft990_cleanup(RIG *rig);
int ft990_open(RIG *rig);
int ft990_close(RIG *rig);
int ft990_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
int ft990_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
int ft990_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
int ft990_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
int ft990_set_vfo(RIG *rig, vfo_t vfo);
int ft990_get_vfo(RIG *rig, vfo_t *vfo);
int ft990_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt);
int ft990_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt);
int ft990_set_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t rptr_shift);
int ft990_get_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t *rptr_shift);
int ft990_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t offs);
int ft990_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo);
int ft990_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vfo);
int ft990_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit);
int ft990_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit);
int ft990_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
int ft990_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
int ft990_set_parm(RIG *rig, setting_t parm, value_t val);
int ft990_set_xit(RIG *rig, vfo_t vfo, shortfreq_t xit);
int ft990_get_xit(RIG *rig, vfo_t vfo, shortfreq_t *xit);
int ft990_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
int ft990_vfo_op(RIG *rig, vfo_t vfo, vfo_op_t op);
int ft990_set_mem(RIG *rig, vfo_t vfo, int ch);
int ft990_get_mem(RIG *rig, vfo_t vfo, int *ch);
int ft990_set_channel (RIG *rig, const channel_t *chan);
int ft990_get_channel (RIG *rig, channel_t *chan);
/*

Wyświetl plik

@ -7,7 +7,7 @@
* via serial interface to a Yaesu rig
*
*
* $Id: yaesu.c,v 1.21 2004-08-10 21:08:41 fillods Exp $
* $Id: yaesu.c,v 1.22 2004-08-17 20:07:20 fillods Exp $
*
*
* This library is free software; you can redistribute it and/or
@ -63,6 +63,7 @@ DECLARE_INITRIG_BACKEND(yaesu)
rig_register(&ft900_caps);
rig_register(&ft920_caps);
rig_register(&ft990_caps);
rig_register(&ft1000d_caps);
rig_register(&ft1000mp_caps);
rig_register(&frg100_caps);
rig_register(&frg8800_caps);

Wyświetl plik

@ -6,7 +6,7 @@
*
* Common yaesu declarations for hamlib
*
* $Id: yaesu.h,v 1.23 2004-08-10 21:08:42 fillods Exp $
* $Id: yaesu.h,v 1.24 2004-08-17 20:07:20 fillods Exp $
*
*
*
@ -61,6 +61,7 @@ extern const struct rig_caps ft900_caps;
extern const struct rig_caps ft920_caps;
extern const struct rig_caps ft990_caps;
extern const struct rig_caps ft1000mp_caps;
extern const struct rig_caps ft1000d_caps;
extern const struct rig_caps frg100_caps;
extern const struct rig_caps frg8800_caps;
extern const struct rig_caps frg9600_caps;