kopia lustrzana https://github.com/Hamlib/Hamlib
* misc define renamed
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@440 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.1
rodzic
5e69731906
commit
799b18dd8b
|
@ -7,7 +7,7 @@
|
|||
* using the serial interface.
|
||||
*
|
||||
*
|
||||
* $Id: ar8200.c,v 1.7 2001-03-02 18:35:18 f4cfe Exp $
|
||||
* $Id: ar8200.c,v 1.8 2001-03-04 13:06:36 f4cfe Exp $
|
||||
*
|
||||
*
|
||||
*
|
||||
|
@ -66,7 +66,7 @@ const struct rig_caps ar8200_caps = {
|
|||
NULL,
|
||||
Hz(0), Hz(0), /* RIT, IF-SHIFT */
|
||||
0, /* FIXME: VFO list */
|
||||
0, RIG_TRN_ON,
|
||||
0, RIG_TRN_RIG,
|
||||
1000, 0, 0,
|
||||
|
||||
{ RIG_CHAN_END, }, /* FIXME: memory channel list */
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* will be used for obtaining rig capabilities.
|
||||
*
|
||||
*
|
||||
* $Id: rig.h,v 1.22 2001-03-02 18:46:27 f4cfe Exp $
|
||||
* $Id: rig.h,v 1.23 2001-03-04 13:04:46 f4cfe Exp $
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -351,7 +351,7 @@ typedef unsigned long setting_t; /* 32 bits might not be enough.. */
|
|||
* like freq changed, mode changed, etc.
|
||||
*/
|
||||
#define RIG_TRN_OFF 0
|
||||
#define RIG_TRN_ON 1
|
||||
#define RIG_TRN_RIG 1
|
||||
#define RIG_TRN_POLL 2
|
||||
|
||||
|
||||
|
@ -613,7 +613,7 @@ struct rig_caps {
|
|||
|
||||
struct filter_list filters[FLTLSTSIZ]; /* mode/filter table, at -6dB */
|
||||
|
||||
void *priv; /* 51 area, useful when having different models in a backend */
|
||||
const void *priv; /* 51 area, useful when having different models in a backend */
|
||||
|
||||
/*
|
||||
* Rig Admin API
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* using the serial interface.
|
||||
*
|
||||
*
|
||||
* $Id: ts870s.c,v 1.9 2001-03-02 18:35:18 f4cfe Exp $
|
||||
* $Id: ts870s.c,v 1.10 2001-03-04 13:06:36 f4cfe Exp $
|
||||
*
|
||||
*
|
||||
*
|
||||
|
@ -69,7 +69,7 @@ const struct rig_caps ts870s_caps = {
|
|||
NULL,
|
||||
Hz(9999), Hz(0), /* RIT, IF-SHIFT */
|
||||
0, /* FIXME: VFO list */
|
||||
0, RIG_TRN_ON,
|
||||
0, RIG_TRN_RIG,
|
||||
1000, 0, 0,
|
||||
|
||||
{ RIG_CHAN_END, }, /* FIXME: memory channel list */
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* via serial interface to an Icom PCR-1000.
|
||||
*
|
||||
*
|
||||
* $Id: pcr1000.c,v 1.1 2001-03-02 18:26:18 f4cfe Exp $
|
||||
* $Id: pcr1000.c,v 1.2 2001-03-04 13:06:36 f4cfe Exp $
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -63,7 +63,7 @@ const struct rig_caps pcr1000_caps = {
|
|||
"0123456789ABCDEF",
|
||||
Hz(0), kHz(1.2), /* RIT, IF-SHIFT */
|
||||
0, /* FIXME: VFO list */
|
||||
0, RIG_TRN_ON,
|
||||
0, RIG_TRN_RIG,
|
||||
0, 0, 0,
|
||||
|
||||
{ RIG_CHAN_END, }, /* no memory channel list: this is a PC receiver */
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Copyright (C) 2000 Stephane Fillod and Frank Singleton
|
||||
This file is part of the hamlib package.
|
||||
|
||||
$Id: event.c,v 1.2 2001-02-11 23:15:38 f4cfe Exp $
|
||||
$Id: event.c,v 1.3 2001-03-04 13:06:36 f4cfe Exp $
|
||||
|
||||
Hamlib is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
|
@ -47,7 +47,7 @@ int foreach_opened_rig(int (*cfunc)(RIG *, void *),void *data);
|
|||
/*
|
||||
* add_trn_rig
|
||||
* not exported in Hamlib API.
|
||||
* Assumes rig->caps->transceive == RIG_TRN_ON
|
||||
* Assumes rig->caps->transceive == RIG_TRN_RIG
|
||||
*/
|
||||
int add_trn_rig(RIG *rig)
|
||||
{
|
||||
|
@ -86,7 +86,7 @@ int add_trn_rig(RIG *rig)
|
|||
/*
|
||||
* remove_trn_rig
|
||||
* not exported in Hamlib API.
|
||||
* Assumes rig->caps->transceive == RIG_TRN_ON
|
||||
* Assumes rig->caps->transceive == RIG_TRN_RIG
|
||||
*/
|
||||
int remove_trn_rig(RIG *rig)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Copyright (C) 2000 Stephane Fillod and Frank Singleton
|
||||
This file is part of the hamlib package.
|
||||
|
||||
$Id: rig.c,v 1.22 2001-03-02 18:41:46 f4cfe Exp $
|
||||
$Id: rig.c,v 1.23 2001-03-04 13:06:36 f4cfe Exp $
|
||||
|
||||
Hamlib is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
|
@ -3112,14 +3112,14 @@ int rig_set_trn(RIG *rig, vfo_t vfo, int trn)
|
|||
if (rig->state.transceive == RIG_TRN_OFF)
|
||||
return -RIG_ENAVAIL;
|
||||
|
||||
if (trn == RIG_TRN_ON) {
|
||||
if (trn == RIG_TRN_RIG) {
|
||||
if (rig->state.transceive) {
|
||||
/*
|
||||
* TODO: check error codes et al.
|
||||
*/
|
||||
status = add_trn_rig(rig);
|
||||
if (caps->set_trn)
|
||||
return caps->set_trn(rig, vfo, RIG_TRN_ON);
|
||||
return caps->set_trn(rig, vfo, RIG_TRN_RIG);
|
||||
else
|
||||
return status;
|
||||
} else {
|
||||
|
|
|
@ -61,7 +61,7 @@ int main ()
|
|||
|
||||
my_rig->callbacks.freq_event = myfreq_event;
|
||||
|
||||
retcode = rig_set_trn(my_rig, RIG_VFO_CURR, RIG_TRN_ON);
|
||||
retcode = rig_set_trn(my_rig, RIG_VFO_CURR, RIG_TRN_RIG);
|
||||
|
||||
if (retcode != RIG_OK ) {
|
||||
printf("rig_set_trn: error = %s \n", rigerror(retcode));
|
||||
|
|
Ładowanie…
Reference in New Issue