Re: [Hamlib-developer] API outstanding issues
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Stephane F. <f4...@fr...> - 2000-12-03 19:42:20
|
Frank Singleton wrote: > > Some raw thoughts here.. maybe wishlists but anyway ... > > I see a VFO as "the" basic communication resource that can > have particular "parameters" associated with it. > > ie: Normally to use the VFO for some communications purposes, > then vfo,freq,mode and filter selections need to be made, > as a minimum. > > So what about. > > int rig_set_vfo_params(RIG *rig, vfo_t vfo, rmode_t mode, fresp_t fresp) > ?? > int rig_get_vfo_params(RIG *rig, vfo_t vfo, rmode_t *mode, fresp_t > *fresp) ?? > > > Also, the pbwidth_t is a subset of a general freq response type > > struct freqresp { > filter_path_t fpt; /* filter location */ > filter_mode_t fmt; /* filter mode, eg: NORMAL,WIDE etc or CUSTOM */ > /* CUSTOM must provide flower,fupper,fcenter > etc */ > /* depending on CUSTOM type */ > }; > > typedef freqresp fresp_t; > [...] Your proposal looks comprehensive, however, I don't have such features on my rig, and since I'm not very knowledged in this field, well I cannot say much. In an effort to try to map the Hamlib API to the way rigs work, I would rather argue for two set of functions. > > int rig_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width); > > int rig_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width); This would cover basic VFO support, ie. probably more than 80% of the rigs out there, which don't have filters. And then, another set of functions, yet to specify, to fine tune the filters of the mode: int rig_set_filter(RIG *rig, vfo_t vfo, fresp_t fresp) int rig_get_filter(RIG *rig, vfo_t vfo, fresp_t, *fresp) Let me know what you think of the rig_set_mode/rig_get_mode approach at least, if we have time to implement it before the forthcoming 1.1.0 release. Cheers, -- Stephane |