kopia lustrzana https://github.com/Hamlib/Hamlib
Update LGPL header in Icom source files.
TNX to Lucian Laga, YO6PLB, for the notification.Hamlib-1.2.15
rodzic
0ca4d18d4c
commit
78285ab8eb
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -53,7 +53,7 @@
|
|||
#define DELTAII_STR_CAL { 0, { } }
|
||||
|
||||
|
||||
static const struct icom_priv_caps delta2_priv_caps = {
|
||||
static const struct icom_priv_caps delta2_priv_caps = {
|
||||
0x01, /* default address */
|
||||
1, /* 731 mode */
|
||||
ic737_ts_sc_list /* TODO: ts_sc_list */
|
||||
|
@ -61,9 +61,9 @@ static const struct icom_priv_caps delta2_priv_caps = {
|
|||
|
||||
const struct rig_caps delta2_caps = {
|
||||
.rig_model = RIG_MODEL_DELTAII,
|
||||
.model_name = "Delta II",
|
||||
.mfg_name = "Ten-Tec",
|
||||
.version = "0.1",
|
||||
.model_name = "Delta II",
|
||||
.mfg_name = "Ten-Tec",
|
||||
.version = "0.1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -75,13 +75,13 @@ const struct rig_caps delta2_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
@ -103,20 +103,20 @@ const struct rig_caps delta2_caps = {
|
|||
|
||||
.chan_list = {
|
||||
/* TODO: 32 simplex, 16 duplex */
|
||||
{ 0, 47, RIG_MTYPE_MEM, IC_MIN_MEM_CAP },
|
||||
{ 0, 47, RIG_MTYPE_MEM, IC_MIN_MEM_CAP },
|
||||
RIG_CHAN_END, },
|
||||
.rx_range_list1 = {
|
||||
RIG_FRNG_END, },
|
||||
.tx_range_list1 = { RIG_FRNG_END, },
|
||||
|
||||
/* These limits measured on Omni VI SN 1A10473 */
|
||||
.rx_range_list2 = {
|
||||
.rx_range_list2 = {
|
||||
{kHz(100),kHz(29999),DELTAII_ALL_RX_MODES,-1,-1,DELTAII_VFO_ALL},
|
||||
RIG_FRNG_END, },
|
||||
|
||||
/* Note: There is no AM mode. */
|
||||
.tx_range_list2 = {
|
||||
{kHz(1800),MHz(2)-1,DELTAII_OTHER_TX_MODES,5000,100000,DELTAII_VFO_ALL},
|
||||
.tx_range_list2 = {
|
||||
{kHz(1800),MHz(2)-1,DELTAII_OTHER_TX_MODES,5000,100000,DELTAII_VFO_ALL},
|
||||
{kHz(3500),MHz(4)-1,DELTAII_OTHER_TX_MODES,5000,100000,DELTAII_VFO_ALL},
|
||||
{MHz(7),kHz(7300),DELTAII_OTHER_TX_MODES,5000,100000,DELTAII_VFO_ALL},
|
||||
{kHz(10100),kHz(10150),DELTAII_OTHER_TX_MODES,5000,100000,DELTAII_VFO_ALL},
|
||||
|
|
72
icom/frame.c
72
icom/frame.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -49,7 +49,7 @@
|
|||
* The smallest frame is 6 bytes, the biggest is at least 13 bytes.
|
||||
*/
|
||||
int make_cmd_frame(char frame[], char re_id, char ctrl_id, char cmd, int subcmd, const unsigned char *data, int data_len)
|
||||
{
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
#if 0
|
||||
|
@ -70,7 +70,7 @@ int make_cmd_frame(char frame[], char re_id, char ctrl_id, char cmd, int subcmd,
|
|||
else if ((j = subcmd & 0xff00)) frame[i++] = j >> 8;
|
||||
#endif
|
||||
frame[i++] = subcmd & 0xff;
|
||||
}
|
||||
}
|
||||
if (data_len != 0) {
|
||||
memcpy(frame+i, data, data_len);
|
||||
i += data_len;
|
||||
|
@ -83,14 +83,14 @@ int make_cmd_frame(char frame[], char re_id, char ctrl_id, char cmd, int subcmd,
|
|||
|
||||
/*
|
||||
* icom_one_transaction
|
||||
*
|
||||
*
|
||||
* We assume that rig!=NULL, rig->state!= NULL, payload!=NULL, data!=NULL, data_len!=NULL
|
||||
* Otherwise, you'll get a nice seg fault. You've been warned!
|
||||
* payload can be NULL if payload_len == 0
|
||||
* subcmd can be equal to -1 (no subcmd wanted)
|
||||
* if no answer is to be expected, data_len must be set to NULL to tell so
|
||||
*
|
||||
* return RIG_OK if transaction completed,
|
||||
* return RIG_OK if transaction completed,
|
||||
* or a negative value otherwise indicating the error.
|
||||
*/
|
||||
int icom_one_transaction (RIG *rig, int cmd, int subcmd, const unsigned char *payload, int payload_len, unsigned char *data, int *data_len)
|
||||
|
@ -112,8 +112,8 @@ int icom_one_transaction (RIG *rig, int cmd, int subcmd, const unsigned char *pa
|
|||
frm_len = make_cmd_frame((char *) sendbuf, priv->re_civ_addr, ctrl_id, cmd,
|
||||
subcmd, payload, payload_len);
|
||||
|
||||
/*
|
||||
* should check return code and that write wrote cmd_len chars!
|
||||
/*
|
||||
* should check return code and that write wrote cmd_len chars!
|
||||
*/
|
||||
Hold_Decode(rig);
|
||||
|
||||
|
@ -135,7 +135,7 @@ int icom_one_transaction (RIG *rig, int cmd, int subcmd, const unsigned char *pa
|
|||
* - if we get a timeout, then retry to send the frame,
|
||||
* up to rs->retry times.
|
||||
*/
|
||||
|
||||
|
||||
retval = read_icom_frame(&rs->rigport, buf);
|
||||
if (retval == -RIG_ETIMEOUT || retval == 0)
|
||||
{
|
||||
|
@ -149,7 +149,7 @@ int icom_one_transaction (RIG *rig, int cmd, int subcmd, const unsigned char *pa
|
|||
Unhold_Decode(rig);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
switch (buf[retval-1])
|
||||
{
|
||||
case COL:
|
||||
|
@ -165,8 +165,8 @@ int icom_one_transaction (RIG *rig, int cmd, int subcmd, const unsigned char *pa
|
|||
Unhold_Decode(rig);
|
||||
return -RIG_BUSERROR;
|
||||
}
|
||||
|
||||
if (retval != frm_len)
|
||||
|
||||
if (retval != frm_len)
|
||||
{
|
||||
/* Not the same length??? */
|
||||
/* Problem on ci-v bus? */
|
||||
|
@ -193,20 +193,20 @@ int icom_one_transaction (RIG *rig, int cmd, int subcmd, const unsigned char *pa
|
|||
}
|
||||
|
||||
/*
|
||||
* wait for ACK ...
|
||||
* wait for ACK ...
|
||||
* FIXME: handle pading/collisions
|
||||
* ACKFRMLEN is the smallest frame we can expect from the rig
|
||||
*/
|
||||
frm_len = read_icom_frame(&rs->rigport, buf);
|
||||
Unhold_Decode(rig);
|
||||
|
||||
if (frm_len < 0)
|
||||
|
||||
if (frm_len < 0)
|
||||
{
|
||||
/* RIG_TIMEOUT: timeout getting response, return timeout */
|
||||
/* other error: return it */
|
||||
return frm_len;
|
||||
}
|
||||
|
||||
|
||||
switch (buf[frm_len-1])
|
||||
{
|
||||
case COL:
|
||||
|
@ -231,13 +231,13 @@ int icom_one_transaction (RIG *rig, int cmd, int subcmd, const unsigned char *pa
|
|||
/*
|
||||
* TODO: check addresses in reply frame
|
||||
*/
|
||||
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* icom_transaction
|
||||
*
|
||||
*
|
||||
* This function honors rigport.retry count.
|
||||
*
|
||||
* We assume that rig!=NULL, rig->state!= NULL, payload!=NULL, data!=NULL, data_len!=NULL
|
||||
|
@ -245,7 +245,7 @@ int icom_one_transaction (RIG *rig, int cmd, int subcmd, const unsigned char *pa
|
|||
* payload can be NULL if payload_len == 0
|
||||
* subcmd can be equal to -1 (no subcmd wanted)
|
||||
*
|
||||
* return RIG_OK if transaction completed,
|
||||
* return RIG_OK if transaction completed,
|
||||
* or a negative value otherwise indicating the error.
|
||||
*/
|
||||
int icom_transaction (RIG *rig, int cmd, int subcmd, const unsigned char *payload, int payload_len, unsigned char *data, int *data_len)
|
||||
|
@ -286,7 +286,7 @@ int read_icom_frame(hamlib_port_t *p, unsigned char rxbuffer[])
|
|||
*/
|
||||
do
|
||||
{
|
||||
int i = read_string(p, rx_ptr, MAXFRAMELEN-read,
|
||||
int i = read_string(p, rx_ptr, MAXFRAMELEN-read,
|
||||
icom_block_end, icom_block_end_length);
|
||||
if (i < 0) /* die on errors */
|
||||
return i;
|
||||
|
@ -298,7 +298,7 @@ int read_icom_frame(hamlib_port_t *p, unsigned char rxbuffer[])
|
|||
/* OK, we got something. add it in and continue */
|
||||
read += i;
|
||||
rx_ptr += i;
|
||||
} while ((rxbuffer[read-1] != FI) && (rxbuffer[read-1] != COL));
|
||||
} while ((rxbuffer[read-1] != FI) && (rxbuffer[read-1] != COL));
|
||||
return read;
|
||||
}
|
||||
|
||||
|
@ -314,7 +314,7 @@ int read_icom_frame(hamlib_port_t *p, unsigned char rxbuffer[])
|
|||
* TODO: be more exhaustive
|
||||
* assumes rig!=NULL
|
||||
*/
|
||||
int rig2icom_mode(RIG *rig, rmode_t mode, pbwidth_t width,
|
||||
int rig2icom_mode(RIG *rig, rmode_t mode, pbwidth_t width,
|
||||
unsigned char *md, signed char *pd)
|
||||
{
|
||||
unsigned char icmode;
|
||||
|
@ -355,7 +355,7 @@ int rig2icom_mode(RIG *rig, rmode_t mode, pbwidth_t width,
|
|||
icmode_ext = PD_WIDE_3; /* default to Wide */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
*md = icmode;
|
||||
*pd = icmode_ext;
|
||||
return RIG_OK;
|
||||
|
@ -395,7 +395,7 @@ void icom2rig_mode(RIG *rig, unsigned char md, int pd, rmode_t *mode, pbwidth_t
|
|||
md);
|
||||
*mode = RIG_MODE_NONE;
|
||||
}
|
||||
|
||||
|
||||
/* Most rigs return 1-wide, 2-narrow; or if it has 3 filters: 1-wide, 2-middle,
|
||||
3-narrow. (Except for the 706 mkIIg 0-wide, 1-middle, 2-narrow.) For DSP
|
||||
rigs these are presets, which can be programmed for 30 - 41 bandwidths,
|
||||
|
@ -404,17 +404,17 @@ void icom2rig_mode(RIG *rig, unsigned char md, int pd, rmode_t *mode, pbwidth_t
|
|||
if (rig->caps->rig_model == RIG_MODEL_IC706MKIIG ||
|
||||
rig->caps->rig_model == RIG_MODEL_IC706 ||
|
||||
rig->caps->rig_model == RIG_MODEL_IC706MKII) pd++;
|
||||
|
||||
|
||||
switch (pd) {
|
||||
case 0x01:
|
||||
case 0x01:
|
||||
/* if no wide filter defined it's the default */
|
||||
if (!(*width = rig_passband_wide(rig, *mode)))
|
||||
if (!(*width = rig_passband_wide(rig, *mode)))
|
||||
*width = rig_passband_normal(rig, *mode);
|
||||
break;
|
||||
|
||||
case 0x02:
|
||||
if ((*width = rig_passband_wide(rig, *mode)))
|
||||
*width = rig_passband_normal(rig, *mode);
|
||||
*width = rig_passband_normal(rig, *mode);
|
||||
else
|
||||
/* This really just depends on how you program the table. */
|
||||
*width = rig_passband_narrow(rig, *mode);
|
||||
|
@ -426,7 +426,7 @@ void icom2rig_mode(RIG *rig, unsigned char md, int pd, rmode_t *mode, pbwidth_t
|
|||
|
||||
case -1:
|
||||
break; /* no passband data */
|
||||
|
||||
|
||||
default:
|
||||
rig_debug(RIG_DEBUG_ERR,"icom: Unsupported Icom mode width %#.2x\n", pd);
|
||||
}
|
||||
|
|
20
icom/frame.h
20
icom/frame.h
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
|||
#define MAXFRAMELEN 56
|
||||
|
||||
/*
|
||||
* helper functions
|
||||
* helper functions
|
||||
*/
|
||||
int make_cmd_frame(char frame[], char re_id, char ctrl_id, char cmd, int subcmd, const unsigned char *data, int data_len);
|
||||
|
||||
|
|
32
icom/ic271.c
32
icom/ic271.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
|||
*
|
||||
* Please report testing / patches. Some capabilities may be missing too. --sf
|
||||
*/
|
||||
static const struct icom_priv_caps ic271_priv_caps = {
|
||||
static const struct icom_priv_caps ic271_priv_caps = {
|
||||
0x20, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -53,9 +53,9 @@ static const struct icom_priv_caps ic271_priv_caps = {
|
|||
|
||||
const struct rig_caps ic271_caps = {
|
||||
.rig_model = RIG_MODEL_IC271,
|
||||
.model_name = "IC-271",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-271",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -67,13 +67,13 @@ const struct rig_caps ic271_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
30
icom/ic275.c
30
icom/ic275.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
|||
* FIXME: this appears to be the IC-275A/E
|
||||
* what about the IC-275H ? please give it a fix. --SF
|
||||
*/
|
||||
static const struct icom_priv_caps ic275_priv_caps = {
|
||||
static const struct icom_priv_caps ic275_priv_caps = {
|
||||
0x10, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -48,8 +48,8 @@ static const struct icom_priv_caps ic275_priv_caps = {
|
|||
|
||||
const struct rig_caps ic275_caps = {
|
||||
.rig_model = RIG_MODEL_IC275,
|
||||
.model_name = "IC-275",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-275",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
|
@ -62,13 +62,13 @@ const struct rig_caps ic275_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
32
icom/ic471.c
32
icom/ic471.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
|||
*
|
||||
* Please report testing / patches. Some capabilities may be missing too. --sf
|
||||
*/
|
||||
static const struct icom_priv_caps ic471_priv_caps = {
|
||||
static const struct icom_priv_caps ic471_priv_caps = {
|
||||
0x22, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -52,9 +52,9 @@ static const struct icom_priv_caps ic471_priv_caps = {
|
|||
|
||||
const struct rig_caps ic471_caps = {
|
||||
.rig_model = RIG_MODEL_IC471,
|
||||
.model_name = "IC-471",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-471",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -66,13 +66,13 @@ const struct rig_caps ic471_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
30
icom/ic475.c
30
icom/ic475.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
|||
* FIXME: this appears to be the IC-475A/E
|
||||
* what about the IC-475H ? please give it a fix. --SF
|
||||
*/
|
||||
static const struct icom_priv_caps ic475_priv_caps = {
|
||||
static const struct icom_priv_caps ic475_priv_caps = {
|
||||
0x14, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -48,8 +48,8 @@ static const struct icom_priv_caps ic475_priv_caps = {
|
|||
|
||||
const struct rig_caps ic475_caps = {
|
||||
.rig_model = RIG_MODEL_IC475,
|
||||
.model_name = "IC-475",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-475",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
|
@ -62,13 +62,13 @@ const struct rig_caps ic475_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
/*
|
||||
* Hamlib CI-V backend - description of IC-7000 and variations
|
||||
* Adapted from IC-7800 code 2006 by Kent Hill
|
||||
* Adapted from IC-7800 code 2006 by Kent Hill
|
||||
* Copyright (c) 2004-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -106,7 +106,7 @@
|
|||
*
|
||||
* TODO: complete command set (esp. the $1A bunch!) and testing..
|
||||
*/
|
||||
static const struct icom_priv_caps IC7000_priv_caps = {
|
||||
static const struct icom_priv_caps IC7000_priv_caps = {
|
||||
0x70, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic7000_ts_sc_list
|
||||
|
@ -115,8 +115,8 @@ static const struct icom_priv_caps IC7000_priv_caps = {
|
|||
|
||||
const struct rig_caps ic7000_caps = {
|
||||
.rig_model = RIG_MODEL_IC7000,
|
||||
.model_name = "IC-7000",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-7000",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".2",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
|
@ -129,13 +129,13 @@ const struct rig_caps ic7000_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC7000_FUNCS,
|
||||
.has_set_func = IC7000_FUNCS,
|
||||
.has_set_func = IC7000_FUNCS,
|
||||
.has_get_level = IC7000_LEVELS,
|
||||
.has_set_level = RIG_LEVEL_SET(IC7000_LEVELS),
|
||||
.has_get_parm = IC7000_PARMS,
|
||||
|
@ -167,15 +167,15 @@ const struct rig_caps ic7000_caps = {
|
|||
|
||||
.rx_range_list1 = { {kHz(30),MHz(199.999999),IC7000_ALL_RX_MODES,-1,-1,IC7000_VFOS},
|
||||
{MHz(400),MHz(470), IC7000_ALL_RX_MODES,-1,-1,IC7000_VFOS}, RIG_FRNG_END, },
|
||||
.tx_range_list1 = {
|
||||
.tx_range_list1 = {
|
||||
FRQ_RNG_HF(1,IC7000_OTHER_TX_MODES, W(2),W(100),IC7000_VFOS,RIG_ANT_1),
|
||||
FRQ_RNG_6m(1,IC7000_OTHER_TX_MODES, W(2),W(100),IC7000_VFOS,RIG_ANT_1),
|
||||
FRQ_RNG_2m(1,IC7000_OTHER_TX_MODES, W(2),W(50),IC7000_VFOS,RIG_ANT_2),
|
||||
FRQ_RNG_70cm(1,IC7000_OTHER_TX_MODES, W(2), W(35), IC7000_VFOS, RIG_ANT_2),
|
||||
FRQ_RNG_70cm(1,IC7000_OTHER_TX_MODES, W(2), W(35), IC7000_VFOS, RIG_ANT_2),
|
||||
FRQ_RNG_HF(1,IC7000_AM_TX_MODES, W(1),W(40),IC7000_VFOS,RIG_ANT_1), /* AM class */
|
||||
FRQ_RNG_6m(1,IC7000_AM_TX_MODES, W(1),W(40),IC7000_VFOS,RIG_ANT_1), /* AM class */
|
||||
FRQ_RNG_2m(1,IC7000_AM_TX_MODES, W(2),W(20),IC7000_VFOS,RIG_ANT_2),
|
||||
FRQ_RNG_70cm(1,IC7000_OTHER_TX_MODES, W(2), W(14), IC7000_VFOS, RIG_ANT_2),
|
||||
FRQ_RNG_70cm(1,IC7000_OTHER_TX_MODES, W(2), W(14), IC7000_VFOS, RIG_ANT_2),
|
||||
RIG_FRNG_END, },
|
||||
|
||||
.rx_range_list2 = { {kHz(30),MHz(199.999999),IC7000_ALL_RX_MODES,-1,-1,IC7000_VFOS},
|
||||
|
@ -184,11 +184,11 @@ const struct rig_caps ic7000_caps = {
|
|||
FRQ_RNG_HF(2,IC7000_OTHER_TX_MODES, W(2),W(100),IC7000_VFOS,RIG_ANT_1),
|
||||
FRQ_RNG_6m(2,IC7000_OTHER_TX_MODES, W(2),W(100),IC7000_VFOS,RIG_ANT_1),
|
||||
FRQ_RNG_2m(2,IC7000_OTHER_TX_MODES, W(2),W(50),IC7000_VFOS,RIG_ANT_2),
|
||||
FRQ_RNG_70cm(2,IC7000_OTHER_TX_MODES, W(2), W(35), IC7000_VFOS, RIG_ANT_2),
|
||||
FRQ_RNG_70cm(2,IC7000_OTHER_TX_MODES, W(2), W(35), IC7000_VFOS, RIG_ANT_2),
|
||||
FRQ_RNG_HF(2,IC7000_AM_TX_MODES, W(1),W(40),IC7000_VFOS,RIG_ANT_1), /* AM class */
|
||||
FRQ_RNG_6m(2,IC7000_AM_TX_MODES, W(1),W(40),IC7000_VFOS,RIG_ANT_1), /* AM class */
|
||||
FRQ_RNG_2m(2,IC7000_AM_TX_MODES, W(2),W(20),IC7000_VFOS,RIG_ANT_2),
|
||||
FRQ_RNG_70cm(2,IC7000_OTHER_TX_MODES, W(2), W(14), IC7000_VFOS, RIG_ANT_2),
|
||||
FRQ_RNG_70cm(2,IC7000_OTHER_TX_MODES, W(2), W(14), IC7000_VFOS, RIG_ANT_2),
|
||||
RIG_FRNG_END, },
|
||||
|
||||
.tuning_steps = {
|
||||
|
@ -215,8 +215,8 @@ const struct rig_caps ic7000_caps = {
|
|||
{RIG_MODE_FM, kHz(10)},
|
||||
{RIG_MODE_FM, kHz(15)},
|
||||
{RIG_MODE_FM, kHz(7)},
|
||||
{RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_RTTY|RIG_MODE_RTTYR, Hz(500)},
|
||||
{RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_RTTY|RIG_MODE_RTTYR, Hz(250)},
|
||||
{RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_RTTY|RIG_MODE_RTTYR, Hz(500)},
|
||||
{RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_RTTY|RIG_MODE_RTTYR, Hz(250)},
|
||||
{RIG_MODE_CW|RIG_MODE_CWR, kHz(1.2)},
|
||||
{RIG_MODE_RTTY|RIG_MODE_RTTYR, kHz(2.4)},
|
||||
{RIG_MODE_AM, kHz(6)},
|
||||
|
@ -225,7 +225,7 @@ const struct rig_caps ic7000_caps = {
|
|||
{RIG_MODE_WFM, kHz(280)},
|
||||
RIG_FLT_END,
|
||||
},
|
||||
|
||||
|
||||
.str_cal = IC7000_STR_CAL,
|
||||
|
||||
.cfgparams = icom_cfg_params,
|
||||
|
|
32
icom/ic703.c
32
icom/ic703.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -76,7 +76,7 @@
|
|||
/*
|
||||
* ic703 rigs capabilities.
|
||||
*/
|
||||
static const struct icom_priv_caps ic703_priv_caps = {
|
||||
static const struct icom_priv_caps ic703_priv_caps = {
|
||||
0x68, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic706_ts_sc_list
|
||||
|
@ -84,9 +84,9 @@ static const struct icom_priv_caps ic703_priv_caps = {
|
|||
|
||||
const struct rig_caps ic703_caps = {
|
||||
.rig_model = RIG_MODEL_IC703,
|
||||
.model_name = "IC-703",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-703",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_MOBILE,
|
||||
|
@ -98,13 +98,13 @@ const struct rig_caps ic703_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC703_FUNC_ALL,
|
||||
.has_set_func = IC703_FUNC_ALL,
|
||||
.has_set_func = IC703_FUNC_ALL,
|
||||
.has_get_level = IC703_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(IC703_LEVEL_ALL),
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
58
icom/ic706.c
58
icom/ic706.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -63,7 +63,7 @@ static int ic706_r2i_mode(RIG *rig, rmode_t mode, pbwidth_t width,
|
|||
|
||||
/* tx doesn't have WFM.
|
||||
* 100W in all modes but AM (40W)
|
||||
*/
|
||||
*/
|
||||
#define IC706_OTHER_TX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_USB|RIG_MODE_LSB|RIG_MODE_RTTY|RIG_MODE_FM)
|
||||
#define IC706_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -80,7 +80,7 @@ static int ic706_r2i_mode(RIG *rig, rmode_t mode, pbwidth_t width,
|
|||
* IC706IIG_REAL_STR_CAL is accurate measurements
|
||||
* IC706IIG_STR_CAL is what the S-meter displays
|
||||
*
|
||||
* calibration data was obtained from W8WWV
|
||||
* calibration data was obtained from W8WWV
|
||||
* http://www.seed-solutions.com/gregordy/
|
||||
*/
|
||||
#define IC706IIG_REAL_STR_CAL { 16, \
|
||||
|
@ -129,7 +129,7 @@ static int ic706_r2i_mode(RIG *rig, rmode_t mode, pbwidth_t width,
|
|||
* Notice that some rigs share the same functions.
|
||||
* Also this struct is READONLY!
|
||||
*/
|
||||
static const struct icom_priv_caps ic706_priv_caps = {
|
||||
static const struct icom_priv_caps ic706_priv_caps = {
|
||||
0x48, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic706_ts_sc_list,
|
||||
|
@ -138,8 +138,8 @@ static const struct icom_priv_caps ic706_priv_caps = {
|
|||
|
||||
const struct rig_caps ic706_caps = {
|
||||
.rig_model = RIG_MODEL_IC706,
|
||||
.model_name = "IC-706",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-706",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
|
@ -152,13 +152,13 @@ const struct rig_caps ic706_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
@ -261,7 +261,7 @@ const struct rig_caps ic706_caps = {
|
|||
};
|
||||
|
||||
|
||||
static const struct icom_priv_caps ic706mkii_priv_caps = {
|
||||
static const struct icom_priv_caps ic706mkii_priv_caps = {
|
||||
0x4e, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic706_ts_sc_list,
|
||||
|
@ -270,8 +270,8 @@ static const struct icom_priv_caps ic706mkii_priv_caps = {
|
|||
|
||||
const struct rig_caps ic706mkii_caps = {
|
||||
.rig_model = RIG_MODEL_IC706MKII,
|
||||
.model_name = "IC-706MkII",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-706MkII",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
|
@ -284,11 +284,11 @@ const struct rig_caps ic706mkii_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
|
@ -410,13 +410,13 @@ const struct rig_caps ic706mkii_caps = {
|
|||
.rptr_shift = 1, /* only set */ \
|
||||
.funcs = IC706IIG_FUNC_ALL, \
|
||||
.levels = RIG_LEVEL_SET(IC706IIG_LEVEL_ALL), \
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Basically, the IC706MKIIG is an IC706MKII plus UHF, a DSP
|
||||
* and 50W VHF
|
||||
*/
|
||||
static const struct icom_priv_caps ic706mkiig_priv_caps = {
|
||||
static const struct icom_priv_caps ic706mkiig_priv_caps = {
|
||||
0x58, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic706_ts_sc_list,
|
||||
|
@ -425,8 +425,8 @@ static const struct icom_priv_caps ic706mkiig_priv_caps = {
|
|||
|
||||
const struct rig_caps ic706mkiig_caps = {
|
||||
.rig_model = RIG_MODEL_IC706MKIIG,
|
||||
.model_name = "IC-706MkIIG",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-706MkIIG",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".2",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
|
@ -439,13 +439,13 @@ const struct rig_caps ic706mkiig_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC706IIG_FUNC_ALL,
|
||||
.has_set_func = IC706IIG_FUNC_ALL,
|
||||
.has_set_func = IC706IIG_FUNC_ALL,
|
||||
.has_get_level = IC706IIG_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(IC706IIG_LEVEL_ALL),
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
36
icom/ic707.c
36
icom/ic707.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -32,11 +32,11 @@
|
|||
|
||||
#define IC707_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
|
||||
/*
|
||||
/*
|
||||
* IC-707
|
||||
* specs: http://www.qsl.net/sm7vhs/radio/icom/ic707/specs.htm
|
||||
*
|
||||
*/
|
||||
*/
|
||||
#define IC707_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
#define IC707_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic707_priv_caps = {
|
||||
static const struct icom_priv_caps ic707_priv_caps = {
|
||||
0x3e, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -58,9 +58,9 @@ static const struct icom_priv_caps ic707_priv_caps = {
|
|||
|
||||
const struct rig_caps ic707_caps = {
|
||||
.rig_model = RIG_MODEL_IC707,
|
||||
.model_name = "IC-707",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-707",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -72,13 +72,13 @@ const struct rig_caps ic707_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 2,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
34
icom/ic718.c
34
icom/ic718.c
|
@ -4,19 +4,19 @@
|
|||
* Caps submitted by Chuck Gilkes WD0FCL/4
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
|||
|
||||
/* tx doesn't have WFM.
|
||||
* 100W in all modes but AM (40W)
|
||||
*/
|
||||
*/
|
||||
#define IC718_OTHER_TX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_RTTYR)
|
||||
#define IC718_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -68,7 +68,7 @@
|
|||
|
||||
|
||||
|
||||
static const struct icom_priv_caps IC718_priv_caps = {
|
||||
static const struct icom_priv_caps IC718_priv_caps = {
|
||||
0x5e, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic718_ts_sc_list
|
||||
|
@ -76,8 +76,8 @@ static const struct icom_priv_caps IC718_priv_caps = {
|
|||
|
||||
const struct rig_caps ic718_caps = {
|
||||
.rig_model = RIG_MODEL_IC718,
|
||||
.model_name = "IC-718",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-718",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
|
@ -90,13 +90,13 @@ const struct rig_caps ic718_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC718_FUNC_ALL,
|
||||
.has_set_func = IC718_FUNC_ALL,
|
||||
.has_set_func = IC718_FUNC_ALL,
|
||||
.has_get_level = IC718_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(IC718_LEVEL_ALL),
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
@ -162,7 +162,7 @@ const struct rig_caps ic718_caps = {
|
|||
{RIG_MODE_SSB|RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_RTTY|RIG_MODE_RTTYR, kHz(1.8)}, /* FL-222 */
|
||||
{RIG_MODE_AM, kHz(6)}, /* mid w/ bultin FL-94 */
|
||||
{RIG_MODE_AM, kHz(2.4)}, /* narrow w/ bultin FL-272 */
|
||||
RIG_FLT_END,
|
||||
RIG_FLT_END,
|
||||
},
|
||||
|
||||
.cfgparams = icom_cfg_params,
|
||||
|
|
|
@ -3,27 +3,27 @@
|
|||
* Adapted by J.Watson from IC-7000 code (c) 2004 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
/*
|
||||
* 26Mar09: Corrected tuning steps and added data modes.
|
||||
* 25Mar09: Initial release
|
||||
*/
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
@ -63,7 +63,7 @@
|
|||
#define IC7200_ANTS (RIG_ANT_1) /* ant-1 is Hf-6m */
|
||||
|
||||
/*
|
||||
* FIXME: This is a guess real measures please!
|
||||
* FIXME: This is a guess real measures please!
|
||||
*/
|
||||
#define IC7200_STR_CAL { 2, \
|
||||
{ \
|
||||
|
@ -76,7 +76,7 @@
|
|||
*
|
||||
* TODO: complete command set (esp. the $1A bunch!) and testing..
|
||||
*/
|
||||
static const struct icom_priv_caps IC7200_priv_caps = {
|
||||
static const struct icom_priv_caps IC7200_priv_caps = {
|
||||
0x76, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic7200_ts_sc_list
|
||||
|
@ -85,9 +85,9 @@ static const struct icom_priv_caps IC7200_priv_caps = {
|
|||
|
||||
const struct rig_caps ic7200_caps = {
|
||||
.rig_model = RIG_MODEL_IC7200,
|
||||
.model_name = "IC-7200",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-7200",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -99,13 +99,13 @@ const struct rig_caps ic7200_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC7200_FUNCS,
|
||||
.has_set_func = IC7200_FUNCS,
|
||||
.has_set_func = IC7200_FUNCS,
|
||||
.has_get_level = IC7200_LEVELS,
|
||||
.has_set_level = RIG_LEVEL_SET(IC7200_LEVELS),
|
||||
.has_get_parm = IC7200_PARMS,
|
||||
|
@ -135,7 +135,7 @@ const struct rig_caps ic7200_caps = {
|
|||
},
|
||||
|
||||
.rx_range_list1 = { {kHz(30),MHz(60),IC7200_ALL_RX_MODES,-1,-1,IC7200_VFOS}, RIG_FRNG_END, },
|
||||
.tx_range_list1 = {
|
||||
.tx_range_list1 = {
|
||||
FRQ_RNG_HF(1,IC7200_OTHER_TX_MODES, W(2),W(100),IC7200_VFOS,RIG_ANT_1),
|
||||
FRQ_RNG_6m(1,IC7200_OTHER_TX_MODES, W(2),W(100),IC7200_VFOS,RIG_ANT_1),
|
||||
FRQ_RNG_HF(1,IC7200_AM_TX_MODES, W(1),W(40),IC7200_VFOS,RIG_ANT_1), /* AM class */
|
||||
|
@ -145,7 +145,7 @@ const struct rig_caps ic7200_caps = {
|
|||
.rx_range_list2 = { {kHz(30),MHz(60),IC7200_ALL_RX_MODES,-1,-1,IC7200_VFOS}, RIG_FRNG_END, },
|
||||
.tx_range_list2 = { /* needs the 5 mhz channels added */
|
||||
FRQ_RNG_HF(2,IC7200_OTHER_TX_MODES, W(2),W(100),IC7200_VFOS,RIG_ANT_1),
|
||||
FRQ_RNG_6m(2,IC7200_OTHER_TX_MODES, W(2),W(100),IC7200_VFOS,RIG_ANT_1),
|
||||
FRQ_RNG_6m(2,IC7200_OTHER_TX_MODES, W(2),W(100),IC7200_VFOS,RIG_ANT_1),
|
||||
FRQ_RNG_HF(2,IC7200_AM_TX_MODES, W(1),W(40),IC7200_VFOS,RIG_ANT_1), /* AM class */
|
||||
FRQ_RNG_6m(2,IC7200_AM_TX_MODES, W(1),W(40),IC7200_VFOS,RIG_ANT_1), /* AM class */
|
||||
RIG_FRNG_END, },
|
||||
|
@ -166,8 +166,8 @@ const struct rig_caps ic7200_caps = {
|
|||
{RIG_MODE_SSB, kHz(2.4)},
|
||||
{RIG_MODE_SSB, kHz(1.8)},
|
||||
{RIG_MODE_SSB, kHz(3)},
|
||||
{RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_RTTY|RIG_MODE_RTTYR, Hz(500)},
|
||||
{RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_RTTY|RIG_MODE_RTTYR, Hz(250)},
|
||||
{RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_RTTY|RIG_MODE_RTTYR, Hz(500)},
|
||||
{RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_RTTY|RIG_MODE_RTTYR, Hz(250)},
|
||||
{RIG_MODE_CW|RIG_MODE_CWR, kHz(1.2)},
|
||||
{RIG_MODE_RTTY|RIG_MODE_RTTYR, kHz(2.4)},
|
||||
{RIG_MODE_AM, kHz(6)},
|
||||
|
@ -175,7 +175,7 @@ const struct rig_caps ic7200_caps = {
|
|||
{RIG_MODE_AM, kHz(9)},
|
||||
RIG_FLT_END,
|
||||
},
|
||||
|
||||
|
||||
.str_cal = IC7200_STR_CAL,
|
||||
|
||||
.cfgparams = icom_cfg_params,
|
||||
|
|
36
icom/ic725.c
36
icom/ic725.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -32,9 +32,9 @@
|
|||
|
||||
#define IC725_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
|
||||
/*
|
||||
/*
|
||||
* 100W in all modes but AM (40W)
|
||||
*/
|
||||
*/
|
||||
#define IC725_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
#define IC725_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -48,7 +48,7 @@
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic725_priv_caps = {
|
||||
static const struct icom_priv_caps ic725_priv_caps = {
|
||||
0x28, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -56,9 +56,9 @@ static const struct icom_priv_caps ic725_priv_caps = {
|
|||
|
||||
const struct rig_caps ic725_caps = {
|
||||
.rig_model = RIG_MODEL_IC725,
|
||||
.model_name = "IC-725",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.model_name = "IC-725",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -70,13 +70,13 @@ const struct rig_caps ic725_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
34
icom/ic726.c
34
icom/ic726.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -32,11 +32,11 @@
|
|||
|
||||
#define IC726_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
|
||||
/*
|
||||
/*
|
||||
* IC-726
|
||||
* specs: http://www.qsl.net/sm7vhs/radio/icom/ic726/specs.htm
|
||||
*
|
||||
*/
|
||||
*/
|
||||
#define IC726_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
#define IC726_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic726_priv_caps = {
|
||||
static const struct icom_priv_caps ic726_priv_caps = {
|
||||
0x30, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -58,8 +58,8 @@ static const struct icom_priv_caps ic726_priv_caps = {
|
|||
|
||||
const struct rig_caps ic726_caps = {
|
||||
.rig_model = RIG_MODEL_IC726,
|
||||
.model_name = "IC-726",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-726",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
|
@ -72,13 +72,13 @@ const struct rig_caps ic726_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
36
icom/ic728.c
36
icom/ic728.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -32,11 +32,11 @@
|
|||
|
||||
#define IC728_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
|
||||
/*
|
||||
/*
|
||||
* IC-728
|
||||
* specs: http://www.qsl.net/sm7vhs/radio/icom/ic728/specs.htm
|
||||
*
|
||||
*/
|
||||
*/
|
||||
#define IC728_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
#define IC728_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic728_priv_caps = {
|
||||
static const struct icom_priv_caps ic728_priv_caps = {
|
||||
0x38, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -58,9 +58,9 @@ static const struct icom_priv_caps ic728_priv_caps = {
|
|||
|
||||
const struct rig_caps ic728_caps = {
|
||||
.rig_model = RIG_MODEL_IC728,
|
||||
.model_name = "IC-728",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-728",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -72,13 +72,13 @@ const struct rig_caps ic728_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 2,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
34
icom/ic735.c
34
icom/ic735.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -32,9 +32,9 @@
|
|||
|
||||
#define IC735_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
|
||||
/*
|
||||
/*
|
||||
* 100W in all modes but AM (40W)
|
||||
*/
|
||||
*/
|
||||
#define IC735_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
#define IC735_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic735_priv_caps = {
|
||||
static const struct icom_priv_caps ic735_priv_caps = {
|
||||
0x04, /* default address */
|
||||
1, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -55,8 +55,8 @@ static const struct icom_priv_caps ic735_priv_caps = {
|
|||
|
||||
const struct rig_caps ic735_caps = {
|
||||
.rig_model = RIG_MODEL_IC735,
|
||||
.model_name = "IC-735",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-735",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
|
@ -69,13 +69,13 @@ const struct rig_caps ic735_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
34
icom/ic736.c
34
icom/ic736.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -37,9 +37,9 @@
|
|||
|
||||
#define IC736_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
|
||||
/*
|
||||
/*
|
||||
* 100W in all modes but AM (40W)
|
||||
*/
|
||||
*/
|
||||
#define IC736_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
#define IC736_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -54,7 +54,7 @@
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic736_priv_caps = {
|
||||
static const struct icom_priv_caps ic736_priv_caps = {
|
||||
0x40, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -62,9 +62,9 @@ static const struct icom_priv_caps ic736_priv_caps = {
|
|||
|
||||
const struct rig_caps ic736_caps = {
|
||||
.rig_model = RIG_MODEL_IC736,
|
||||
.model_name = "IC-736",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-736",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -76,7 +76,7 @@ const struct rig_caps ic736_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
|
@ -126,7 +126,7 @@ const struct rig_caps ic736_caps = {
|
|||
{kHz(500),MHz(30),IC736_ALL_RX_MODES,-1,-1,IC736_VFO_ALL,IC736_ANTS},
|
||||
{MHz(50),MHz(54),IC736_ALL_RX_MODES,-1,-1,IC736_VFO_ALL,IC736_ANTS},
|
||||
RIG_FRNG_END, },
|
||||
.tx_range_list2 = {
|
||||
.tx_range_list2 = {
|
||||
FRQ_RNG_HF(2,IC736_OTHER_TX_MODES, W(5),W(100),IC736_VFO_ALL,IC736_ANTS),
|
||||
FRQ_RNG_6m(2,IC736_OTHER_TX_MODES, W(5),W(100),IC736_VFO_ALL,IC736_ANTS),
|
||||
FRQ_RNG_HF(2,IC736_AM_TX_MODES, W(4),W(40),IC736_VFO_ALL,IC736_ANTS), /* AM class */
|
||||
|
|
38
icom/ic737.c
38
icom/ic737.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -37,9 +37,9 @@
|
|||
|
||||
#define IC737_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
|
||||
/*
|
||||
/*
|
||||
* 100W in all modes but AM (40W)
|
||||
*/
|
||||
*/
|
||||
#define IC737_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
#define IC737_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
|||
|
||||
#define IC737_ANTS (RIG_ANT_1|RIG_ANT_2)
|
||||
|
||||
static const struct icom_priv_caps ic737_priv_caps = {
|
||||
static const struct icom_priv_caps ic737_priv_caps = {
|
||||
0x3c, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -58,9 +58,9 @@ static const struct icom_priv_caps ic737_priv_caps = {
|
|||
|
||||
const struct rig_caps ic737_caps = {
|
||||
.rig_model = RIG_MODEL_IC737,
|
||||
.model_name = "IC-737",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-737",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -72,13 +72,13 @@ const struct rig_caps ic737_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
@ -117,7 +117,7 @@ const struct rig_caps ic737_caps = {
|
|||
.rx_range_list2 = {
|
||||
{kHz(30),MHz(30),IC737_ALL_RX_MODES,-1,-1,IC737_VFO_ALL,IC737_ANTS},
|
||||
RIG_FRNG_END, },
|
||||
.tx_range_list2 = {
|
||||
.tx_range_list2 = {
|
||||
FRQ_RNG_HF(2,IC737_OTHER_TX_MODES, W(10),W(100),IC737_VFO_ALL,IC737_ANTS),
|
||||
FRQ_RNG_HF(2,IC737_AM_TX_MODES, W(10),W(40),IC737_VFO_ALL,IC737_ANTS), /* AM class */
|
||||
RIG_FRNG_END,
|
||||
|
|
35
icom/ic738.c
35
icom/ic738.c
|
@ -2,19 +2,20 @@
|
|||
* Hamlib CI-V backend - description of IC-738 and variations
|
||||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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,
|
||||
* 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.1 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -36,9 +37,9 @@
|
|||
|
||||
#define IC738_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
|
||||
/*
|
||||
/*
|
||||
* 100W in all modes but AM (40W)
|
||||
*/
|
||||
*/
|
||||
#define IC738_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM)
|
||||
#define IC738_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -53,7 +54,7 @@
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic738_priv_caps = {
|
||||
static const struct icom_priv_caps ic738_priv_caps = {
|
||||
0x44, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -61,9 +62,9 @@ static const struct icom_priv_caps ic738_priv_caps = {
|
|||
|
||||
const struct rig_caps ic738_caps = {
|
||||
.rig_model = RIG_MODEL_IC738,
|
||||
.model_name = "IC-738",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-738",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -75,7 +76,7 @@ const struct rig_caps ic738_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
|
@ -123,7 +124,7 @@ const struct rig_caps ic738_caps = {
|
|||
{kHz(500),MHz(30),IC738_ALL_RX_MODES,-1,-1,IC738_VFO_ALL,IC738_ANTS},
|
||||
{MHz(50),MHz(54),IC738_ALL_RX_MODES,-1,-1,IC738_VFO_ALL,IC738_ANTS},
|
||||
RIG_FRNG_END, },
|
||||
.tx_range_list2 = {
|
||||
.tx_range_list2 = {
|
||||
FRQ_RNG_HF(2,IC738_OTHER_TX_MODES, W(5),W(100),IC738_VFO_ALL,IC738_ANTS),
|
||||
FRQ_RNG_HF(2,IC738_AM_TX_MODES, W(4),W(40),IC738_VFO_ALL,IC738_ANTS), /* AM class */
|
||||
RIG_FRNG_END,
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2011 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -72,7 +72,7 @@
|
|||
*
|
||||
* TODO: complete command set (esp. the $1A bunch!) and testing..
|
||||
*/
|
||||
static const struct icom_priv_caps ic7410_priv_caps = {
|
||||
static const struct icom_priv_caps ic7410_priv_caps = {
|
||||
0x80, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic756pro_ts_sc_list
|
||||
|
@ -81,8 +81,8 @@ static const struct icom_priv_caps ic7410_priv_caps = {
|
|||
|
||||
const struct rig_caps ic7410_caps = {
|
||||
.rig_model = RIG_MODEL_IC7410,
|
||||
.model_name = "IC-7410",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-7410",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
|
@ -95,13 +95,13 @@ const struct rig_caps ic7410_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC7410_FUNCS,
|
||||
.has_set_func = IC7410_FUNCS,
|
||||
.has_set_func = IC7410_FUNCS,
|
||||
.has_get_level = IC7410_LEVELS,
|
||||
.has_set_level = RIG_LEVEL_SET(IC7410_LEVELS),
|
||||
.has_get_parm = IC7410_PARMS,
|
||||
|
|
74
icom/ic746.c
74
icom/ic746.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -51,10 +51,10 @@
|
|||
#define IC746_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_RTTYR|RIG_MODE_FM)
|
||||
#define IC746_1HZ_TS_MODES IC746_ALL_RX_MODES
|
||||
|
||||
/*
|
||||
/*
|
||||
* 100W in all modes but AM (40W)
|
||||
* deleted rig_mode_tx_modes
|
||||
*/
|
||||
*/
|
||||
#define IC746_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_FM)
|
||||
#define IC746_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -106,7 +106,7 @@
|
|||
.dcs_code = 1, \
|
||||
.flags = 1, \
|
||||
.channel_desc = 1, \
|
||||
}
|
||||
}
|
||||
|
||||
/* Memory channel buffer structure for IC-746 pro and ?
|
||||
Note requires an ack_buff of 64 bytes and data length is 46.
|
||||
|
@ -118,7 +118,7 @@ typedef struct {
|
|||
unsigned char mode;
|
||||
unsigned char pb; /* passband or filter selection*/
|
||||
unsigned char data; /* data port 0=off 1=on */
|
||||
unsigned char dup; /* duplex, tone, tonesql and DTCS
|
||||
unsigned char dup; /* duplex, tone, tonesql and DTCS
|
||||
Values in hex are "or"ed together
|
||||
00 = Simplex
|
||||
10 = -DUP
|
||||
|
@ -134,7 +134,7 @@ typedef struct {
|
|||
} dcs;
|
||||
} channel_str_t;
|
||||
|
||||
|
||||
|
||||
|
||||
typedef struct {
|
||||
char chan_flag; /* split 0x10 = on; scan select 0x01 = on */
|
||||
|
@ -160,7 +160,7 @@ static int ic746pro_get_ext_parm(RIG *rig, token_t token, value_t *val);
|
|||
/*
|
||||
* ic746 rig capabilities.
|
||||
*/
|
||||
static const struct icom_priv_caps ic746_priv_caps = {
|
||||
static const struct icom_priv_caps ic746_priv_caps = {
|
||||
0x56, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic756pro_ts_sc_list
|
||||
|
@ -168,8 +168,8 @@ static const struct icom_priv_caps ic746_priv_caps = {
|
|||
|
||||
const struct rig_caps ic746_caps = {
|
||||
.rig_model = RIG_MODEL_IC746,
|
||||
.model_name = "IC-746",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-746",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
|
@ -182,13 +182,13 @@ const struct rig_caps ic746_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC746_FUNC_ALL,
|
||||
.has_set_func = IC746_FUNC_ALL,
|
||||
.has_set_func = IC746_FUNC_ALL,
|
||||
.has_get_level = IC746_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(IC746_LEVEL_ALL),
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
@ -361,12 +361,12 @@ static const struct confparams ic746pro_ext_parms[] = {
|
|||
* STRING: val.cs for set, val.s for get
|
||||
* CHECKBUTTON: val.i 0/1
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* ic746pro rig capabilities.
|
||||
*/
|
||||
static const struct icom_priv_caps ic746pro_priv_caps = {
|
||||
static const struct icom_priv_caps ic746pro_priv_caps = {
|
||||
0x66, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic756pro_ts_sc_list
|
||||
|
@ -374,8 +374,8 @@ static const struct icom_priv_caps ic746pro_priv_caps = {
|
|||
|
||||
const struct rig_caps ic746pro_caps = {
|
||||
.rig_model = RIG_MODEL_IC746PRO,
|
||||
.model_name = "IC-746PRO",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-746PRO",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
|
@ -388,13 +388,13 @@ const struct rig_caps ic746pro_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC746_FUNC_ALL,
|
||||
.has_set_func = IC746_FUNC_ALL,
|
||||
.has_set_func = IC746_FUNC_ALL,
|
||||
.has_get_level = IC746_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(IC746_LEVEL_ALL),
|
||||
.has_get_parm = IC746_GET_PARM,
|
||||
|
@ -610,12 +610,12 @@ static int ic746pro_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
|||
struct icom_priv_data *priv;
|
||||
struct rig_state *rs;
|
||||
const struct confparams *cfp;
|
||||
|
||||
|
||||
unsigned char resbuf[MAXFRAMELEN];
|
||||
int res_len, icom_val=0;
|
||||
int cmdhead;
|
||||
int retval;
|
||||
|
||||
|
||||
int ep_cmd = C_CTL_MEM;
|
||||
int ep_sc; /* Subcommand in $1A $05xx */
|
||||
|
||||
|
@ -636,7 +636,7 @@ static int ic746pro_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
|||
rig_debug(RIG_DEBUG_ERR,"Unsupported get_ext_parm %d", token);
|
||||
return -RIG_EINVAL;
|
||||
}
|
||||
|
||||
|
||||
retval = icom_transaction (rig, ep_cmd, ep_sc, NULL, 0,
|
||||
resbuf, &res_len);
|
||||
if (retval != RIG_OK)
|
||||
|
@ -676,11 +676,11 @@ static int ic746pro_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
|||
rig_debug(RIG_DEBUG_ERR,"%s: protocol error (%#.2x), "
|
||||
"len=%d\n", __FUNCTION__,resbuf[0],res_len);
|
||||
return -RIG_EPROTO;
|
||||
|
||||
|
||||
}
|
||||
rig_debug(RIG_DEBUG_TRACE,"%s: %d %d %d %f\n",
|
||||
__FUNCTION__, res_len, icom_val, val->i, val->f);
|
||||
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
|
@ -801,7 +801,7 @@ int ic746_get_parm(RIG *rig, setting_t parm, value_t *val)
|
|||
}
|
||||
}
|
||||
|
||||
icom_val = from_bcd_be(resbuf+cmdhead, res_len*2);
|
||||
icom_val = from_bcd_be(resbuf+cmdhead, res_len*2);
|
||||
if (RIG_PARM_IS_FLOAT(parm))
|
||||
val->f = (float)icom_val/255;
|
||||
else
|
||||
|
@ -816,7 +816,7 @@ int ic746_get_parm(RIG *rig, setting_t parm, value_t *val)
|
|||
/*
|
||||
* ic746pro_get_channel
|
||||
* Assumes rig!=NULL, rig->state.priv!=NULL, chan!=NULL
|
||||
*
|
||||
*
|
||||
* If memory is empty it will return RIG_OK,but every thing will be null. Where do we boundary check?
|
||||
*/
|
||||
int ic746pro_get_channel(RIG *rig, channel_t *chan)
|
||||
|
@ -872,7 +872,7 @@ int ic746pro_get_channel(RIG *rig, channel_t *chan)
|
|||
chan->scan_group = 0;
|
||||
chan->flags = RIG_CHFLAG_SKIP;
|
||||
strcpy(chan->channel_desc, " ");
|
||||
|
||||
|
||||
/*
|
||||
* chanbuf should contain Cn,Sc, Chan #, Data area
|
||||
*/
|
||||
|
@ -881,7 +881,7 @@ int ic746pro_get_channel(RIG *rig, channel_t *chan)
|
|||
chan_len);
|
||||
return -RIG_ERJCTED;
|
||||
}
|
||||
|
||||
|
||||
/* do this only if not a blank channel */
|
||||
if (chan_len != 1) {
|
||||
|
||||
|
@ -916,7 +916,7 @@ int ic746pro_get_channel(RIG *rig, channel_t *chan)
|
|||
chan->ctcss_tone = from_bcd_be(membuf->rx.tone, 6);
|
||||
chan->ctcss_sql = from_bcd_be(membuf->rx.tone_sql, 6);
|
||||
chan->dcs_code = from_bcd_be(membuf->rx.dcs.code, 4);
|
||||
/* The dcs information include in the channel includes polarity information
|
||||
/* The dcs information include in the channel includes polarity information
|
||||
for both tx and receive. Both directions are enabled when in dcs mode */
|
||||
|
||||
chan->tx_freq = from_bcd(membuf->tx.freq, freq_len*2);
|
||||
|
|
34
icom/ic751.c
34
icom/ic751.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -35,9 +35,9 @@
|
|||
*/
|
||||
#define IC751_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_FM)
|
||||
|
||||
/*
|
||||
/*
|
||||
* 200W in all modes but AM (40W)
|
||||
*/
|
||||
*/
|
||||
#define IC751_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_FM)
|
||||
#define IC751_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -76,7 +76,7 @@
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic751_priv_caps = {
|
||||
static const struct icom_priv_caps ic751_priv_caps = {
|
||||
0x1c, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -84,8 +84,8 @@ static const struct icom_priv_caps ic751_priv_caps = {
|
|||
|
||||
const struct rig_caps ic751_caps = {
|
||||
.rig_model = RIG_MODEL_IC751,
|
||||
.model_name = "IC-751",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-751",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
|
@ -98,13 +98,13 @@ const struct rig_caps ic751_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
/* Piexx UX-14px has an S-meter option */
|
||||
.has_get_level = (RIG_LEVEL_RAWSTR|RIG_LEVEL_STRENGTH),
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
|
|
88
icom/ic756.c
88
icom/ic756.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -40,9 +40,9 @@
|
|||
#define IC756_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_FM)
|
||||
#define IC756_1HZ_TS_MODES IC756_ALL_RX_MODES
|
||||
|
||||
/*
|
||||
/*
|
||||
* 100W in all modes but AM (40W)
|
||||
*/
|
||||
*/
|
||||
#define IC756_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_FM)
|
||||
#define IC756_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -84,7 +84,7 @@
|
|||
/*
|
||||
* ic756 rig capabilities.
|
||||
*/
|
||||
static const struct icom_priv_caps ic756_priv_caps = {
|
||||
static const struct icom_priv_caps ic756_priv_caps = {
|
||||
0x50, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic756_ts_sc_list
|
||||
|
@ -92,9 +92,9 @@ static const struct icom_priv_caps ic756_priv_caps = {
|
|||
|
||||
const struct rig_caps ic756_caps = {
|
||||
.rig_model = RIG_MODEL_IC756,
|
||||
.model_name = "IC-756",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-756",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_ALPHA,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -106,13 +106,13 @@ const struct rig_caps ic756_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC756PRO_FUNC_ALL,
|
||||
.has_set_func = IC756PRO_FUNC_ALL,
|
||||
.has_set_func = IC756PRO_FUNC_ALL,
|
||||
.has_get_level = IC756PRO_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(IC756PRO_LEVEL_ALL),
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
@ -227,7 +227,7 @@ const struct rig_caps ic756_caps = {
|
|||
* TODO: check every paramters,
|
||||
* add antenna capabilities
|
||||
*/
|
||||
static const struct icom_priv_caps ic756pro_priv_caps = {
|
||||
static const struct icom_priv_caps ic756pro_priv_caps = {
|
||||
0x5c, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic756pro_ts_sc_list
|
||||
|
@ -235,9 +235,9 @@ static const struct icom_priv_caps ic756pro_priv_caps = {
|
|||
|
||||
const struct rig_caps ic756pro_caps = {
|
||||
.rig_model = RIG_MODEL_IC756PRO,
|
||||
.model_name = "IC-756PRO",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-756PRO",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -249,13 +249,13 @@ const struct rig_caps ic756pro_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC756PRO_FUNC_ALL,
|
||||
.has_set_func = IC756PRO_FUNC_ALL,
|
||||
.has_set_func = IC756PRO_FUNC_ALL,
|
||||
.has_get_level = IC756PRO_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(IC756PRO_LEVEL_ALL),
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
@ -374,7 +374,7 @@ const struct rig_caps ic756pro_caps = {
|
|||
* TODO: check every paramters,
|
||||
* add antenna capabilities
|
||||
*/
|
||||
static const struct icom_priv_caps ic756pro2_priv_caps = {
|
||||
static const struct icom_priv_caps ic756pro2_priv_caps = {
|
||||
0x64, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic756pro_ts_sc_list
|
||||
|
@ -412,7 +412,7 @@ static const struct confparams ic756pro2_ext_parms[] = {
|
|||
* STRING: val.cs for set, val.s for get
|
||||
* CHECKBUTTON: val.i 0/1
|
||||
*/
|
||||
|
||||
|
||||
/*IC-756Pro Rig parameters Only available in this namespace*/
|
||||
#define S_MEM_SC_LEN 2 /* 756PRO S_MEM subcmd length */
|
||||
#define S_MEM_SBASS 0x501 /* SSB TX tone bass level */
|
||||
|
@ -439,9 +439,9 @@ static int ic756pro2_get_ext_parm(RIG *rig, token_t token, value_t *val);
|
|||
|
||||
const struct rig_caps ic756pro2_caps = {
|
||||
.rig_model = RIG_MODEL_IC756PROII,
|
||||
.model_name = "IC-756PROII",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-756PROII",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_ALPHA,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -453,13 +453,13 @@ const struct rig_caps ic756pro2_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC756PRO_FUNC_ALL,
|
||||
.has_set_func = IC756PRO_FUNC_ALL,
|
||||
.has_set_func = IC756PRO_FUNC_ALL,
|
||||
.has_get_level = IC756PRO_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(IC756PRO_LEVEL_ALL),
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
@ -654,12 +654,12 @@ static int ic756pro2_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
|||
struct icom_priv_data *priv;
|
||||
struct rig_state *rs;
|
||||
const struct confparams *cfp;
|
||||
|
||||
|
||||
unsigned char resbuf[MAXFRAMELEN];
|
||||
int res_len, icom_val=0;
|
||||
int cmdhead;
|
||||
int retval;
|
||||
|
||||
|
||||
int ep_cmd = C_CTL_MEM;
|
||||
int ep_sc; /* Subcommand in $1A $05xx */
|
||||
|
||||
|
@ -686,7 +686,7 @@ static int ic756pro2_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
|||
rig_debug(RIG_DEBUG_ERR,"Unsupported get_ext_parm %d", token);
|
||||
return -RIG_EINVAL;
|
||||
}
|
||||
|
||||
|
||||
retval = icom_transaction (rig, ep_cmd, ep_sc, NULL, 0,
|
||||
resbuf, &res_len);
|
||||
if (retval != RIG_OK)
|
||||
|
@ -726,11 +726,11 @@ static int ic756pro2_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
|||
rig_debug(RIG_DEBUG_ERR,"%s: protocol error (%#.2x), "
|
||||
"len=%d\n", __FUNCTION__,resbuf[0],res_len);
|
||||
return -RIG_EPROTO;
|
||||
|
||||
|
||||
}
|
||||
rig_debug(RIG_DEBUG_TRACE,"%s: %d %d %d %f\n",
|
||||
__FUNCTION__, res_len, icom_val, val->i, val->f);
|
||||
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
|
@ -742,7 +742,7 @@ static int ic756pro2_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
|||
* TODO: check every paramters,
|
||||
* add antenna capabilities
|
||||
*/
|
||||
static const struct icom_priv_caps ic756pro3_priv_caps = {
|
||||
static const struct icom_priv_caps ic756pro3_priv_caps = {
|
||||
0x6e, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic756pro_ts_sc_list
|
||||
|
@ -782,8 +782,8 @@ static const struct icom_priv_caps ic756pro3_priv_caps = {
|
|||
|
||||
const struct rig_caps ic756pro3_caps = {
|
||||
.rig_model = RIG_MODEL_IC756PROIII,
|
||||
.model_name = "IC-756PROIII",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-756PROIII",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
|
@ -796,13 +796,13 @@ const struct rig_caps ic756pro3_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC756PRO_FUNC_ALL,
|
||||
.has_set_func = IC756PRO_FUNC_ALL,
|
||||
.has_set_func = IC756PRO_FUNC_ALL,
|
||||
.has_get_level = IC756PRO_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(IC756PRO_LEVEL_ALL),
|
||||
.has_get_parm = IC756PROIII_PARMS,
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
|||
*
|
||||
* TODO: complete command set (esp. the $1A bunch!) and testing..
|
||||
*/
|
||||
static const struct icom_priv_caps ic7600_priv_caps = {
|
||||
static const struct icom_priv_caps ic7600_priv_caps = {
|
||||
0x7a, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic756pro_ts_sc_list
|
||||
|
@ -94,8 +94,8 @@ static const struct icom_priv_caps ic7600_priv_caps = {
|
|||
|
||||
const struct rig_caps ic7600_caps = {
|
||||
.rig_model = RIG_MODEL_IC7600,
|
||||
.model_name = "IC-7600",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-7600",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
|
@ -108,13 +108,13 @@ const struct rig_caps ic7600_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC7600_FUNCS,
|
||||
.has_set_func = IC7600_FUNCS,
|
||||
.has_set_func = IC7600_FUNCS,
|
||||
.has_get_level = IC7600_LEVELS,
|
||||
.has_set_level = RIG_LEVEL_SET(IC7600_LEVELS),
|
||||
.has_get_parm = IC7600_PARMS,
|
||||
|
|
36
icom/ic761.c
36
icom/ic761.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -32,9 +32,9 @@
|
|||
|
||||
#define IC761_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_FM)
|
||||
|
||||
/*
|
||||
/*
|
||||
* 100W in all modes but AM (40W)
|
||||
*/
|
||||
*/
|
||||
#define IC761_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_FM)
|
||||
#define IC761_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -48,7 +48,7 @@
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic761_priv_caps = {
|
||||
static const struct icom_priv_caps ic761_priv_caps = {
|
||||
0x1e, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -56,9 +56,9 @@ static const struct icom_priv_caps ic761_priv_caps = {
|
|||
|
||||
const struct rig_caps ic761_caps = {
|
||||
.rig_model = RIG_MODEL_IC761,
|
||||
.model_name = "IC-761",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.model_name = "IC-761",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -70,13 +70,13 @@ const struct rig_caps ic761_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
36
icom/ic765.c
36
icom/ic765.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -32,11 +32,11 @@
|
|||
|
||||
#define IC765_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM|RIG_MODE_RTTY)
|
||||
|
||||
/*
|
||||
/*
|
||||
* IC-765
|
||||
* specs: http://www.qsl.net/sm7vhs/radio/icom/ic765/specs.htm
|
||||
*
|
||||
*/
|
||||
*/
|
||||
#define IC765_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM|RIG_MODE_RTTY)
|
||||
#define IC765_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic765_priv_caps = {
|
||||
static const struct icom_priv_caps ic765_priv_caps = {
|
||||
0x2c, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -58,9 +58,9 @@ static const struct icom_priv_caps ic765_priv_caps = {
|
|||
|
||||
const struct rig_caps ic765_caps = {
|
||||
.rig_model = RIG_MODEL_IC765,
|
||||
.model_name = "IC-765",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-765",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -72,13 +72,13 @@ const struct rig_caps ic765_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
|
@ -2,19 +2,20 @@
|
|||
* Hamlib CI-V backend - description of IC-7700 and variations
|
||||
* Copyright (c) 2009-2010 by Stephane Fillod
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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,
|
||||
* 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.1 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -71,7 +72,7 @@
|
|||
*
|
||||
* TODO: complete command set (esp. the $1A bunch!) and testing..
|
||||
*/
|
||||
static const struct icom_priv_caps ic7700_priv_caps = {
|
||||
static const struct icom_priv_caps ic7700_priv_caps = {
|
||||
0x74, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic756pro_ts_sc_list
|
||||
|
@ -80,8 +81,8 @@ static const struct icom_priv_caps ic7700_priv_caps = {
|
|||
|
||||
const struct rig_caps ic7700_caps = {
|
||||
.rig_model = RIG_MODEL_IC7700,
|
||||
.model_name = "IC-7700",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-7700",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
|
@ -94,13 +95,13 @@ const struct rig_caps ic7700_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC7700_FUNCS,
|
||||
.has_set_func = IC7700_FUNCS,
|
||||
.has_set_func = IC7700_FUNCS,
|
||||
.has_get_level = IC7700_LEVELS,
|
||||
.has_set_level = RIG_LEVEL_SET(IC7700_LEVELS),
|
||||
.has_get_parm = IC7700_PARMS,
|
||||
|
|
34
icom/ic775.c
34
icom/ic775.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -33,9 +33,9 @@
|
|||
#define IC775_1MHZ_TS_MODES (RIG_MODE_AM|RIG_MODE_FM)
|
||||
#define IC775_1HZ_TS_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_RTTY)
|
||||
|
||||
/*
|
||||
/*
|
||||
* 100W in all modes but AM (40W)
|
||||
*/
|
||||
*/
|
||||
#define IC775_OTHER_TX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_FM)
|
||||
#define IC775_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic775_priv_caps = {
|
||||
static const struct icom_priv_caps ic775_priv_caps = {
|
||||
0x46, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -55,8 +55,8 @@ static const struct icom_priv_caps ic775_priv_caps = {
|
|||
|
||||
const struct rig_caps ic775_caps = {
|
||||
.rig_model = RIG_MODEL_IC775,
|
||||
.model_name = "IC-775",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-775",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
|
@ -69,13 +69,13 @@ const struct rig_caps ic775_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
33
icom/ic78.c
33
icom/ic78.c
|
@ -2,21 +2,20 @@
|
|||
* Hamlib CI-V backend - description of IC-78
|
||||
* Copyright (c) 2004 by Stephane Fillod
|
||||
*
|
||||
* $Id: ic78.c,v 1.1 2004-09-25 14:33:16 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
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
* 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -61,7 +60,7 @@
|
|||
/*
|
||||
* ic78 rigs capabilities.
|
||||
*/
|
||||
static const struct icom_priv_caps ic78_priv_caps = {
|
||||
static const struct icom_priv_caps ic78_priv_caps = {
|
||||
0x62, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic706_ts_sc_list
|
||||
|
@ -69,9 +68,9 @@ static const struct icom_priv_caps ic78_priv_caps = {
|
|||
|
||||
const struct rig_caps ic78_caps = {
|
||||
.rig_model = RIG_MODEL_IC78,
|
||||
.model_name = "IC-78",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-78",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -83,13 +82,13 @@ const struct rig_caps ic78_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC78_FUNC_ALL,
|
||||
.has_set_func = IC78_FUNC_ALL,
|
||||
.has_set_func = IC78_FUNC_ALL,
|
||||
.has_get_level = IC78_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(IC78_LEVEL_ALL),
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2009-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -75,7 +75,7 @@ static int ic7800_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
|||
*
|
||||
* TODO: complete command set (esp. the $1A bunch!) and testing..
|
||||
*/
|
||||
static const struct icom_priv_caps ic7800_priv_caps = {
|
||||
static const struct icom_priv_caps ic7800_priv_caps = {
|
||||
0x6a, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic756pro_ts_sc_list
|
||||
|
@ -84,8 +84,8 @@ static const struct icom_priv_caps ic7800_priv_caps = {
|
|||
|
||||
const struct rig_caps ic7800_caps = {
|
||||
.rig_model = RIG_MODEL_IC7800,
|
||||
.model_name = "IC-7800",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-7800",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".2",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
|
@ -98,13 +98,13 @@ const struct rig_caps ic7800_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC7800_FUNCS,
|
||||
.has_set_func = IC7800_FUNCS,
|
||||
.has_set_func = IC7800_FUNCS,
|
||||
.has_get_level = IC7800_LEVELS,
|
||||
.has_set_level = RIG_LEVEL_SET(IC7800_LEVELS),
|
||||
.has_get_parm = IC7800_PARMS,
|
||||
|
|
34
icom/ic781.c
34
icom/ic781.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -32,12 +32,12 @@
|
|||
|
||||
#define IC781_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM|RIG_MODE_RTTY)
|
||||
|
||||
/*
|
||||
/*
|
||||
* IC-781
|
||||
* specs: http://www.qsl.net/sm7vhs/radio/icom/ic781/specs.htm
|
||||
*
|
||||
* TODO: selected memory scan, delta-f scan, dual watch
|
||||
*/
|
||||
*/
|
||||
#define IC781_OTHER_TX_MODES (RIG_MODE_CW|RIG_MODE_SSB|RIG_MODE_FM|RIG_MODE_RTTY)
|
||||
#define IC781_AM_TX_MODES (RIG_MODE_AM)
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic781_priv_caps = {
|
||||
static const struct icom_priv_caps ic781_priv_caps = {
|
||||
0x26, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -59,8 +59,8 @@ static const struct icom_priv_caps ic781_priv_caps = {
|
|||
|
||||
const struct rig_caps ic781_caps = {
|
||||
.rig_model = RIG_MODEL_IC781,
|
||||
.model_name = "IC-781",
|
||||
.mfg_name = "Icom",
|
||||
.model_name = "IC-781",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER ".1",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
|
@ -73,13 +73,13 @@ const struct rig_caps ic781_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
|
@ -4,19 +4,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
|
@ -4,19 +4,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
20
icom/ic910.c
20
icom/ic910.c
|
@ -4,19 +4,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -187,7 +187,7 @@ static int ic910_r2i_mode(RIG *rig, rmode_t mode, pbwidth_t width,
|
|||
|
||||
err = rig2icom_mode(rig, mode, width, md, pd);
|
||||
|
||||
if (*pd == PD_NARROW_3)
|
||||
if (*pd == PD_NARROW_3)
|
||||
*pd = PD_NARROW_2;
|
||||
|
||||
return err;
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2011 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
32
icom/ic92d.c
32
icom/ic92d.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
|||
.rptr_shift = 1, \
|
||||
.funcs = IC92D_FUNC_ALL, \
|
||||
.levels = RIG_LEVEL_SET(IC92D_LEVEL_ALL), \
|
||||
}
|
||||
}
|
||||
|
||||
static const char *ic92d_get_info(RIG *rig);
|
||||
|
||||
|
@ -86,7 +86,7 @@ const struct ts_sc_list ic92d_ts_sc_list[] = {
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps ic92d_priv_caps = {
|
||||
static const struct icom_priv_caps ic92d_priv_caps = {
|
||||
0x01, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic92d_ts_sc_list,
|
||||
|
@ -96,8 +96,8 @@ static const struct icom_priv_caps ic92d_priv_caps = {
|
|||
const struct rig_caps ic92d_caps = {
|
||||
.rig_model = RIG_MODEL_IC92D,
|
||||
.model_name = "IC-92D", /* IC-E92D/IC-92AD */
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_HANDHELD,
|
||||
|
@ -109,13 +109,13 @@ const struct rig_caps ic92d_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = IC92D_FUNC_ALL,
|
||||
.has_set_func = IC92D_FUNC_ALL,
|
||||
.has_set_func = IC92D_FUNC_ALL,
|
||||
.has_get_level = IC92D_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(IC92D_LEVEL_ALL),
|
||||
.has_get_parm = IC92D_PARM_ALL,
|
||||
|
|
34
icom/ic970.c
34
icom/ic970.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
|||
* FIXME: this appears to be the IC-970A/E
|
||||
* what about the IC-970H ? please give it a fix. --SF
|
||||
*/
|
||||
static const struct icom_priv_caps ic970_priv_caps = {
|
||||
static const struct icom_priv_caps ic970_priv_caps = {
|
||||
0x2e, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -49,9 +49,9 @@ static const struct icom_priv_caps ic970_priv_caps = {
|
|||
|
||||
const struct rig_caps ic970_caps = {
|
||||
.rig_model = RIG_MODEL_IC970,
|
||||
.model_name = "IC-970",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-970",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -63,13 +63,13 @@ const struct rig_caps ic970_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
@ -97,7 +97,7 @@ const struct rig_caps ic970_caps = {
|
|||
RIG_CHAN_END,
|
||||
},
|
||||
|
||||
.rx_range_list1 = {
|
||||
.rx_range_list1 = {
|
||||
{MHz(144),MHz(146),IC970_MODES,-1,-1,IC970_VFO_ALL},
|
||||
{MHz(430),MHz(440),IC970_MODES,-1,-1,IC970_VFO_ALL},
|
||||
/* 1200MHz band module is optional */
|
||||
|
|
55
icom/icom.c
55
icom/icom.c
|
@ -2,19 +2,20 @@
|
|||
* Hamlib CI-V backend - main file
|
||||
* Copyright (c) 2000-2011 by Stephane Fillod
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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,
|
||||
* 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.1 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
#ifdef HAVE_CONFIG_H
|
||||
|
@ -218,7 +219,7 @@ const struct ts_sc_list ic910_ts_sc_list[] = {
|
|||
{ 0, 0 },
|
||||
};
|
||||
|
||||
/* rtty filter list for some DSP rigs ie PRO */
|
||||
/* rtty filter list for some DSP rigs ie PRO */
|
||||
#define RTTY_FIL_NB 5
|
||||
const pbwidth_t rtty_fil[] = {
|
||||
Hz(250),
|
||||
|
@ -226,7 +227,7 @@ const pbwidth_t rtty_fil[] = {
|
|||
Hz(350),
|
||||
Hz(500),
|
||||
kHz(1),
|
||||
0,
|
||||
0,
|
||||
};
|
||||
|
||||
struct icom_addr {
|
||||
|
@ -497,15 +498,15 @@ int icom_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit)
|
|||
}
|
||||
|
||||
|
||||
/* icom_get_dsp_flt
|
||||
/* icom_get_dsp_flt
|
||||
returns the dsp filter width in hz or 0 if the command is not implemented or error.
|
||||
This allows the default parameters to be assigned from the get_mode routine if the command is not implemented.
|
||||
Assumes rig != null and the current mode is in mode.
|
||||
|
||||
Has been tested for IC-746pro, Should work on the all dsp rigs ie pro models.
|
||||
|
||||
Has been tested for IC-746pro, Should work on the all dsp rigs ie pro models.
|
||||
The 746 documentation says it has the get_if_filter, but doesn't give any decoding information ? Please test.
|
||||
*/
|
||||
|
||||
|
||||
pbwidth_t icom_get_dsp_flt(RIG *rig, rmode_t mode) {
|
||||
|
||||
int retval, res_len, rfstatus;
|
||||
|
@ -612,11 +613,11 @@ int icom_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
|||
priv_caps = (const struct icom_priv_caps *) rig->caps->priv;
|
||||
|
||||
if (priv_caps->r2i_mode != NULL) { /* call priv code if defined */
|
||||
err = priv_caps->r2i_mode(rig, mode, width,
|
||||
err = priv_caps->r2i_mode(rig, mode, width,
|
||||
&icmode, &icmode_ext);
|
||||
}
|
||||
}
|
||||
else { /* else call default */
|
||||
err = rig2icom_mode(rig, mode, width,
|
||||
err = rig2icom_mode(rig, mode, width,
|
||||
&icmode, &icmode_ext);
|
||||
}
|
||||
|
||||
|
@ -696,7 +697,7 @@ int icom_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
|||
* For DSP rigs these are presets, can be programmed for 30 - 41 bandwidths, depending on mode.
|
||||
* Lets check for dsp filters
|
||||
*/
|
||||
|
||||
|
||||
if ((retval = icom_get_dsp_flt(rig, *mode)) !=0)
|
||||
*width = retval;
|
||||
|
||||
|
@ -1400,7 +1401,7 @@ int icom_set_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t rptr_shift)
|
|||
* icom_get_rptr_shift
|
||||
* Assumes rig!=NULL, rig->state.priv!=NULL, rptr_shift!=NULL
|
||||
* will not work for IC-746 Pro
|
||||
* NOTE: seems not to work (tested on IC-706MkIIG), please report --SF
|
||||
* NOTE: seems not to work (tested on IC-706MkIIG), please report --SF
|
||||
*/
|
||||
int icom_get_rptr_shift(RIG *rig, vfo_t vfo, rptr_shift_t *rptr_shift)
|
||||
{
|
||||
|
@ -2126,7 +2127,7 @@ int icom_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status)
|
|||
rig_debug(RIG_DEBUG_ERR,"icom_get_func: wrong frame len=%d\n",
|
||||
ack_len);
|
||||
return -RIG_EPROTO;
|
||||
}
|
||||
}
|
||||
if (func != RIG_FUNC_FBKIN)
|
||||
*status = ackbuf[2];
|
||||
else
|
||||
|
@ -2317,7 +2318,7 @@ int icom_get_parm(RIG *rig, setting_t parm, value_t *val)
|
|||
|
||||
/*
|
||||
* icom_set_ctcss_tone
|
||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||
*
|
||||
* Works for 746 pro and should work for 756 xx and 7800
|
||||
*/
|
||||
|
@ -2464,7 +2465,7 @@ int icom_get_ctcss_sql(RIG *rig, vfo_t vfo, tone_t *tone)
|
|||
/* check this tone exists. That's better than nothing. */
|
||||
for (i = 0; caps->ctcss_list[i] != 0 && i<52; i++) {
|
||||
if (caps->ctcss_list[i] == *tone)
|
||||
return RIG_OK;
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
rig_debug(RIG_DEBUG_ERR,"icom_get_ctcss_sql: CTCSS NG "
|
||||
|
@ -2474,7 +2475,7 @@ int icom_get_ctcss_sql(RIG *rig, vfo_t vfo, tone_t *tone)
|
|||
|
||||
/*
|
||||
* icom_set_dcs_code
|
||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||
*/
|
||||
int icom_set_dcs_code(RIG *rig, vfo_t vfo, tone_t code)
|
||||
{
|
||||
|
@ -2589,7 +2590,7 @@ int icom_get_powerstat(RIG *rig, powerstat_t *status)
|
|||
/* so use one of the more innculous 'set mode' commands instead */
|
||||
cmd_len = 1;
|
||||
cmdbuf[0] = S_PRM_TIME;
|
||||
retval = icom_transaction(rig, C_CTL_MEM, S_MEM_MODE_SLCT,
|
||||
retval = icom_transaction(rig, C_CTL_MEM, S_MEM_MODE_SLCT,
|
||||
cmdbuf, cmd_len, ackbuf, &ack_len);
|
||||
if (retval != RIG_OK)
|
||||
return retval;
|
||||
|
@ -2687,7 +2688,7 @@ int icom_set_ant(RIG * rig, vfo_t vfo, ant_t ant)
|
|||
case RIG_ANT_2: i_ant = 1; break;
|
||||
case RIG_ANT_3: i_ant = 2; break;
|
||||
case RIG_ANT_4: i_ant = 3; break;
|
||||
default:
|
||||
default:
|
||||
rig_debug(RIG_DEBUG_ERR,"Unsupported ant %#x", ant);
|
||||
return -RIG_EINVAL;
|
||||
}
|
||||
|
@ -2729,7 +2730,7 @@ int icom_get_ant(RIG *rig, vfo_t vfo, ant_t *ant)
|
|||
"len=%d\n", ackbuf[0],ack_len);
|
||||
return -RIG_ERJCTED;
|
||||
}
|
||||
|
||||
|
||||
/* Note: with IC756/IC-756Pro/IC-7800, ackbuf[2] deals with [RX ANT] */
|
||||
|
||||
*ant = RIG_ANT_N(ackbuf[1]);
|
||||
|
|
33
icom/icom.h
33
icom/icom.h
|
@ -2,19 +2,20 @@
|
|||
* Hamlib CI-V backend - main header
|
||||
* Copyright (c) 2000-2011 by Stephane Fillod
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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,
|
||||
* 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.1 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -51,7 +52,7 @@
|
|||
.freq = 1, \
|
||||
.mode = 1, \
|
||||
.width = 1, \
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* common channel caps.
|
||||
|
@ -66,7 +67,7 @@
|
|||
.tx_mode = 1, \
|
||||
.tx_width = 1, \
|
||||
.rptr_offs = 1, \
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* S-Meter data for uncalibrated rigs
|
||||
|
@ -99,14 +100,14 @@ struct icom_priv_caps {
|
|||
int civ_731_mode; /* Off: freqs on 10 digits, On: freqs on 8 digits */
|
||||
const struct ts_sc_list *ts_sc_list;
|
||||
int settle_time; /*!< Receiver settle time, in ms */
|
||||
int (*r2i_mode)(RIG *rig, rmode_t mode, pbwidth_t width,
|
||||
int (*r2i_mode)(RIG *rig, rmode_t mode, pbwidth_t width,
|
||||
unsigned char *md, signed char *pd); /*< backend specific code
|
||||
to convert bandwidth and
|
||||
to convert bandwidth and
|
||||
mode to cmd tokens */
|
||||
void (*i2r_mode)(RIG *rig, unsigned char md, int pd,
|
||||
void (*i2r_mode)(RIG *rig, unsigned char md, int pd,
|
||||
rmode_t *mode, pbwidth_t *width); /*< backend specific code
|
||||
to convert response
|
||||
tokens to bandwidth and
|
||||
to convert response
|
||||
tokens to bandwidth and
|
||||
mode */
|
||||
int serial_full_duplex; /*!< Whether RXD&TXD are not tied together */
|
||||
};
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -52,7 +52,7 @@
|
|||
|
||||
Most radios have 2 or 3 recieve passbands available. Where only 2 are available they
|
||||
are selected by 01 for wide and 02 for narrow Actual bandwidth is determined by the filters
|
||||
installed. With the newer DSP rigs there are 3 presets 01 = wide 02 = middle and 03 = narrow.
|
||||
installed. With the newer DSP rigs there are 3 presets 01 = wide 02 = middle and 03 = narrow.
|
||||
Acutally you can set change any of these presets to any thing you want.
|
||||
|
||||
* Notes:
|
||||
|
@ -117,12 +117,12 @@
|
|||
|
||||
#define S_R7000_SSB 0x05 /* Set to SSB on R-7000 */
|
||||
|
||||
/* filter width coding for older ICOM rigs with 2 filter width */
|
||||
/* filter width coding for older ICOM rigs with 2 filter width */
|
||||
/* there is no special 'wide' for that rigs */
|
||||
#define PD_MEDIUM_2 0x01 /* Medium */
|
||||
#define PD_NARROW_2 0x02 /* Narrow */
|
||||
|
||||
/* filter width coding for newer ICOM rigs with 3 filter width */
|
||||
/* filter width coding for newer ICOM rigs with 3 filter width */
|
||||
#define PD_WIDE_3 0x01 /* Wide */
|
||||
#define PD_MEDIUM_3 0x02 /* Medium */
|
||||
#define PD_NARROW_3 0x03 /* Narrow */
|
||||
|
@ -383,7 +383,7 @@
|
|||
* tokens are used ext_lvl and ext_parm funtions in the individual rig files.
|
||||
* Extra parameters which are rig specific should be coded in the individual rig files and token #s < 100.
|
||||
*/
|
||||
|
||||
|
||||
#define TOKEN_BACKEND(t) (t)
|
||||
|
||||
#define TOK_RTTY_FLTR TOKEN_BACKEND(100)
|
||||
|
|
33
icom/icr10.c
33
icom/icr10.c
|
@ -2,21 +2,20 @@
|
|||
* Hamlib CI-V backend - description of IC-R10
|
||||
* Copyright (c) 2000-2004 by Stephane Fillod
|
||||
*
|
||||
* $Id: icr10.c,v 1.3 2004-09-26 08:35:03 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
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
* 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -46,7 +45,7 @@
|
|||
*/
|
||||
#define ICR10_STR_CAL UNKNOWN_IC_STR_CAL
|
||||
|
||||
static const struct icom_priv_caps icr10_priv_caps = {
|
||||
static const struct icom_priv_caps icr10_priv_caps = {
|
||||
0x52, /* default address */
|
||||
0, /* 731 mode */
|
||||
r8500_ts_sc_list /* wrong, but don't have set_ts anyway */
|
||||
|
@ -54,9 +53,9 @@ static const struct icom_priv_caps icr10_priv_caps = {
|
|||
|
||||
const struct rig_caps icr10_caps = {
|
||||
.rig_model = RIG_MODEL_ICR10,
|
||||
.model_name = "IC-R10",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-R10",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_RECEIVER|RIG_FLAG_HANDHELD,
|
||||
|
@ -68,13 +67,13 @@ const struct rig_caps icr10_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = ICR10_FUNC_ALL,
|
||||
.has_set_func = ICR10_FUNC_ALL,
|
||||
.has_set_func = ICR10_FUNC_ALL,
|
||||
.has_get_level = ICR10_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(ICR10_LEVEL_ALL),
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
33
icom/icr20.c
33
icom/icr20.c
|
@ -2,21 +2,20 @@
|
|||
* Hamlib CI-V backend - description of IC-R20
|
||||
* Copyright (c) 2004 by Stephane Fillod
|
||||
*
|
||||
* $Id: icr20.c,v 1.1 2004-09-25 14:33:16 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
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
* 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -50,7 +49,7 @@
|
|||
{ 255, 60 } /* +60 */ \
|
||||
} }
|
||||
|
||||
static const struct icom_priv_caps icr20_priv_caps = {
|
||||
static const struct icom_priv_caps icr20_priv_caps = {
|
||||
0x6c, /* default address */
|
||||
0, /* 731 mode */
|
||||
r8500_ts_sc_list /* wrong, but don't have set_ts anyway */
|
||||
|
@ -58,9 +57,9 @@ static const struct icom_priv_caps icr20_priv_caps = {
|
|||
|
||||
const struct rig_caps icr20_caps = {
|
||||
.rig_model = RIG_MODEL_ICR20,
|
||||
.model_name = "IC-R20",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-R20",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_RECEIVER|RIG_FLAG_HANDHELD,
|
||||
|
@ -72,13 +71,13 @@ const struct rig_caps icr20_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = ICR20_FUNC_ALL,
|
||||
.has_set_func = ICR20_FUNC_ALL,
|
||||
.has_set_func = ICR20_FUNC_ALL,
|
||||
.has_get_level = ICR20_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(ICR20_LEVEL_ALL),
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
|
@ -2,21 +2,20 @@
|
|||
* Hamlib CI-V backend - IC-R7000 and IC-R7100 descriptions
|
||||
* Copyright (c) 2000-2004 by Stephane Fillod
|
||||
*
|
||||
* $Id: icr7000.c,v 1.9 2004-09-26 08:35:03 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
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
* 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -85,7 +84,7 @@ const struct rig_caps icr7000_caps = {
|
|||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
.has_set_parm = RIG_PARM_NONE,
|
||||
.has_set_parm = RIG_PARM_NONE,
|
||||
.level_gran = {},
|
||||
.parm_gran = {},
|
||||
.ctcss_list = NULL,
|
||||
|
@ -101,7 +100,7 @@ const struct rig_caps icr7000_caps = {
|
|||
.bank_qty = 0,
|
||||
.chan_desc_sz = 0,
|
||||
|
||||
.chan_list = {
|
||||
.chan_list = {
|
||||
{ 1, 99, RIG_MTYPE_MEM },
|
||||
RIG_CHAN_END, },
|
||||
|
||||
|
@ -194,7 +193,7 @@ const struct rig_caps icr7100_caps = {
|
|||
.has_get_level = ICR7100_LEVELS,
|
||||
.has_set_level = RIG_LEVEL_SET(ICR7100_LEVELS),
|
||||
.has_get_parm = ICR7100_PARMS,
|
||||
.has_set_parm = RIG_PARM_SET(ICR7100_PARMS),
|
||||
.has_set_parm = RIG_PARM_SET(ICR7100_PARMS),
|
||||
.level_gran = {
|
||||
[LVL_RAWSTR] = { .min = { .i = 0 }, .max = { .i = 255 } },
|
||||
},
|
||||
|
@ -213,7 +212,7 @@ const struct rig_caps icr7100_caps = {
|
|||
.bank_qty = 0,
|
||||
.chan_desc_sz = 0,
|
||||
|
||||
.chan_list = {
|
||||
.chan_list = {
|
||||
{ 1, 99, RIG_MTYPE_MEM }, /* TBC */
|
||||
{ 0x0900, 0x0909, RIG_MTYPE_EDGE }, /* 2 by 2 */
|
||||
{ 0x0910, 0x0919, RIG_MTYPE_EDGE }, /* 2 by 2 */
|
||||
|
@ -297,8 +296,8 @@ static int r7000_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
{
|
||||
long long f = (long long)freq;
|
||||
|
||||
/*
|
||||
* The R7000 cannot set freqencies higher than 1GHz,
|
||||
/*
|
||||
* The R7000 cannot set freqencies higher than 1GHz,
|
||||
* this is done by flipping a switch on the front panel and
|
||||
* stripping the most significant digit.
|
||||
* This is the only change with the common icom_set_freq
|
||||
|
|
32
icom/icr71.c
32
icom/icr71.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
|||
#define ICR71_VFO_OPS (RIG_OP_FROM_VFO|RIG_OP_TO_VFO)
|
||||
#define ICR71_SCAN_OPS (RIG_SCAN_NONE)
|
||||
|
||||
static const struct icom_priv_caps icr71_priv_caps = {
|
||||
static const struct icom_priv_caps icr71_priv_caps = {
|
||||
0x1a, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list /* none actually */
|
||||
|
@ -48,9 +48,9 @@ static const struct icom_priv_caps icr71_priv_caps = {
|
|||
|
||||
const struct rig_caps icr71_caps = {
|
||||
.rig_model = RIG_MODEL_ICR71,
|
||||
.model_name = "IC-R71",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-R71",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_RECEIVER,
|
||||
|
@ -62,13 +62,13 @@ const struct rig_caps icr71_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = ICR71_FUNC_ALL,
|
||||
.has_set_func = ICR71_FUNC_ALL,
|
||||
.has_set_func = ICR71_FUNC_ALL,
|
||||
.has_get_level = ICR71_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(ICR71_LEVEL_ALL),
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
32
icom/icr72.c
32
icom/icr72.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
|||
#define ICR71_VFO_OPS (RIG_OP_FROM_VFO|RIG_OP_TO_VFO|RIG_OP_MCL)
|
||||
#define ICR72_SCAN_OPS (RIG_SCAN_MEM|RIG_SCAN_VFO|RIG_SCAN_SLCT|RIG_SCAN_PRIO)
|
||||
|
||||
static const struct icom_priv_caps icr72_priv_caps = {
|
||||
static const struct icom_priv_caps icr72_priv_caps = {
|
||||
0x32, /* default address */
|
||||
0, /* 731 mode */
|
||||
ic737_ts_sc_list
|
||||
|
@ -49,9 +49,9 @@ static const struct icom_priv_caps icr72_priv_caps = {
|
|||
|
||||
const struct rig_caps icr72_caps = {
|
||||
.rig_model = RIG_MODEL_ICR72,
|
||||
.model_name = "IC-R72",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-R72",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_RECEIVER,
|
||||
|
@ -63,13 +63,13 @@ const struct rig_caps icr72_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = ICR72_FUNC_ALL,
|
||||
.has_set_func = ICR72_FUNC_ALL,
|
||||
.has_set_func = ICR72_FUNC_ALL,
|
||||
.has_get_level = ICR72_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(ICR72_LEVEL_ALL),
|
||||
.has_get_parm = RIG_PARM_ANN,
|
||||
|
|
41
icom/icr75.c
41
icom/icr75.c
|
@ -2,21 +2,20 @@
|
|||
* Hamlib CI-V backend - description of IC-R75
|
||||
* Copyright (c) 2000-2004 by Stephane Fillod
|
||||
*
|
||||
* $Id: icr75.c,v 1.9 2006-10-07 20:45:40 csete 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
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
* 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -90,12 +89,12 @@
|
|||
.levels = RIG_LEVEL_ATT|RIG_LEVEL_PREAMP, \
|
||||
.channel_desc = 1, \
|
||||
.flags = 1, \
|
||||
}
|
||||
}
|
||||
|
||||
static int icr75_set_channel(RIG *rig, const channel_t *chan);
|
||||
static int icr75_get_channel(RIG *rig, channel_t *chan);
|
||||
|
||||
static const struct icom_priv_caps icr75_priv_caps = {
|
||||
static const struct icom_priv_caps icr75_priv_caps = {
|
||||
0x5a, /* default address */
|
||||
0, /* 731 mode */
|
||||
r75_ts_sc_list
|
||||
|
@ -103,9 +102,9 @@ static const struct icom_priv_caps icr75_priv_caps = {
|
|||
|
||||
const struct rig_caps icr75_caps = {
|
||||
.rig_model = RIG_MODEL_ICR75,
|
||||
.model_name = "IC-R75",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC-R75",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
.rig_type = RIG_TYPE_RECEIVER,
|
||||
|
@ -117,13 +116,13 @@ const struct rig_caps icr75_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 1,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = ICR75_FUNC_ALL,
|
||||
.has_set_func = ICR75_FUNC_ALL,
|
||||
.has_set_func = ICR75_FUNC_ALL,
|
||||
.has_get_level = ICR75_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(ICR75_LEVEL_ALL),
|
||||
.has_get_parm = ICR75_PARM_ALL,
|
||||
|
@ -357,7 +356,7 @@ int icr75_get_channel(RIG *rig, channel_t *chan)
|
|||
chan->scan_group = 0;
|
||||
chan->flags = RIG_CHFLAG_SKIP;
|
||||
strcpy(chan->channel_desc, " ");
|
||||
|
||||
|
||||
/*
|
||||
* freqbuf should contain Cn,Data area
|
||||
*/
|
||||
|
@ -366,14 +365,14 @@ int icr75_get_channel(RIG *rig, channel_t *chan)
|
|||
chan_len);
|
||||
return -RIG_ERJCTED;
|
||||
}
|
||||
|
||||
|
||||
/* do this only if not a blank channel */
|
||||
if (chan_len != 5) {
|
||||
/*
|
||||
* from_bcd requires nibble len
|
||||
*/
|
||||
chan->flags = RIG_CHFLAG_NONE;
|
||||
|
||||
|
||||
chan->freq = from_bcd(chanbuf+5, freq_len*2);
|
||||
|
||||
chan_len = 4+freq_len+1;
|
||||
|
|
|
@ -2,21 +2,20 @@
|
|||
* Hamlib CI-V backend - IC-R8500 description
|
||||
* Copyright (c) 2000-2004 by Stephane Fillod
|
||||
*
|
||||
* $Id: icr8500.c,v 1.20 2004-09-26 17:29:27 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
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
* 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2011 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -51,7 +51,7 @@
|
|||
.mode = 1, \
|
||||
.width = 1, \
|
||||
.levels = RIG_LEVEL_ATT, \
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* TODO: S-Meter measurements */
|
||||
|
@ -95,7 +95,7 @@ const struct rig_caps icr9000_caps = {
|
|||
.has_get_level = ICR9000_LEVELS,
|
||||
.has_set_level = RIG_LEVEL_SET(ICR9000_LEVELS),
|
||||
.has_get_parm = ICR9000_PARMS,
|
||||
.has_set_parm = RIG_PARM_SET(ICR9000_PARMS),
|
||||
.has_set_parm = RIG_PARM_SET(ICR9000_PARMS),
|
||||
.level_gran = {
|
||||
[LVL_RAWSTR] = { .min = { .i = 0 }, .max = { .i = 255 } },
|
||||
},
|
||||
|
@ -114,7 +114,7 @@ const struct rig_caps icr9000_caps = {
|
|||
.bank_qty = 0,
|
||||
.chan_desc_sz = 0,
|
||||
|
||||
.chan_list = {
|
||||
.chan_list = {
|
||||
{ 0, 999, RIG_MTYPE_MEM, ICR9000_MEM_CAP }, /* TBC */
|
||||
{ 1000, 1009, RIG_MTYPE_EDGE, IC_MIN_MEM_CAP }, /* 2 by 2 */
|
||||
{ 1010, 1019, RIG_MTYPE_EDGE, IC_MIN_MEM_CAP }, /* 2 by 2 */
|
||||
|
|
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2011 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -55,7 +55,7 @@
|
|||
.mode = 1, \
|
||||
.width = 1, \
|
||||
.levels = RIG_LEVEL_ATT, \
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* TODO: S-Meter measurements */
|
||||
|
@ -97,7 +97,7 @@ const struct rig_caps icr9500_caps = {
|
|||
.has_get_level = ICR9500_LEVELS,
|
||||
.has_set_level = RIG_LEVEL_SET(ICR9500_LEVELS),
|
||||
.has_get_parm = ICR9500_PARMS,
|
||||
.has_set_parm = RIG_PARM_SET(ICR9500_PARMS),
|
||||
.has_set_parm = RIG_PARM_SET(ICR9500_PARMS),
|
||||
.level_gran = {
|
||||
[LVL_RAWSTR] = { .min = { .i = 0 }, .max = { .i = 255 } },
|
||||
},
|
||||
|
@ -116,7 +116,7 @@ const struct rig_caps icr9500_caps = {
|
|||
.bank_qty = 12,
|
||||
.chan_desc_sz = 0, /* FIXME */
|
||||
|
||||
.chan_list = {
|
||||
.chan_list = {
|
||||
{ 0, 999, RIG_MTYPE_MEM, ICR9500_MEM_CAP }, /* TBC */
|
||||
{ 1000, 1099, RIG_MTYPE_EDGE, IC_MIN_MEM_CAP }, /* Bank-A (Auto) */
|
||||
{ 1100, 1199, RIG_MTYPE_EDGE, IC_MIN_MEM_CAP }, /* Bank-S (skip) */
|
||||
|
|
32
icom/id1.c
32
icom/id1.c
|
@ -3,19 +3,19 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -63,7 +63,7 @@ const struct ts_sc_list id1_ts_sc_list[] = {
|
|||
|
||||
/*
|
||||
*/
|
||||
static const struct icom_priv_caps id1_priv_caps = {
|
||||
static const struct icom_priv_caps id1_priv_caps = {
|
||||
0x01, /* default address */
|
||||
0, /* 731 mode */
|
||||
id1_ts_sc_list
|
||||
|
@ -71,9 +71,9 @@ static const struct icom_priv_caps id1_priv_caps = {
|
|||
|
||||
const struct rig_caps id1_caps = {
|
||||
.rig_model = RIG_MODEL_ICID1,
|
||||
.model_name = "IC ID-1",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.model_name = "IC ID-1",
|
||||
.mfg_name = "Icom",
|
||||
.version = BACKEND_VER,
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_UNTESTED,
|
||||
.rig_type = RIG_TYPE_MOBILE,
|
||||
|
@ -85,13 +85,13 @@ const struct rig_caps id1_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = ID1_FUNC_ALL,
|
||||
.has_set_func = ID1_FUNC_ALL,
|
||||
.has_set_func = ID1_FUNC_ALL,
|
||||
.has_get_level = ID1_LEVEL_ALL,
|
||||
.has_set_level = RIG_LEVEL_SET(ID1_LEVEL_ALL),
|
||||
.has_get_parm = ID1_PARM_ALL,
|
||||
|
|
55
icom/omni.c
55
icom/omni.c
|
@ -3,19 +3,20 @@
|
|||
* Copyright (c) 2000-2010 by Stephane Fillod
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library 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 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
/* Improvements by Martin Ewing, AA6E, 3/2008
|
||||
|
@ -54,7 +55,7 @@ static int omni6_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt);
|
|||
static int omni6_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit);
|
||||
static int omni6_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit);
|
||||
|
||||
static const struct icom_priv_caps omnivip_priv_caps = {
|
||||
static const struct icom_priv_caps omnivip_priv_caps = {
|
||||
0x04, /* default address */
|
||||
0, /* 731 mode */
|
||||
NULL /* TODO */
|
||||
|
@ -62,9 +63,9 @@ static const struct icom_priv_caps omnivip_priv_caps = {
|
|||
|
||||
const struct rig_caps omnivip_caps = {
|
||||
.rig_model = RIG_MODEL_OMNIVIP,
|
||||
.model_name = "Omni VI Plus",
|
||||
.mfg_name = "Ten-Tec",
|
||||
.version = "0.2",
|
||||
.model_name = "Omni VI Plus",
|
||||
.mfg_name = "Ten-Tec",
|
||||
.version = "0.2",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
@ -76,13 +77,13 @@ const struct rig_caps omnivip_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = RIG_LEVEL_NONE,
|
||||
.has_set_level = RIG_LEVEL_NONE,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
@ -100,14 +101,14 @@ const struct rig_caps omnivip_caps = {
|
|||
.transceive = RIG_TRN_RIG,
|
||||
.bank_qty = 0,
|
||||
.chan_desc_sz = 0,
|
||||
.chan_list = { { 0, 99, RIG_MTYPE_MEM, IC_MIN_MEM_CAP },
|
||||
.chan_list = { { 0, 99, RIG_MTYPE_MEM, IC_MIN_MEM_CAP },
|
||||
RIG_CHAN_END, },
|
||||
.rx_range_list1 = {
|
||||
RIG_FRNG_END, },
|
||||
.tx_range_list1 = { RIG_FRNG_END, },
|
||||
|
||||
/* These limits measured on Omni VI SN 1A10473 */
|
||||
.rx_range_list2 = {
|
||||
.rx_range_list2 = {
|
||||
{kHz(1770),kHz(2330),OMNIVIP_ALL_RX_MODES,-1,-1,OMNIVIP_VFO_ALL},
|
||||
{kHz(3471),kHz(4030),OMNIVIP_ALL_RX_MODES,-1,-1,OMNIVIP_VFO_ALL},
|
||||
{kHz(6821),kHz(7338),OMNIVIP_ALL_RX_MODES,-1,-1,OMNIVIP_VFO_ALL},
|
||||
|
@ -120,8 +121,8 @@ const struct rig_caps omnivip_caps = {
|
|||
RIG_FRNG_END, },
|
||||
|
||||
/* Note: There is no AM mode. */
|
||||
.tx_range_list2 = {
|
||||
{kHz(1800),MHz(2)-1,OMNIVIP_OTHER_TX_MODES,5000,100000,OMNIVIP_VFO_ALL},
|
||||
.tx_range_list2 = {
|
||||
{kHz(1800),MHz(2)-1,OMNIVIP_OTHER_TX_MODES,5000,100000,OMNIVIP_VFO_ALL},
|
||||
{kHz(3500),MHz(4)-1,OMNIVIP_OTHER_TX_MODES,5000,100000,OMNIVIP_VFO_ALL},
|
||||
{MHz(7),kHz(7300),OMNIVIP_OTHER_TX_MODES,5000,100000,OMNIVIP_VFO_ALL},
|
||||
{kHz(10100),kHz(10150),OMNIVIP_OTHER_TX_MODES,5000,100000,OMNIVIP_VFO_ALL},
|
||||
|
@ -180,7 +181,7 @@ int omni6_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
|
|||
|
||||
sc = ptt == RIG_PTT_ON ? 0x1 : 0x2;
|
||||
|
||||
/*
|
||||
/*
|
||||
* Ignore ACK/NAK on this command, because in CW mode, the Omni VI
|
||||
* does not send an ACK.
|
||||
*/
|
||||
|
@ -190,7 +191,7 @@ int omni6_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
|
|||
return RIG_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* These 'rit' commands actually deal with an offset frequency. The operator
|
||||
* must select rit on/off or xit on/off manually to apply this offset.
|
||||
* Omni VI's rit uses 9's complement for negative freq, and freqs are in units
|
||||
|
@ -198,13 +199,13 @@ int omni6_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
|
|||
* Note that Omni VI rejects rit > 9980, but takes rit >= -9990. So the
|
||||
* rit limit should be +/- 9.98 kHz.
|
||||
*/
|
||||
|
||||
|
||||
int omni6_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit)
|
||||
{
|
||||
unsigned char freqbuf[MAXFRAMELEN], ackbuf[MAXFRAMELEN];
|
||||
int freq_len, ack_len=sizeof(ackbuf), retval;
|
||||
shortfreq_t rit10;
|
||||
|
||||
|
||||
rit10 = rit / 10; // 10 Hz resolution for Omni
|
||||
if (rit10 < 0) rit10 += 10000L; // 9's compl.
|
||||
freq_len = 2;
|
||||
|
@ -222,8 +223,8 @@ int omni6_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit)
|
|||
return RIG_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Note: icom.c does not provide a get_rit method. It would have been
|
||||
/*
|
||||
* Note: icom.c does not provide a get_rit method. It would have been
|
||||
* wrong for the Omni VI, anyway, so we implement it here.
|
||||
*/
|
||||
|
||||
|
@ -232,7 +233,7 @@ int omni6_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit)
|
|||
unsigned char buffer[MAXFRAMELEN];
|
||||
int buffer_len, retval;
|
||||
shortfreq_t my_rit;
|
||||
|
||||
|
||||
retval = icom_transaction (rig, C_RD_OFFS, -1, NULL, 0,
|
||||
buffer, & buffer_len);
|
||||
if (retval != RIG_OK)
|
||||
|
|
|
@ -2,21 +2,20 @@
|
|||
* Hamlib CI-V backend - OptoScan extensions
|
||||
* Copyright (c) 2000-2005 by Stephane Fillod
|
||||
*
|
||||
* $Id: optoscan.c,v 1.14 2006-10-07 20:45:40 csete 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
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
* 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -51,7 +50,7 @@ const struct confparams opto_ext_parms[] = {
|
|||
{ TOK_DTMFPEND, "dtmfpend", "DTMF Digit Pending", "DTMF Digit Pending", NULL, RIG_CONF_CHECKBUTTON, {} },
|
||||
{ TOK_DTMFOVRR, "dtmfovrr", "DTMF Buffer Overflow", "DTMF Buffer Overflow", NULL, RIG_CONF_CHECKBUTTON, {} },
|
||||
{ TOK_CTCSSACT, "ctcssact", "CTCSS Tone Active", "CTCSS Tone Active", NULL, RIG_CONF_CHECKBUTTON, {} },
|
||||
{ TOK_DCSACT, "dcsact", "DCS Code Active", "DCS Code Active", NULL, RIG_CONF_CHECKBUTTON, {} },
|
||||
{ TOK_DCSACT, "dcsact", "DCS Code Active", "DCS Code Active", NULL, RIG_CONF_CHECKBUTTON, {} },
|
||||
{ RIG_CONF_END, NULL, }
|
||||
};
|
||||
|
||||
|
@ -84,7 +83,7 @@ int optoscan_open(RIG *rig)
|
|||
priv->pltstate = pltstate;
|
||||
|
||||
/* select REMOTE control */
|
||||
retval = icom_transaction (rig, C_CTL_MISC, S_OPTO_REMOTE,
|
||||
retval = icom_transaction (rig, C_CTL_MISC, S_OPTO_REMOTE,
|
||||
NULL, 0, ackbuf, &ack_len);
|
||||
if (retval != RIG_OK) {
|
||||
free(pltstate);
|
||||
|
@ -116,7 +115,7 @@ int optoscan_close(RIG *rig)
|
|||
priv = (struct icom_priv_data*)rs->priv;
|
||||
|
||||
/* select LOCAL control */
|
||||
retval = icom_transaction (rig, C_CTL_MISC, S_OPTO_LOCAL,
|
||||
retval = icom_transaction (rig, C_CTL_MISC, S_OPTO_LOCAL,
|
||||
NULL, 0, ackbuf, &ack_len);
|
||||
if (retval != RIG_OK)
|
||||
return retval;
|
||||
|
@ -148,7 +147,7 @@ const char* optoscan_get_info(RIG *rig)
|
|||
priv = (struct icom_priv_data*)rs->priv;
|
||||
|
||||
/* select LOCAL control */
|
||||
retval = icom_transaction (rig, C_CTL_MISC, S_OPTO_RDID,
|
||||
retval = icom_transaction (rig, C_CTL_MISC, S_OPTO_RDID,
|
||||
NULL, 0, ackbuf, &ack_len);
|
||||
if (retval != RIG_OK)
|
||||
return NULL;
|
||||
|
@ -162,7 +161,7 @@ const char* optoscan_get_info(RIG *rig)
|
|||
sprintf(info, "OptoScan%c%c%c, software version %d.%d, "
|
||||
"interface version %d.%d\n",
|
||||
ackbuf[2], ackbuf[3], ackbuf[4],
|
||||
ackbuf[5] >> 4, ackbuf[5] & 0xf,
|
||||
ackbuf[5] >> 4, ackbuf[5] & 0xf,
|
||||
ackbuf[6] >> 4, ackbuf[6] & 0xf);
|
||||
|
||||
return info;
|
||||
|
@ -241,27 +240,27 @@ int optoscan_recv_dtmf(RIG *rig, vfo_t vfo, char *digits, int *length)
|
|||
'*','#'};
|
||||
caps = rig->caps;
|
||||
digitpos=0;
|
||||
|
||||
|
||||
do {
|
||||
retval = icom_transaction(rig, C_CTL_MISC, S_OPTO_RDDTMF,
|
||||
retval = icom_transaction(rig, C_CTL_MISC, S_OPTO_RDDTMF,
|
||||
NULL,0,dtmfbuf, &len);
|
||||
if (retval != RIG_OK)
|
||||
return retval;
|
||||
|
||||
|
||||
if (len != 3) {
|
||||
rig_debug(RIG_DEBUG_ERR,"optoscan_recv_dtmf: ack NG (%#.2x), len=%d\n", dtmfbuf[0], len);
|
||||
return -RIG_ERJCTED;
|
||||
}
|
||||
|
||||
|
||||
digit = dtmfbuf[2];
|
||||
|
||||
|
||||
if( digit < 0x16 )
|
||||
{
|
||||
digits[digitpos] = xlate[digit];
|
||||
digitpos++;
|
||||
}
|
||||
} while( (digit != 0x99) && (digitpos < *length) );
|
||||
|
||||
|
||||
*length = digitpos;
|
||||
digits[digitpos]=0;
|
||||
|
||||
|
@ -330,7 +329,7 @@ int optoscan_set_ext_parm(RIG *rig, token_t token, value_t val)
|
|||
"len=%d\n", __FUNCTION__, ackbuf[0], ack_len);
|
||||
return -RIG_ERJCTED;
|
||||
}
|
||||
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
|
@ -347,7 +346,7 @@ int optoscan_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
|||
|
||||
if (retval != RIG_OK)
|
||||
return retval;
|
||||
|
||||
|
||||
switch(token) {
|
||||
case TOK_TAPECNTL:
|
||||
val->i = status_block.tape_enabled;
|
||||
|
@ -451,10 +450,10 @@ int optoscan_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
|||
int icom_val;
|
||||
int cmdhead;
|
||||
int retval;
|
||||
|
||||
|
||||
rs = &rig->state;
|
||||
priv = (struct icom_priv_data*)rs->priv;
|
||||
|
||||
|
||||
if( level != RIG_LEVEL_AF )
|
||||
{
|
||||
switch (level) {
|
||||
|
@ -466,24 +465,24 @@ int optoscan_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
|||
rig_debug(RIG_DEBUG_ERR,"Unsupported get_level %d", level);
|
||||
return -RIG_EINVAL;
|
||||
}
|
||||
|
||||
|
||||
retval = icom_transaction (rig, lvl_cn, lvl_sc, NULL, 0,
|
||||
lvlbuf, &lvl_len);
|
||||
if (retval != RIG_OK)
|
||||
return retval;
|
||||
|
||||
|
||||
/*
|
||||
* strbuf should contain Cn,Sc,Data area
|
||||
*/
|
||||
cmdhead = (lvl_sc == -1) ? 1:2;
|
||||
lvl_len -= cmdhead;
|
||||
|
||||
|
||||
if (lvlbuf[0] != ACK && lvlbuf[0] != lvl_cn) {
|
||||
rig_debug(RIG_DEBUG_ERR,"optoscan_get_level: ack NG (%#.2x), "
|
||||
"len=%d\n", lvlbuf[0],lvl_len);
|
||||
return -RIG_ERJCTED;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* The result is a 3 digit BCD, but in *big endian* order: 0000..0255
|
||||
* (from_bcd is little endian)
|
||||
|
@ -493,15 +492,15 @@ int optoscan_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
|||
else /* level == RIG_LEVEL_AF */
|
||||
{
|
||||
retval = optoscan_get_status_block(rig,&status_block);
|
||||
|
||||
|
||||
if (retval != RIG_OK)
|
||||
return retval;
|
||||
|
||||
|
||||
icom_val = 0;
|
||||
if( status_block.speaker_enabled == 1 )
|
||||
icom_val = 255;
|
||||
}
|
||||
|
||||
|
||||
switch (level) {
|
||||
case RIG_LEVEL_RAWSTR:
|
||||
val->i = icom_val;
|
||||
|
@ -512,14 +511,14 @@ int optoscan_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
|||
else
|
||||
val->i = icom_val;
|
||||
}
|
||||
|
||||
|
||||
rig_debug(RIG_DEBUG_TRACE,"optoscan_get_level: %d %d %d %f\n", lvl_len,
|
||||
icom_val, val->i, val->f);
|
||||
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
/* OS456 Pipeline tuning algorithm:
|
||||
/* OS456 Pipeline tuning algorithm:
|
||||
* Step 2: Send the next frequency and mode to the receiver using the
|
||||
* TRANSFER NEXT FREQUENCY/MODE command.
|
||||
*
|
||||
|
@ -564,7 +563,7 @@ int optoscan_scan(RIG *rig, vfo_t vfo, scan_t scan, int ch)
|
|||
{
|
||||
/* time for CIV command to be sent. this is subtracted from */
|
||||
/* rcvr settle time */
|
||||
state->usleep_time = (1000000 / (rig->state.rigport.parm.serial.rate))
|
||||
state->usleep_time = (1000000 / (rig->state.rigport.parm.serial.rate))
|
||||
* 13 * 9;
|
||||
|
||||
rc=cb(rig,vfo,&(state->next_freq),&(state->next_mode),
|
||||
|
@ -594,7 +593,7 @@ int optoscan_scan(RIG *rig, vfo_t vfo, scan_t scan, int ch)
|
|||
}
|
||||
|
||||
optoscan_wait_timer(rig,state); /*Step 5*/
|
||||
|
||||
|
||||
ser_get_car(&rs->rigport,&pin_state);
|
||||
if( pin_state ) /*Step 6*/
|
||||
{
|
||||
|
@ -621,10 +620,10 @@ static int optoscan_get_status_block(RIG *rig, struct optostat *status_block)
|
|||
|
||||
retval = icom_transaction (rig, C_CTL_MISC, S_OPTO_RDSTAT, NULL, 0,
|
||||
ackbuf, &ack_len);
|
||||
|
||||
|
||||
if (retval != RIG_OK)
|
||||
return retval;
|
||||
|
||||
|
||||
switch( rig->caps->rig_model )
|
||||
{
|
||||
case RIG_MODEL_OS456:
|
||||
|
@ -644,8 +643,8 @@ static int optoscan_get_status_block(RIG *rig, struct optostat *status_block)
|
|||
"len=%d\n", ackbuf[0], ack_len);
|
||||
return -RIG_ERJCTED;
|
||||
}
|
||||
|
||||
if( ackbuf[2] & 1 ) status_block->remote_control = 1;
|
||||
|
||||
if( ackbuf[2] & 1 ) status_block->remote_control = 1;
|
||||
if( ackbuf[2] & 2 ) status_block->DTMF_pending = 1;
|
||||
if( ackbuf[2] & 4 ) status_block->DTMF_overrun = 1;
|
||||
if( ackbuf[2] & 16 ) status_block->squelch_open = 1;
|
||||
|
@ -690,7 +689,7 @@ static int optoscan_send_freq(RIG *rig,pltstate_t *state)
|
|||
freq=state->next_freq;
|
||||
mode=state->next_mode;
|
||||
|
||||
memset(buff,0,OPTO_BUFF_SIZE);
|
||||
memset(buff,0,OPTO_BUFF_SIZE);
|
||||
|
||||
to_bcd(buff,freq,5*2); /* to_bcd requires nibble len */
|
||||
|
||||
|
@ -715,7 +714,7 @@ static int optoscan_RTS_toggle(RIG *rig)
|
|||
|
||||
rs=&rig->state;
|
||||
ser_get_rts(&rs->rigport,&state);
|
||||
ser_set_rts(&rs->rigport,!state);
|
||||
ser_set_rts(&rs->rigport,!state);
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
@ -739,7 +738,7 @@ static int optoscan_wait_timer(RIG *rig, pltstate_t *state)
|
|||
|
||||
gettimeofday(&(state->timer_current),NULL);
|
||||
|
||||
usec_diff = abs( (state->timer_current.tv_usec) -
|
||||
usec_diff = abs( (state->timer_current.tv_usec) -
|
||||
(state->timer_start.tv_usec) );
|
||||
|
||||
if( usec_diff < settle_usec )
|
||||
|
|
|
@ -2,21 +2,20 @@
|
|||
* Hamlib CI-V backend - main header
|
||||
* Copyright (c) 2000-2003 by Stephane Fillod
|
||||
*
|
||||
* $Id: optoscan.h,v 1.2 2003-08-17 22:39:07 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
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
* 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
39
icom/os456.c
39
icom/os456.c
|
@ -2,21 +2,20 @@
|
|||
* Hamlib CI-V backend - description of the OptoScan456
|
||||
* Copyright (c) 2000-2004 by Stephane Fillod and Michael Smith
|
||||
*
|
||||
* $Id: os456.c,v 1.11 2004-09-26 08:35:03 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
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
* 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -45,10 +44,10 @@ extern struct confparams opto_ext_parms[];
|
|||
#define OS456_LEVELS (RIG_LEVEL_RAWSTR|RIG_LEVEL_AF)
|
||||
#define OS456_SCAN_OPS (RIG_SCAN_PLT)
|
||||
/*
|
||||
* The signal strength data is in the form of two bytes, each consisting
|
||||
* of two BCD digits. The signal strength is reported in units of absolute
|
||||
* dBm as measured at the antenna connector. The reported signal strength
|
||||
* ranges from a maximum signal of 0 dBm to a minimum signal of - 125 dBm.
|
||||
* The signal strength data is in the form of two bytes, each consisting
|
||||
* of two BCD digits. The signal strength is reported in units of absolute
|
||||
* dBm as measured at the antenna connector. The reported signal strength
|
||||
* ranges from a maximum signal of 0 dBm to a minimum signal of - 125 dBm.
|
||||
* A minus sign is implied.
|
||||
*/
|
||||
|
||||
|
@ -65,7 +64,7 @@ extern struct confparams opto_ext_parms[];
|
|||
* TODO: srch_dcs, srch_ctcss, rcv_dtmf, and make icom_probe opto aware
|
||||
*/
|
||||
|
||||
static const struct icom_priv_caps os456_priv_caps = {
|
||||
static const struct icom_priv_caps os456_priv_caps = {
|
||||
0x80, /* default address */
|
||||
0, /* 731 mode */
|
||||
NULL,
|
||||
|
@ -74,9 +73,9 @@ static const struct icom_priv_caps os456_priv_caps = {
|
|||
|
||||
const struct rig_caps os456_caps = {
|
||||
.rig_model = RIG_MODEL_OS456,
|
||||
.model_name = "OptoScan456",
|
||||
.mfg_name = "Optoelectronics",
|
||||
.version = "0.3",
|
||||
.model_name = "OptoScan456",
|
||||
.mfg_name = "Optoelectronics",
|
||||
.version = "0.3",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
.rig_type = RIG_TYPE_SCANNER,
|
||||
|
@ -88,11 +87,11 @@ const struct rig_caps os456_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = OS456_LEVELS,
|
||||
|
|
33
icom/os535.c
33
icom/os535.c
|
@ -2,21 +2,20 @@
|
|||
* Hamlib CI-V backend - description of the OptoScan535
|
||||
* Copyright (c) 2000-2004 by Stephane Fillod
|
||||
*
|
||||
* $Id: os535.c,v 1.10 2004-09-26 08:35:03 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
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
* 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.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* 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 Library General Public License for more details.
|
||||
* 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 Library General Public
|
||||
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -57,7 +56,7 @@ extern struct confparams opto_ext_parms[];
|
|||
* TODO: srch_dcs, srch_ctcss, rcv_dtmf, and make icom_probe opto aware
|
||||
*/
|
||||
|
||||
static const struct icom_priv_caps os535_priv_caps = {
|
||||
static const struct icom_priv_caps os535_priv_caps = {
|
||||
0x80, /* default address */
|
||||
0, /* 731 mode */
|
||||
NULL,
|
||||
|
@ -66,9 +65,9 @@ static const struct icom_priv_caps os535_priv_caps = {
|
|||
|
||||
const struct rig_caps os535_caps = {
|
||||
.rig_model = RIG_MODEL_OS535,
|
||||
.model_name = "OptoScan535",
|
||||
.mfg_name = "Optoelectronics",
|
||||
.version = "0.3",
|
||||
.model_name = "OptoScan535",
|
||||
.mfg_name = "Optoelectronics",
|
||||
.version = "0.3",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_BETA,
|
||||
.rig_type = RIG_TYPE_SCANNER,
|
||||
|
@ -80,13 +79,13 @@ const struct rig_caps os535_caps = {
|
|||
.serial_data_bits = 8,
|
||||
.serial_stop_bits = 1,
|
||||
.serial_parity = RIG_PARITY_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.serial_handshake = RIG_HANDSHAKE_NONE,
|
||||
.write_delay = 0,
|
||||
.post_write_delay = 0,
|
||||
.timeout = 200,
|
||||
.retry = 3,
|
||||
.retry = 3,
|
||||
.has_get_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_set_func = RIG_FUNC_NONE,
|
||||
.has_get_level = OS535_LEVELS,
|
||||
.has_set_level = RIG_LEVEL_AF,
|
||||
.has_get_parm = RIG_PARM_NONE,
|
||||
|
|
Ładowanie…
Reference in New Issue