Re: [Hamlib-developer] Tuner frontend functions
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Nate B. <n0...@ne...> - 2003-03-25 01:06:36
|
* Stephane Fillod <f8...@fr...> [2003 Mar 24 17:16 -0600]:
> rig_set_func(rig, vfo, RIG_FUNC_TUNER, 1); /* enable auto-tuner */
> ...
> rig_set_func(rig, vfo, RIG_FUNC_TUNER, 0); /* disable auto-tuner */
> ..
> rig_vfo_op(rig, vfo, RIG_OP_TUNE); /* "user"-start tune */
> ..
Looks good, Stephane.
> It's in the cvs repository.
Yeah, I finally found the definitions for set/get_func in settings.c, I
now know there are other files around. Doh!
What do you think of a couple of more convenience definitions in rig.h:
#define OFF 0
#define ON 1
Perhpas as well:
#define FALSE 0
#define TRUE 1
I like definitions like these since it makes more human readable code
and doesn't leave a bunch of numeric constants scattered about. Perhaps
they need to be prefixed with RIG_ to avoid conflicting with similar
definitions in other projects. Of course, that rather negates their
convenience...
73, de Nate >>
--
Wireless | Amateur Radio Station N0NB | "We have awakened a
Internet | n0...@ne... | sleeping giant and
Location | Bremen, Kansas USA EM19ov | have instilled in him
Amateur radio exams; ham radio; Linux info @ | a terrible resolve".
http://www.qsl.net/n0nb/ | - Admiral Yamamoto
|