[Hamlib-developer] Re: Addiions for the R-8500 and 750PRO
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Frank S. <vk...@ix...> - 2001-02-05 03:04:52
|
David HM Spector wrote:
>
> Hi Frank,
>
> There are several modes that are present on the R-8500 that don't seem
> to be present on other Icom rigs and which don't seem to be defined in
> the current hamlib includes.
>
> Included is the diff for rig.h ... please let me know if this is the
> correct way one should be defining new modes (it didn't appear to me
> that the bits themselves were meant to map into rig control codes, so
> adding new modes at the end seems "safe").
>
> RCS file: RCS/rig.h,v
> retrieving revision 1.1
> retrieving revision 1.2
> diff -r1.1 -r1.2
> 8c8
> < * $Id: rig.h,v 1.1 2001/01/26 14:18:22 spector Exp $ *
> ---
> > * $Id: rig.h,v 1.2 2001/02/03 20:12:29 spector Exp $ *
> 303a304,306
> > #define RIG_MODE_WFM (1<<6) /* R8500: Wide FM */
> > #define RIG_MODE_NCW (1<<7) /* R8500: Narrow CW */
> > #define RIG_MODE_NAM (1<<8) /* R8500: Narrow AM */
> 313d315
> <
Hi,
Diffs are welcome, but come join us as a developer :-)
Just sign up at sourceforge.
Somewhere along our API trail, we thought about
splitting mode and bandwidth .
ie: avoid things like AMN,AMW, etc.
We have left the basic mode types, and introduced
bandwidth parameters.
So if you wanted AMN, then you would use the
fronteneds API rig_set_mode to set AM, and then set the
bandwidth with rig_set_passband .
enum passband_width_e {
RIG_PASSBAND_NORMAL = 0,
RIG_PASSBAND_NARROW,
RIG_PASSBAND_WIDE
};
typedef enum passband_width_e pbwidth_t;
eg:
rig_set_mode(RIG *rig, rmode_t mode); /* select mode */
rig_set_passband(RIG *rig, pbwidth_t width); /* select width */
--
Cheers / Frank
73's de vk3fcs & km5ws
|