kopia lustrzana https://github.com/Hamlib/Hamlib
- Cast/change unsigned char to char in order to fix compile warnings.
- Incremented backend version number. git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2128 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.6rc1
rodzic
663b2f1bf7
commit
47f83303f8
|
@ -3,7 +3,7 @@
|
||||||
* Copyright (c) 2001-2003 by Stephane Fillod
|
* Copyright (c) 2001-2003 by Stephane Fillod
|
||||||
* Contributed by Francois Retief <fgretief@sun.ac.za>
|
* Contributed by Francois Retief <fgretief@sun.ac.za>
|
||||||
*
|
*
|
||||||
* $Id: easycomm.c,v 1.7 2005-11-19 14:45:54 fillods Exp $
|
* $Id: easycomm.c,v 1.8 2006-10-07 19:00:05 csete Exp $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Library General Public License as
|
* it under the terms of the GNU Library General Public License as
|
||||||
|
@ -80,7 +80,7 @@ easycomm_transaction (ROT *rot, const char *cmdstr, char *data, size_t data_len)
|
||||||
static int
|
static int
|
||||||
easycomm_rot_set_position(ROT *rot, azimuth_t az, elevation_t el)
|
easycomm_rot_set_position(ROT *rot, azimuth_t az, elevation_t el)
|
||||||
{
|
{
|
||||||
unsigned char cmdstr[64];
|
char cmdstr[64];
|
||||||
int retval;
|
int retval;
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s called: %f %f\n", __FUNCTION__, az, el);
|
rig_debug(RIG_DEBUG_TRACE, "%s called: %f %f\n", __FUNCTION__, az, el);
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ easycomm_rot_set_position(ROT *rot, azimuth_t az, elevation_t el)
|
||||||
static int
|
static int
|
||||||
easycomm_rot_get_position(ROT *rot, azimuth_t *az, elevation_t *el)
|
easycomm_rot_get_position(ROT *rot, azimuth_t *az, elevation_t *el)
|
||||||
{
|
{
|
||||||
unsigned char cmdstr[16], ackbuf[32];
|
char cmdstr[16], ackbuf[32];
|
||||||
int retval;
|
int retval;
|
||||||
int t;
|
int t;
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ easycomm_rot_get_position(ROT *rot, azimuth_t *az, elevation_t *el)
|
||||||
static int
|
static int
|
||||||
easycomm_rot_stop(ROT *rot)
|
easycomm_rot_stop(ROT *rot)
|
||||||
{
|
{
|
||||||
unsigned char ackbuf[32];
|
char ackbuf[32];
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __FUNCTION__);
|
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __FUNCTION__);
|
||||||
|
@ -172,7 +172,7 @@ easycomm_rot_stop(ROT *rot)
|
||||||
static int
|
static int
|
||||||
easycomm_rot_reset(ROT *rot, rot_reset_t rst)
|
easycomm_rot_reset(ROT *rot, rot_reset_t rst)
|
||||||
{
|
{
|
||||||
unsigned char ackbuf[32];
|
char ackbuf[32];
|
||||||
int retval;
|
int retval;
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __FUNCTION__);
|
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __FUNCTION__);
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ easycomm_rot_reset(ROT *rot, rot_reset_t rst)
|
||||||
static int
|
static int
|
||||||
easycomm_rot_park(ROT *rot)
|
easycomm_rot_park(ROT *rot)
|
||||||
{
|
{
|
||||||
unsigned char ackbuf[32];
|
char ackbuf[32];
|
||||||
int retval;
|
int retval;
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __FUNCTION__);
|
rig_debug(RIG_DEBUG_TRACE, "%s called\n", __FUNCTION__);
|
||||||
|
|
||||||
|
@ -243,7 +243,7 @@ const struct rot_caps easycomm1_rot_caps = {
|
||||||
.rot_model = ROT_MODEL_EASYCOMM1,
|
.rot_model = ROT_MODEL_EASYCOMM1,
|
||||||
.model_name = "EasycommI",
|
.model_name = "EasycommI",
|
||||||
.mfg_name = "Hamlib",
|
.mfg_name = "Hamlib",
|
||||||
.version = "0.2",
|
.version = "0.3",
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_BETA,
|
.status = RIG_STATUS_BETA,
|
||||||
.rot_type = ROT_TYPE_OTHER,
|
.rot_type = ROT_TYPE_OTHER,
|
||||||
|
@ -277,7 +277,7 @@ const struct rot_caps easycomm2_rot_caps = {
|
||||||
.rot_model = ROT_MODEL_EASYCOMM2,
|
.rot_model = ROT_MODEL_EASYCOMM2,
|
||||||
.model_name = "EasycommII",
|
.model_name = "EasycommII",
|
||||||
.mfg_name = "Hamlib",
|
.mfg_name = "Hamlib",
|
||||||
.version = "0.2",
|
.version = "0.3",
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_BETA,
|
.status = RIG_STATUS_BETA,
|
||||||
.rot_type = ROT_TYPE_OTHER,
|
.rot_type = ROT_TYPE_OTHER,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Hamlib RFT backend - EKD-500 description
|
* Hamlib RFT backend - EKD-500 description
|
||||||
* Copyright (c) 2003-2005 by Thomas B. Ruecker
|
* Copyright (c) 2003-2005 by Thomas B. Ruecker
|
||||||
*
|
*
|
||||||
* $Id: ekd500.c,v 1.3 2005-04-10 21:57:13 fillods Exp $
|
* $Id: ekd500.c,v 1.4 2006-10-07 18:48:34 csete Exp $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Library General Public License as
|
* it under the terms of the GNU Library General Public License as
|
||||||
|
@ -54,7 +54,7 @@ const struct rig_caps ekd500_caps = {
|
||||||
.rig_model = RIG_MODEL_EKD500,
|
.rig_model = RIG_MODEL_EKD500,
|
||||||
.model_name = "EKD-500",
|
.model_name = "EKD-500",
|
||||||
.mfg_name = "RFT",
|
.mfg_name = "RFT",
|
||||||
.version = "0.3",
|
.version = "0.4",
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_ALPHA,
|
.status = RIG_STATUS_ALPHA,
|
||||||
.rig_type = RIG_TYPE_RECEIVER,
|
.rig_type = RIG_TYPE_RECEIVER,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Hamlib RFT backend - main file
|
* Hamlib RFT backend - main file
|
||||||
* Copyright (c) 2003 by Thomas B. Ruecker
|
* Copyright (c) 2003 by Thomas B. Ruecker
|
||||||
*
|
*
|
||||||
* $Id: rft.c,v 1.2 2005-04-10 21:47:14 fillods Exp $
|
* $Id: rft.c,v 1.3 2006-10-07 18:48:34 csete Exp $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Library General Public License as
|
* it under the terms of the GNU Library General Public License as
|
||||||
|
@ -82,7 +82,7 @@ int rft_transaction(RIG *rig, const char *cmd, int cmd_len, char *data, int *dat
|
||||||
*/
|
*/
|
||||||
int rft_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
int rft_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
||||||
{
|
{
|
||||||
unsigned char freqbuf[16], ackbuf[16];
|
char freqbuf[16], ackbuf[16];
|
||||||
int freq_len, ack_len, retval;
|
int freq_len, ack_len, retval;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Hamlib TAPR backend - DSP-10 description
|
* Hamlib TAPR backend - DSP-10 description
|
||||||
* Copyright (c) 2003 by Stephane Fillod
|
* Copyright (c) 2003 by Stephane Fillod
|
||||||
*
|
*
|
||||||
* $Id: dsp10.c,v 1.1 2003-10-07 22:15:49 fillods Exp $
|
* $Id: dsp10.c,v 1.2 2006-10-07 18:52:09 csete Exp $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Library General Public License as
|
* it under the terms of the GNU Library General Public License as
|
||||||
|
@ -61,7 +61,7 @@ const struct rig_caps dsp10_caps = {
|
||||||
.rig_model = RIG_MODEL_DSP10,
|
.rig_model = RIG_MODEL_DSP10,
|
||||||
.model_name = "DSP-10",
|
.model_name = "DSP-10",
|
||||||
.mfg_name = "TAPR",
|
.mfg_name = "TAPR",
|
||||||
.version = "0.1",
|
.version = "0.2",
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_ALPHA,
|
.status = RIG_STATUS_ALPHA,
|
||||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Hamlib TAPR backend - main file
|
* Hamlib TAPR backend - main file
|
||||||
* Copyright (c) 2003 by Stephane Fillod
|
* Copyright (c) 2003 by Stephane Fillod
|
||||||
*
|
*
|
||||||
* $Id: tapr.c,v 1.1 2003-10-07 22:15:49 fillods Exp $
|
* $Id: tapr.c,v 1.2 2006-10-07 18:52:09 csete Exp $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Library General Public License as
|
* it under the terms of the GNU Library General Public License as
|
||||||
|
@ -67,7 +67,7 @@ static int tapr_cmd(RIG *rig, unsigned char cmd, unsigned char c1, unsigned char
|
||||||
cmdbuf[4] = c3;
|
cmdbuf[4] = c3;
|
||||||
cmdbuf[5] = c4;
|
cmdbuf[5] = c4;
|
||||||
|
|
||||||
retval = write_block(&rs->rigport, cmdbuf, 6);
|
retval = write_block(&rs->rigport, (char *) cmdbuf, 6);
|
||||||
if (retval != RIG_OK)
|
if (retval != RIG_OK)
|
||||||
return retval;
|
return retval;
|
||||||
|
|
||||||
|
|
6
wj/wj.c
6
wj/wj.c
|
@ -2,7 +2,7 @@
|
||||||
* Hamlib Watkins-Johnson backend - main file
|
* Hamlib Watkins-Johnson backend - main file
|
||||||
* Copyright (c) 2004 by Stephane Fillod
|
* Copyright (c) 2004 by Stephane Fillod
|
||||||
*
|
*
|
||||||
* $Id: wj.c,v 1.2 2005-04-10 21:49:38 fillods Exp $
|
* $Id: wj.c,v 1.3 2006-10-07 18:55:19 csete Exp $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Library General Public License as
|
* it under the terms of the GNU Library General Public License as
|
||||||
|
@ -154,7 +154,7 @@ static int wj_transaction(RIG *rig, int monitor)
|
||||||
|
|
||||||
serial_flush(&rig->state.rigport);
|
serial_flush(&rig->state.rigport);
|
||||||
|
|
||||||
retval = write_block(&rig->state.rigport, buf, CMDSZ);
|
retval = write_block(&rig->state.rigport, (char *) buf, CMDSZ);
|
||||||
if (retval != RIG_OK)
|
if (retval != RIG_OK)
|
||||||
return retval;
|
return retval;
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ static int wj_transaction(RIG *rig, int monitor)
|
||||||
/*
|
/*
|
||||||
* Transceiver sends back ">"
|
* Transceiver sends back ">"
|
||||||
*/
|
*/
|
||||||
retval = read_block(&rig->state.rigport, rxbuf, CMDSZ);
|
retval = read_block(&rig->state.rigport, (char *) rxbuf, CMDSZ);
|
||||||
if (retval < 0 || retval > CMDSZ)
|
if (retval < 0 || retval > CMDSZ)
|
||||||
return -RIG_ERJCTED;
|
return -RIG_ERJCTED;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Hamlib Watkins-Johnson backend - WJ-8888 description
|
* Hamlib Watkins-Johnson backend - WJ-8888 description
|
||||||
* Copyright (c) 2004 by Stephane Fillod
|
* Copyright (c) 2004 by Stephane Fillod
|
||||||
*
|
*
|
||||||
* $Id: wj8888.c,v 1.1 2004-09-12 21:29:10 fillods Exp $
|
* $Id: wj8888.c,v 1.2 2006-10-07 18:55:19 csete Exp $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Library General Public License as
|
* it under the terms of the GNU Library General Public License as
|
||||||
|
@ -59,7 +59,7 @@ const struct rig_caps wj8888_caps = {
|
||||||
.rig_model = RIG_MODEL_WJ8888,
|
.rig_model = RIG_MODEL_WJ8888,
|
||||||
.model_name = "WJ-8888",
|
.model_name = "WJ-8888",
|
||||||
.mfg_name = "Watkins-Johnson",
|
.mfg_name = "Watkins-Johnson",
|
||||||
.version = "0.1",
|
.version = "0.2",
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_UNTESTED,
|
.status = RIG_STATUS_UNTESTED,
|
||||||
.rig_type = RIG_TYPE_RECEIVER,
|
.rig_type = RIG_TYPE_RECEIVER,
|
||||||
|
|
Ładowanie…
Reference in New Issue