From: Dale E. E. <de...@w-...> - 2003-02-15 15:14:31
|
John, The 'rig' or first parameter is a rig_t structure defined in hamlib. I suspect you aren't much worried about it at the moment. The second parameter is a TS2K_FA_T structure which has elements p1, p2, ... pN, which are identical to those in the Kenwood Manual. Thus, the following code is how you use the hamlib version of the routines (in c/c++): int myfunc(rig_t *rig, freq_t freq) { int i,j; static TS2K_FA_T params; // create /* bunch of junk here */ params.p1 = freq; i = ts2k_g_fa( ¶ms); /* more junk here.... */ return i; // error code should already be RIG_OK } Each function is masked in #define's so that the user (me) doesn't have much to remember. The _g_ is get, _p_ is put. There will be some necessary deviations but, 90% will work this way. Hope this helps. Dale |